You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "chaitra s sampige (JIRA)" <ji...@apache.org> on 2011/05/25 11:09:47 UTC
[jira] [Commented] (GERONIMO-5900) NullPointerException on
JavaBeanDispatcher class when debug logging enabled
[ https://issues.apache.org/jira/browse/GERONIMO-5900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039039#comment-13039039 ]
chaitra s sampige commented on GERONIMO-5900:
---------------------------------------------
A quick workaround for this problem is disabling logging for this class.
This can be done by editing "..\var\log\server-log4j.properties" file with the below change
log4j.logger.org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher
=INFO .
> 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