on 06-21-2011 10:27 PM
Hi.
I am developing an SAP Mobile 7.1 (OCA) application using:
SAP NetWeaver Developer Studio
SAP NetWeaver 7.1 Composition Environment SP11 PAT0000
Build id: 201011031812
I get the runtime exception shown below from time
to time when using the simulator that comes with NWDS, meaning, that,
sometimes I can work on my code, re-deploy it and run it without
problems, then suddenly it comes out again with no apparent reason when
I execute the mobile application. This is different when I run the
application on the device (which previously used to run fine), now get
the exception everytime
I know that the exception comes out when the application tries to make
a new instance of the service component that is defined internally as a
private static final object.
The server is NW 7.1 SP11
Error starting the framework
java.lang.reflect.InvocationTargetException
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:592)
at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at com.kr.actividad_srv.service.impl.Actividad.createGetActividadesQuery(Actividad.java:48)
at com.kr.fza_ventas_ui.fza_ventas_comp.Fza_ventas_comp.<init>(Fza_ventas_comp.java:2140)
at com.kr.fza_ventas_ui.fza_ventas_comp.Fza_ventas_comp.getInstance(Fza_ventas_comp.java:185)
at com.kr.fza_ventas_ui.fza_ventas_comp.Fza_ventas_compComponent.getController(Fza_ventas_compComponent.java:31)
at com.sap.tc.mobile.wdlite.progmodel.core.Component.enter(Component.java:24)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrentComponent(Application.java:484)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:549)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:278)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrent(Application.java:130)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:174)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:210)
at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:387)
at com.sap.tc.mobile.wdlite.container.ContainerApp.startApp(ContainerApp.java:155)
at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:327)
at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:370)
at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:208)
at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:415)
at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:148)
at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:461)
at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:504)
at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:366)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at com.sap.tc.mobile.wdlite.renderer.swt.container.WorkingArea.refresh(WorkingArea.java:187)
at com.sap.tc.mobile.wdlite.renderer.api.RenderingManager.refresh(RenderingManager.java:233)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.refresh(Application.java:285)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:593)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:278)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrent(Application.java:130)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:174)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:210)
at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:387)
at com.sap.tc.mobile.wdlite.framework.Start.runOnContext(Start.java:585)
at com.sap.tc.mobile.wdlite.framework.Start.startApplication(Start.java:609)
at com.sap.tc.mobile.wdlite.framework.Start.startContainer(Start.java:646)
at com.sap.tc.mobile.cfs.framework.spi.FrameworkManager.startContainer(FrameworkManager.java:259)
at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:230)
... 5 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 14
at com.sap.tc.mobile.cfs.meta.ClassDescriptorImpl.getAttribute(ClassDescriptorImpl.java:349)
at com.sap.tc.mobile.sf.OcaQuery.attr(OcaQuery.java:560)
at com.kr.actividad_srv.query.impl.GetActividadesQuery.<clinit>(GetActividadesQuery.java:15)
... 45 more
Solved.
Same Data Object was in two different component services.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.