Skip to Content
author's profile photo Former Member
Former Member

Programming generic sync with the MDK in 6.20

Has anyone been able to get the generic sync examples provided with the MDK working - in particular?

I imported and compiled the example without a problem but when I run it I get teh foll dump. Unfortunately the source code is not provided for the section which dumps so I cannot debug further...



2004-12-17 14:47:47 - Ctx( /NEWPROJECT ): Exception in: R( /NEWPROJECT + /start + null) - java.lang.NullPointerException

at<init>(Unknown Source)

at<init>(Unknown Source)

at<init>(Unknown Source)

at Source)

at genericsyncexample1.GenericSyncExample.getUserInfo(

at genericsyncexample1.GenericSyncExample.doHandleEvent(

at Source)

at javax.servlet.http.HttpServlet.service(

at Source)

at javax.servlet.http.HttpServlet.service(

at org.apache.tomcat.core.ServletWrapper.doService(

at org.apache.tomcat.core.Handler.service(

at org.apache.tomcat.core.ServletWrapper.service(

at org.apache.tomcat.core.ContextManager.internalService(

at org.apache.tomcat.core.ContextManager.service(

at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(

at org.apache.tomcat.service.TcpWorkerThread.runIt(

at org.apache.tomcat.util.ThreadPool$


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 10:52 AM

    Hello Ratna,

    please be aware of the fact that a generic sync application needs a mobile solution descriptor (MSD) When you look at ther trace file in the log-directory of SAP ME you should find a similar entry:

    "There is no MSD for current application (genericSyncExample)"

    The missing MSD results in a missing conversation ID which leads to the NullpointerException that effectively is thrown in the class


    My current understanding is that the only way to get a MSD assigned, is to upload the application to the web console and install it from there on the client device.

    However, this means that launching a genSync ME application from Eclipse is useless. I am wondering, if this is the way it was intended to be....

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 04, 2005 at 10:55 AM

    I think there was a requirement, that the .war file should be named as the application's name, i.e. as given in the file from the example:

    // MI Application Name ** is also used by the MDK

    // developer plug-in to define the correct archive name

    String MI_APPLICATION_NAME = "MDK_genericsync_simpleJSP";

    (this constant is returned from the method GenericSyncExample.getApplicationName())

    In other words, you have to name your archive as


    Later, I think it is used as directory name, and your current directory is named NEWPROJECT, i.e. your war file is perheps called NEWPROJECT.war?

    I hope this helps,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.