Skip to Content

java.lang.NullPointerException

hi All,

I am getting following exception when i am using custom adapter module. How can i know where i.e. in which part of code this exception is raised.

2009-09-17 16:43:15 Information MP: processing local module localejbs/EJBModulePDF

2009-09-17 16:43:15 Error MP: exception caught with cause java.lang.NullPointerException

2009-09-17 16:43:15 Error Adapter Framework caught exception: null

2009-09-17 16:43:15 Error Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException.

Thanks,

Mayank

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 17, 2009 at 12:21 PM

    you can trace by adding audit log

    refer this /people/ganesh.karicharla2/blog/2008/02/20/adapter-module-development-module-configuration for how to add audit log

    Example
       Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,
         "AO: Now got the xml payload object.")
    

    you can see audit log that you add in the module in the RWB communication channel monitoring

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Mayank Gupta

      hi Mayank,

      i am facing sama problem as of yours which is listed below:

      [ 08.08.2011 14:27:26 Error MP: Exception caught with cause java.lang.NullPointerException

      08.08.2011 14:27:26 Error Exception caught by adapter framework: null

      08.08.2011 14:27:26 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.

      08.08.2011 14:27:26 Error The message status set to NDLV ]

      please,tell me how you solved the problem?

      Regards,

      Raj Tripathy

  • avatar image
    Former Member
    Sep 17, 2009 at 11:24 AM

    Hi Mayank ,

    Please check below SAP note which will provide you troubleshooting for your issue::

    Note 1062037 - java.lang.NullPointerException error in Adapter activation

    Thanks..

    Mohit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Mayank Gupta

      Hi Mayank,

      provide exception handling within your custom code and trace processing to identify at least the method, where exception is thrown. Be aware, that if you are using some external libs / jars in your custom module, those should be also deployed on PI. Otherwise you will get null pointer exceptions by doing instantiation.

      Regards

      Rudolf

  • avatar image
    Former Member
    Sep 17, 2009 at 12:26 PM

    you need not deploy external jar on the PI server.you just add as external jars while creating the module

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Imagine you would like to use 3rd party API in multiple custom-developed components... It is common (and best practice) to wrapp those jar files deployed in separate "external" DC and expose it centrally to other DCs using public parts. 😉, instead of having the same functionality multiple times.

      BR

      Rudolf