NullPointerException on JavaBeanDispatcher class when debug logging enabled
---------------------------------------------------------------------------
Key: GERONIMO-5900
URL: https://issues.apache.org/jira/browse/GERONIMO-5900
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: webservices
Affects Versions: 2.1.7
Environment: Windows XP SP3
Apache Geronimo 2.1.7
Reporter: Ashok Poralu
Fix For: 2.1.8
Getting a NPE
Caused by:
java.lang.NullPointerException
at
org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher.invoke(JavaBeanDispatcher.java:95)
at
org.apache.axis2.jaxws.server.EndpointController.invoke(EndpointController.java:172)
... 30 more
The debug logging code from JavaBeanDispatcher getting serviceInstance as null
from EJBServiceDispatcher. Following the code snippet,
if (log.isDebugEnabled()) {
log.debug("Exception invoking a method of " +
serviceImplClass.toString() + " of instance " +
serviceInstance.toString());
It seems, Geronimo uses the custom version of AXIS2 1.3-G20090406 codebase.
The temporary workaround for the issue to disable logging of the class
JavaBeanDispatcher
log4j.logger.org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher=INFO
To fix this, we can change the
log.debug("Exception invoking a method of " +
(serviceImplClass == null : null ?
serviceImplClass.toString() ) + " of instance " + (serviceInstance == null :
null ? serviceInstance.toString()));
Your comments please...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira