Skip to Content
avatar image
Former Member

Error in Smart sync contacts app in SP14

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 15, 2006 at 02:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2006 at 08:05 AM

    Hi Raj - Yes, the names should be identical for successful deployment of the component to the device.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2006 at 08:16 AM

    Hi,

    Is the error mentioned related to name of the application or any other error.

    Regards

    Raja Sekhar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Since the deployment has not been successful, the NullPointerException is thrown, so try matching the names of the .war files and try again. It should go through.