on 08-05-2010 10:28 AM
Hi All,
I am trying to consume a Web Service in NWDS 7.1.
Following are the steps which I have followed for consuming the web service :
Create a model in the DC using 'Adaptive Web Service model' template.
Create component and reference this model as used model in it.
In the custom coontroller apply the 'service controller' template to the model.
In this 3rd step, its giving the following error while applying the template in component controller:
*******************************************************************************************************************************
Status ERROR
Plugin : com.sap.ide.metamodel.common.services.eclipse
code=0
Internal error
Plugin name: Metamodel Common Services for Eclipse
Internal error : com.sap.ide.metamodel.common.services.eclipse
Class : com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard$1
Method : performFinish()
Message : Error in template generation
Exception : java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at com.sap.ide.metamodel.core.collection.MetamodelOrderedCollectionImpl.get(MetamodelOrderedCollectionImpl.java:188)
at com.sap.ide.metamodel.webdynpro.implementation.ModelRelationProxy.getModelRelationRole(ModelRelationProxy.java:590)
at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.createNestedStructure(ModelGeneration.java:350)
at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.createNestedStructure(ModelGeneration.java:385)
at com.sap.ide.webdynpro.template.simplescenario.generation.servicecontroller.ModelGeneration.generateCoding(ModelGeneration.java:131)
at com.sap.ide.mmservices.common.eclipse.internal.template.generation.GenerationStartup.generateFragments(GenerationStartup.java:246)
at com.sap.ide.mmservices.common.eclipse.internal.template.generation.GenerationStartup.generate(GenerationStartup.java:87)
at com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard$1.run(ApplyTemplateWizard.java:64)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.sap.ide.mmservices.common.eclipse.internal.template.apply.ApplyTemplateWizard.performFinish(ApplyTemplateWizard.java:61)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at com.sap.ide.mmservices.common.eclipse.template.actions.ApplyTemplateAction.run(ApplyTemplateAction.java:28)
at com.sap.ide.mmservices.common.eclipse.template.TemplateInvoker.startApplyTemplateAction(TemplateInvoker.java:78)
at com.sap.ide.mmservices.common.eclipse.template.TemplateInvoker.startApplyTemplateWizard(TemplateInvoker.java:34)
at com.sap.ide.webdynpro.wdexplorer.actions.other.ApplyTemplateAction.run(ApplyTemplateAction.java:48)
at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseDelegateSingleAction.runInternal(BaseDelegateSingleAction.java:65)
at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseDelegateSingleAction.run(BaseDelegateSingleAction.java:58)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
*******************************************************************************************************************************
Please do let me know how to resolve this error .
Thanks.
Hi Yogita,
Could you tell me the NWDS's exact version you are using? If you are really facing the problem till date you bettter i would also suggest you to raise an OSS message on component BC-DWB-WD-JAV.
Thanks
Satyajeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yogita,
I suggest you get in touch with the SAP support team via an OSS message to help you resolve this issue. Please don't forget to attach the DC that you have created so that the support team can help in resolving this at the earliest. You could raise the issue via the OSS component BC-DWB-WD-JAV.
Without details of the DC that you are working on and the model that you have imported, I doubt if anybody in SCN would be able to help you out.
Thanks and Best Regards,
Pradyut.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.