cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NullPointerException while reimporting model

former_member182374
Active Contributor
0 Kudos

Hi All,

I have a Web Dynpro project that contains several models.

When I try to add a new RFC (by reimporting the model) I get java.lang.NullPointerException.

I can add the RFC to a new model without any problem but I need to add it to this specific model.

This is the full error:

Plugin Name: Web Dynpro Model Editor Services

Plugin ID: com.sap.ide.webdynpro.service.modeleditor

Class: com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter

Method: doImportDynRfcModel()

Message: The RFC could not be imported. Please rectify the error and then try importing the model.

Exception: com.sap.ide.metamodel.importers.rfcmodel.RFCImportFailedException: RFC Import failed. Cause: class java.lang.NullPointerException:null

java.lang.NullPointerException

at com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter.ImportRFC(DynamicRFCModelImporter.java:316)

at com.sap.ide.metamodel.importers.rfcmodel.DynamicRFCModelImporter.doImport(DynamicRFCModelImporter.java:196)

at com.sap.ide.metamodel.importers.rfcmodel.reimport.DynamicRFCModelReimporter.doImport(DynamicRFCModelReimporter.java:331)

at com.sap.ide.metamodel.importers.rfcmodel.reimport.DynamicRFCModelReimporter.getImportLog(DynamicRFCModelReimporter.java:264)

at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$11.run(ModelWizard.java:1344)

at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)

at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)

at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)

at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.doReimportDynRfcModel(ModelWizard.java:1361)

at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:69)

at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)

at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)

at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)

at org.eclipse.jface.window.Window.open(Window.java:563)

at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)

at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)

at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)

at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)

at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)

at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)

at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)

at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)

at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)

at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)

at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)

at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)

at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)

at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)

at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)

at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)

at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)

at com.sap.ide.eclipse.startup.Main.run(Main.java:795)

at com.sap.ide.eclipse.startup.Main.main(Main.java:602)

I tried to restart the NWDS or test it on another computer - didn't help.

My NWDS version is SP16.

Thanks,

Omri

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check whether this helps.

-Nagarajan.

former_member182374
Active Contributor
0 Kudos

Solved it on my own.

My model contained several RFC's.

One of them was moved to other backend system (from R3 to BW).

I got the error because of the missing model and not because of the new model I wanted to add (although, from the exception's details it isn't very clear )-: )

Omri