on 04-14-2006 6:48 AM
Hi,
I have recently upgraded the WAS from SP9 to SP14.
I am working on a contact application as a sample scenario to get accustomed.
I have created a webapp and after deploying it to mi client, it is giving an exception as follows
java.lang.NullPointerException
at com.sap.ip.me.smartsync.data.RowManager$1.elementCount(RowManager.java:115)
at com.sap.ip.me.smartsync.data.SyncBoCollectionImpl.(SyncBoCollectionImpl.java:27)
at com.sap.ip.me.smartsync.data.SyncBoDataFacadeImpl.getSyncBos(SyncBoDataFacadeImpl.java:125)
at miProjectPackage.dataaccess.SmartSyncDBAccess.getSyncBoInstances(SmartSyncDBAccess.java:96)
at miProjectPackage.dataaccess.TableContentProvider.getTableWithSyncBoNames(TableContentProvider.java:84)
at miProjectPackage.MiProjectClass.showSyncBoNames(MiProjectClass.java:235)
at miProjectPackage.MiProjectClass.doHandleEvent(MiProjectClass.java:71)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.doGet(AbstractMEHttpServlet.java:497)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet.service(AbstractMEHttpServlet.java:262)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:534)
1. Should the name of the war file and the name of the mobile component in the web console be the same. In the above case, the war file is ContactSP14 and mobile component name is CONTACTSP14.
Regards
Raja Sekhar
Hi Raja,
The null pointer exception u have given here is from the
standard method in the Controller class file.
method -showSyncBoNames();
in this method actually what they are doing is collecting the entire data from your syncbos which are in your SmartSync Application.
check these methods , then u will get the clear picture of the exception.
getTableWithSyncBoNames in TCP
getSyncBoInstances in SmartSyncDBAccess
From this code piece( getSyncBoInstances ) , this exception came. This means ur application has came down to ur client deveice , but there is some problems happened to the metadata and data to ur syncbos.
Check ur MCD in the middleware and check the metaRepMeta.xml file .Verify both are same or not.
Regards
Kishor Gopinathan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is the error mentioned related to name of the application or any other error.
Regards
Raja Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj - Yes, the names should be identical for successful deployment of the component to the device.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.