cancel
Showing results for 
Search instead for 
Did you mean: 

Null pointer exception while adding Notification listener to Mbeans

Former Member
0 Kudos

Hi all,

I have an external JMX client which connects successfully to SAP WAS 7.0 and i am trying to add notificaition listener to the Mbeans in my JMX client (SAPNWServerConnection.java).

But it throws nullpointer exception as mentioned in this below thread.

Below is the stack traceof the error

java.lang.RuntimeException: java.lang.NullPointerException

at com.wipro.wipdesk.core.modules.sapnw.SAPNWServerConnection.addNotific

ationListener(SAPNWServerConnection.java:60)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.wipro.wipdesk.core.management.ServerConnectionProxy.invoke(Server

ConnectionProxy.java:65)

at $Proxy0.addNotificationListener(Unknown Source)

at com.wipro.wipdesk.core.alert.source.GaugeAlertSource.registerInternal

(GaugeAlertSource.java:112)

at com.wipro.wipdesk.core.alert.source.MBeanAlertSource.connectionOpen(M

BeanAlertSource.java:77)

at com.wipro.wipdesk.core.alert.source.MBeanAlertSource.access$500(MBean

AlertSource.java:33)

at com.wipro.wipdesk.core.alert.source.MBeanAlertSource$EstablishConnect

ion.run(MBeanAlertSource.java:164)

Caused by: java.lang.NullPointerException

at com.sap.engine.services.jmx.MBeanServerConnectionImpl.addNotification

Listener(MBeanServerConnectionImpl.java:557)

at com.wipro.wipdesk.core.modules.sapnw.SAPNWServerConnection.addNotific

ationListener(SAPNWServerConnection.java:53)

... 10 more

Aug 18, 2008 11:58:55 AM com.wipro.wipdesk.core.alert.source.MBeanAlertSource co

nnectionOpen

Any clue on how to solve this issue.?

Thanks in advance,

Siva

Helpful answer will sure be appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hellop Siva,

while I can not give you a solution I would like to know what client you are using? Is t something selfwritten or some commercial product?

Regards,

Andi

Former Member
0 Kudos

Hi Andrew,

We are using JManage open soure and enhancing it to support SAP WAS.

Thanks,

Siva