RP/WLS 6.0 SP2 - NPE exception after a call to getConnectionPoolCount() on a WLECConnectionServiceRuntimeMBean object (Doc ID 768321.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server / WebLogic Server / 6.0 SP2
Information in this document applies to any platform

Goal

CONFIGURATION:
WLS 6.0 with SP2 on NT.

PROBLEM DESCRIPTION:
I have been running into a problem with our monitor.  One of the beans we get from the server is a
CConnectionServiceRuntime MBean.  This MBean has an attribute called ConnectionPoolCount.  When I try to query this
attribute, I get an MBean error.

The client connects to the server and tries to call getConnectionPoolCount().  Then the server throws the following
NPE exception:

<Jul 16, 2001 4:37:43 PM PDT> <Error> <Management> <InvocationTargetException getting attribute
ConnectionPoolCount on MBean
mydomain:ServerRuntime=myserver,Name=myserver.wlec,Location=myserver,Type=WLECConnectionServiceRuntime. Method: pub
lic int com.beasys.CORBA.pool.weblogic.WLECService.getConnectionPoolCount()
java.lang.NullPointerException
        at com.beasys.CORBA.pool.weblogic.WLECService.getConnectionPoolCount(WLECService.java:208)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.java:432)
        at weblogic.management.internal.DynamicMBeanImpl.getAttribute(DynamicMBeanImpl.java:394)
        at com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1181)
        at com.sun.management.jmx.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1151)
        at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(RemoteMBeanServerImpl_WLSkel.java:206)
        at weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
        at weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
        at weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.java:118)
        at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:17)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)        
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

The client throws the following exception:
javax.management.MBeanException
        at weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRequest.java:90)
        at
weblogic.management.internal.RemoteMBeanServerImpl_WLStub.getAttribute(RemoteMBeanServerImpl_WLStub.java:632)
        at test.main(test.java:44)

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms