Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mofizur
Contributor

We have PI System as of Netweaver 7.40 and We were facing below issue.We were trying to open message monitor page and it was dumping like below

java.lang.NullPointerException: while trying to invoke the method java.lang.Long.longValue() of a null object loaded from local variable 'result'

How to reproduce the Issue?

Navigate to below link http://host:port/dir/start/index.jsp-->Configuration and Monitoring Home or open http://host:port/pimon directly

Click on Adapter Engine-->Message Monitor-->Database and if you click on go the page gives dump

    

    

    

How did I analyze the issue?

As a first step I tried to check the Adapter En

gine availability.You have accessed the Component Monitor in Runtime Workbench (http://host:port/rwb-->Component Monitoring ) . When selecting Integration Server > Adapter Engine, some of the availability details are displayed with "red" or "grey" status

In my case I got below messages...

Component "com.sap.aii.adapter.idoc.sapjra.inboundRA" of type "Application" has errors

Component "com.sap.aii.adapter.idoc.app" of type "Application" has errors

Component "com.sap.aii.adapter.idoc.sapjra.outboundRA" of type "Application" has errors

Component "com.sap.xi.itsam.mdt.idocmoni" of type "Application" has errors

Component "com.sap.xi.itsam.mdt" of type "Application" has errors

Component "com.sap.aii.adapter.idoc.raclonetemplate" of type "Application" has errors

I tried to start the applications manually from NWA but they were not getting started as dependent application were stopped.Then I checked the default trace which can be found in Drive:\usr\sap\SID\DVEBMGSxx\j2ee\cluster\serverx/log and found below information

    

      

How did I resolve the issue?

According to

the traces the "com.sap.aii.adapter.idoc.ra" application failed to start because of errors like:

...

java.lang.NoSuchMethodException:

com.sap.aii.af.idoc.ra.IDOCManagedConnectionFactory.setAutoNumberFromDB(java.lang.String)

...

java.lang.NoSuchMethodException:

com.sap.aii.af.idoc.ra.IDOCManagedConnectionFactory.setPersistance(java.lang.String)

...

These errors occur because the type (data type) of the properties of the corresponding resource adapter JavaIdocAdapter are not correct,e.g. both properties should be with type "Class java.lang.Boolean" instead of "Class java.lang.String".

In order to see the properties

you need to logon to the NWA -> Configuration -> Infrastructure ->Application resources -> filter out for JavaIdocAdapter resource

adapter -> tab properties.

    

I revised the configuration of the JavaIdocAdapter resource adapter and set the correct type for the properties. Then restarted the

application "com.sap.aii.adapter.idoc.ra".After changing it should look like this and all the dependent Applications got started.

    

Now when I try to open PIMON it works absolutely fine.

   

1 Comment
Labels in this area