cancel
Showing results for 
Search instead for 
Did you mean: 

Error when re-importing a model

Former Member
0 Kudos

Hi:

I get the below error when re-importing a RFC. After i select a model and click on re-import and enter details of the R/3 system, I get the window with list of all the Bapis, after I click next, I get two pop-up windows with message and exception. Have any of you seen something similar before? Do you think this might be because of some specific changes to the import or export parameter that was done at R/3?

Any help is appreciated.

Thanks,

Subramania

Message 1 : Fatal Error: project is not exisiting. projectName = Reimport1151401594828

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

The exception was :

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

java.lang.ClassCastException

at com.sap.dictionary.types.mdi2metamodel.R3ToMetamodelDictionaryConverterWithNestedStructures.getDdicObject(R3ToMetamodelDictionaryConverterWithNestedStructures.java:237)

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

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$9.run(ModelWizard.java:1137)

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:1154)

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

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:784)

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi:

Thanks for the replies. The problem was in the R/3 side. The ABAP consultants tweaked something and finally the error was resolved.

Thanks.

Subramania

Former Member
0 Kudos

Hi Bhatt,

This is not a good way to re import the model.

You can delete the existing model and re create as new Model. This will help you.

Kind Regards

Mukesh.