geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chaitra s sampige (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-5900) NullPointerException on JavaBeanDispatcher class when debug logging enabled
Date Wed, 25 May 2011 09:09:47 GMT

    [ 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

Mime
View raw message