Groups > Weblogic > WebLogic Java Message Service > NPE from JMS Connection Object




NPE from JMS Connection Object

NPE from JMS Connection Object
Thu, 15 May 2008 13:58:06 -070
When I try to get the ClientID from a connection using JMX, I get a NPE from the
weblogic.jms.frontend.FEConnectionRuntimeDelegate.getClientID(FEConnectionRuntim
eDelegate.java:66).


The following is the full stack trace.

javax.management.RuntimeMBeanException: RuntimeException thrown by the
getAttribute method of the DynamicMBean for the attribute ClientID
	at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
	at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
	at
javax.management.remote.rmi.RMIConnectionImpl_920_WLStub.getAttribute(Unknown
Source)
	at
weblogic.management.remote.common.RMIConnectionWrapper$11.run(ClientProviderBase
.java:498)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:363)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
	at weblogic.security.Security.runAs(Security.java:61)
	at
weblogic.management.remote.common.RMIConnectionWrapper.getAttribute(ClientProvid
erBase.java:496)
	at
javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribut
e(RMIConnector.java:854)
	at
com.lordabbett.muni.sma.util.JMXClientCleanupListener.handleNotification(JMXClie
ntCleanupListener.java:173)
	at
com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.dispatchNotificati
on(ClientNotifForwarder.java:496)
	at
com.sun.jmx.remote.internal.ClientNotifForwarder$NotifFetcher.run(ClientNotifFor
warder.java:462)
	at
com.sun.jmx.remote.internal.ClientNotifForwarder$LinearExecutor$1.run(ClientNoti
fForwarder.java:83)
Caused by: javax.management.RuntimeMBeanException: MBean getAttribute failed:
java.lang.NullPointerException
	at
weblogic.management.jmx.modelmbean.WLSModelMBean.getAttribute(WLSModelMBean.java
:527)
	at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.getAttribute(DynamicMetaDataImpl.jav
a:96)
	at com.sun.jmx.mbeanserver.MetaDataImpl.getAttribute(MetaDataImpl.java:181)
	at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanS
erverInterceptor.java:638)
	at
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:659)
	at
weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(W
LSMBeanServerInterceptorBase.java:112)
	at
weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(W
LSMBeanServerInterceptorBase.java:112)
	at
weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(Secur
ityInterceptor.java:281)
	at
weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$5.run(
AuthenticatedSubjectInterceptor.java:192)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:363)
	at
weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.getAtt
ribute(AuthenticatedSubjectInterceptor.java:190)
	at
weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.j
ava:269)
	at
weblogic.management.mbeanservers.domainruntime.internal.ManagedMBeanServerConnec
tion.getAttribute(ManagedMBeanServerConnection.java:280)
	at
weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInte
rceptor.getAttribute(FederatedMBeanServerInterceptor.java:227)
	at
weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(W
LSMBeanServerInterceptorBase.java:112)
	at
weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttribute(W
LSMBeanServerInterceptorBase.java:112)
	at
weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttribute(Secur
ityInterceptor.java:281)
	at
weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$5.run(
AuthenticatedSubjectInterceptor.java:192)
	at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:363)
	at
weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.getAtt
ribute(AuthenticatedSubjectInterceptor.java:190)
	at
weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttribute(WLSMBeanServer.j
ava:269)
	at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java
:1385)
	at
javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:
81)
	at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnect
ionImpl.java:1245)
	at java.security.AccessController.doPrivileged(Native Method)
	at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectio
nImpl.java:1348)
	at
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.jav
a:597)
	at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
	at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
	... 12 more
Caused by: java.lang.NullPointerException
	at
weblogic.jms.frontend.FEConnectionRuntimeDelegate.getClientID(FEConnectionRuntim
eDelegate.java:66)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
weblogic.management.jmx.modelmbean.WLSModelMBean.getAttribute(WLSModelMBean.java
:499)
Post Reply
about | contact