You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Anita Kulshreshtha (JIRA)" <de...@geronimo.apache.org> on 2006/10/09 14:48:22 UTC
[jira] Created: (GERONIMO-2477) NPE in JCAResourceImpl
NPE in JCAResourceImpl
----------------------
Key: GERONIMO-2477
URL: http://issues.apache.org/jira/browse/GERONIMO-2477
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Affects Versions: 1.2
Environment: All
Reporter: Anita Kulshreshtha
Assigned To: Anita Kulshreshtha
Priority: Minor
Fix For: 1.2
The NPE is thrown while running jconsole. To reproduce click on JCAResource.
Geronimo Application Server started
19:43:00,156 WARN [MBeanGBeanBridge] Exception while getting attribute adminObjects
javax.management.ReflectionException: null nested exception is java.lang.NullPointerExcept
ion
java.lang.NullPointerException
at org.apache.geronimo.j2ee.management.impl.Util.getObjectNames(Util.java:33)
at org.apache.geronimo.connector.JCAResourceImpl.getAdminObjects(JCAResourceImpl.j
ava:106)
at org.apache.geronimo.connector.JCAResourceImpl$$FastClassByCGLIB$$f01e0455.invok
e(<generated>)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.ja
va:38)
at org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:3
85)
at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java
:681)
at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:178)
at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttribute(MBeanGBeanBridge.j
ava:118)
at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttributes(MBeanGBeanBridge.
java:143)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttributes(InvokerMBea
nServerInterceptor.java:302)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
nServerInterceptor.java:125)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttributes(SecurityMB
eanServerInterceptor.java:92)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
nServerInterceptor.java:125)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
nServerInterceptor.java:125)
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttributes(
ContextClassLoaderMBeanServerInterceptor.java:225)
at mx4j.server.MX4JMBeanServer.getAttributes(MX4JMBeanServer.java:1003)
at mx4j.remote.rmi.RMIConnectionInvoker.getAttributes(RMIConnectionInvoker.java:18
8)
at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
va:25)
at java.lang.reflect.Method.invoke(Method.java:324)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (GERONIMO-2477) NPE in JCAResourceImpl
Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-2477?page=all ]
Anita Kulshreshtha closed GERONIMO-2477.
----------------------------------------
Resolution: Fixed
Fixed in trunk and 1.1 branch rev 472487.
> NPE in JCAResourceImpl
> ----------------------
>
> Key: GERONIMO-2477
> URL: http://issues.apache.org/jira/browse/GERONIMO-2477
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Affects Versions: 1.2, 1.1.2
> Environment: All
> Reporter: Anita Kulshreshtha
> Assigned To: Anita Kulshreshtha
> Priority: Minor
> Fix For: 1.1.2, 1.2
>
>
> The NPE is thrown while running jconsole. To reproduce click on JCAResource.
> Geronimo Application Server started
> 19:43:00,156 WARN [MBeanGBeanBridge] Exception while getting attribute adminObjects
> javax.management.ReflectionException: null nested exception is java.lang.NullPointerExcept
> ion
> java.lang.NullPointerException
> at org.apache.geronimo.j2ee.management.impl.Util.getObjectNames(Util.java:33)
> at org.apache.geronimo.connector.JCAResourceImpl.getAdminObjects(JCAResourceImpl.j
> ava:106)
> at org.apache.geronimo.connector.JCAResourceImpl$$FastClassByCGLIB$$f01e0455.invok
> e(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.ja
> va:38)
> at org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:3
> 85)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java
> :681)
> at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:178)
> at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttribute(MBeanGBeanBridge.j
> ava:118)
> at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttributes(MBeanGBeanBridge.
> java:143)
> at mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttributes(InvokerMBea
> nServerInterceptor.java:302)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttributes(SecurityMB
> eanServerInterceptor.java:92)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttributes(
> ContextClassLoaderMBeanServerInterceptor.java:225)
> at mx4j.server.MX4JMBeanServer.getAttributes(MX4JMBeanServer.java:1003)
> at mx4j.remote.rmi.RMIConnectionInvoker.getAttributes(RMIConnectionInvoker.java:18
> 8)
> at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
> va:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (GERONIMO-2477) NPE in JCAResourceImpl
Posted by "Anita Kulshreshtha (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-2477?page=all ]
Anita Kulshreshtha updated GERONIMO-2477:
-----------------------------------------
Fix Version/s: 1.1.2
Affects Version/s: 1.1.2
> NPE in JCAResourceImpl
> ----------------------
>
> Key: GERONIMO-2477
> URL: http://issues.apache.org/jira/browse/GERONIMO-2477
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Affects Versions: 1.2, 1.1.2
> Environment: All
> Reporter: Anita Kulshreshtha
> Assigned To: Anita Kulshreshtha
> Priority: Minor
> Fix For: 1.2, 1.1.2
>
>
> The NPE is thrown while running jconsole. To reproduce click on JCAResource.
> Geronimo Application Server started
> 19:43:00,156 WARN [MBeanGBeanBridge] Exception while getting attribute adminObjects
> javax.management.ReflectionException: null nested exception is java.lang.NullPointerExcept
> ion
> java.lang.NullPointerException
> at org.apache.geronimo.j2ee.management.impl.Util.getObjectNames(Util.java:33)
> at org.apache.geronimo.connector.JCAResourceImpl.getAdminObjects(JCAResourceImpl.j
> ava:106)
> at org.apache.geronimo.connector.JCAResourceImpl$$FastClassByCGLIB$$f01e0455.invok
> e(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.ja
> va:38)
> at org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:3
> 85)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java
> :681)
> at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:178)
> at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttribute(MBeanGBeanBridge.j
> ava:118)
> at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttributes(MBeanGBeanBridge.
> java:143)
> at mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttributes(InvokerMBea
> nServerInterceptor.java:302)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttributes(SecurityMB
> eanServerInterceptor.java:92)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttributes(
> ContextClassLoaderMBeanServerInterceptor.java:225)
> at mx4j.server.MX4JMBeanServer.getAttributes(MX4JMBeanServer.java:1003)
> at mx4j.remote.rmi.RMIConnectionInvoker.getAttributes(RMIConnectionInvoker.java:18
> 8)
> at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
> va:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (GERONIMO-2477) NPE in JCAResourceImpl
Posted by "Anita Kulshreshtha (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-2477?page=comments#action_12440889 ]
Anita Kulshreshtha commented on GERONIMO-2477:
----------------------------------------------
This is due to a cut-paste error in getAdminObjectInstances():
.............................................
return (JCAAdminObject[]) adminObjects.toArray(new JCAAdminObject[{color:red}connectionFactories{color}.size()]);
................................................
Fixed in rev 454370.
> NPE in JCAResourceImpl
> ----------------------
>
> Key: GERONIMO-2477
> URL: http://issues.apache.org/jira/browse/GERONIMO-2477
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Affects Versions: 1.2
> Environment: All
> Reporter: Anita Kulshreshtha
> Assigned To: Anita Kulshreshtha
> Priority: Minor
> Fix For: 1.2
>
>
> The NPE is thrown while running jconsole. To reproduce click on JCAResource.
> Geronimo Application Server started
> 19:43:00,156 WARN [MBeanGBeanBridge] Exception while getting attribute adminObjects
> javax.management.ReflectionException: null nested exception is java.lang.NullPointerExcept
> ion
> java.lang.NullPointerException
> at org.apache.geronimo.j2ee.management.impl.Util.getObjectNames(Util.java:33)
> at org.apache.geronimo.connector.JCAResourceImpl.getAdminObjects(JCAResourceImpl.j
> ava:106)
> at org.apache.geronimo.connector.JCAResourceImpl$$FastClassByCGLIB$$f01e0455.invok
> e(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.ja
> va:38)
> at org.apache.geronimo.gbean.runtime.GBeanAttribute.getValue(GBeanAttribute.java:3
> 85)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttribute(GBeanInstance.java
> :681)
> at org.apache.geronimo.kernel.basic.BasicKernel.getAttribute(BasicKernel.java:178)
> at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttribute(MBeanGBeanBridge.j
> ava:118)
> at org.apache.geronimo.system.jmx.MBeanGBeanBridge.getAttributes(MBeanGBeanBridge.
> java:143)
> at mx4j.server.interceptor.InvokerMBeanServerInterceptor.getAttributes(InvokerMBea
> nServerInterceptor.java:302)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.SecurityMBeanServerInterceptor.getAttributes(SecurityMB
> eanServerInterceptor.java:92)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBea
> nServerInterceptor.java:125)
> at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.getAttributes(
> ContextClassLoaderMBeanServerInterceptor.java:225)
> at mx4j.server.MX4JMBeanServer.getAttributes(MX4JMBeanServer.java:1003)
> at mx4j.remote.rmi.RMIConnectionInvoker.getAttributes(RMIConnectionInvoker.java:18
> 8)
> at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
> va:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira