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

Generic Sync Example not working

Hi

I have tried to get the GenericSync example running but I get the following error

Internal Servlet Error:

java.lang.NullPointerException

at com.sap.ip.me.sync.SyncHeader.(Unknown Source)

at com.sap.ip.me.sync.SyncOutboundContainer.(Unknown Source)

at com.sap.ip.me.sync.SyncOutboundContainer.(Unknown Source)

at com.sap.ip.me.sync.ContainerFactory.createOutboundContainer(Unknown Source)

at genericsyncexample1.GenericSyncExample.getUserInfo(GenericSyncExample.java:122)

at genericsyncexample1.GenericSyncExample.doHandleEvent(GenericSyncExample.java:79)

The Trace file in the LOG directory also shows the following entry

There is no MSD for current application (genericSyncExample)

I guess that I have missed a step in building and deploying the App, but I cant figure that out

Any help would be appreciated

regards

Paul

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 06, 2004 at 01:53 PM

    did you register the inboundProcessor already? 😊 you have to register a class implementing the InboundProcessor before creating the outboundfactory and container.

    Christian

    Add comment
    10|10000 characters needed characters exceeded

    • I did register the inboundprocessor in the following method.

      public void doInitialize()

      throws ServletException {

      ClassLoader cl = getClass().getClassLoader();

      Log.log(Log.DEVELOP_LEVEL, "GenSynExample: Create GenSynExampleServlet.doInitialize with Classloader {0}",(cl==null?"(null)":cl.toString()));

      /* No resource bundle used setResourceBundle("ResourceBundle"); */

      // register class for datacontainer import

      InboundProcessing ip = new InboundProcessing();

      InboundProcessorRegistry.getInstance().register(ip);

      Log.log(Log.INFO_LEVEL, "GenericSyncExample servlet: Inbound processing class for function '''' registered.", R3_METHOD_GET_USER_INFO);

      }

      I am still getting "There is no MSD for current application" error. Has anyone get the example working?

      Thanks, Helen.

  • author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2004 at 04:37 PM

    The problem is a missing conversation id. The NullpointerException is thrown in the class

    ConversationIdHandler.getCurrentConversationId().

    I'm not sure, where this comes from, but am still debugging.

    Regards

    Volker

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The point is: upload the application to WebConsole and get it from there again. verify the correct name of the jar file which has to be identical to the application name. Additionally look at the correct versions of the uploaded application (you have to provide the version).

      After uploading the application to the webconsole and downloading again, there's a mobile solution descriptor and a conversation id.

      After debugging a while and fixing the problems, the example works for me