You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "chaitra s sampige (JIRA)" <ji...@apache.org> on 2011/05/10 14:30:47 UTC
[jira] [Created] (AXIS2-5030) NullPointerException on
JavaBeanDispatcher class when debug logging enabled
NullPointerException on JavaBeanDispatcher class when debug logging enabled
---------------------------------------------------------------------------
Key: AXIS2-5030
URL: https://issues.apache.org/jira/browse/AXIS2-5030
Project: Axis2
Issue Type: Bug
Affects Versions: 1.3
Reporter: chaitra s sampige
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 .
Issue seems to be in the below mentioned code snippet.
if (log.isDebugEnabled()) {
log.debug("Exception invoking a method of " +
serviceImplClass.toString() + " of instance " +
serviceInstance.toString());
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()));
In the original code is it necessary to call toString() in the log statement since toString() will anyways be called when serviceInstance is not null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Resolved] (AXIS2-5030) NullPointerException on
JavaBeanDispatcher class when debug logging enabled
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-5030.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
That piece of code was actually removed in r1075057.
> NullPointerException on JavaBeanDispatcher class when debug logging enabled
> ---------------------------------------------------------------------------
>
> Key: AXIS2-5030
> URL: https://issues.apache.org/jira/browse/AXIS2-5030
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: chaitra s sampige
> Fix For: 1.7.0
>
>
> 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 .
> Issue seems to be in the below mentioned code snippet.
> if (log.isDebugEnabled()) {
> log.debug("Exception invoking a method of " +
> serviceImplClass.toString() + " of instance " +
> serviceInstance.toString());
> 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()));
> In the original code is it necessary to call toString() in the log statement since toString() will anyways be called when serviceInstance is not null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5030) NullPointerException on
JavaBeanDispatcher class when debug logging enabled
Posted by "chaitra s sampige (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039006#comment-13039006 ]
chaitra s sampige commented on AXIS2-5030:
------------------------------------------
The above comment is only work around to the problem.
> NullPointerException on JavaBeanDispatcher class when debug logging enabled
> ---------------------------------------------------------------------------
>
> Key: AXIS2-5030
> URL: https://issues.apache.org/jira/browse/AXIS2-5030
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: chaitra s sampige
> Fix For: 1.7.0
>
>
> 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 .
> Issue seems to be in the below mentioned code snippet.
> if (log.isDebugEnabled()) {
> log.debug("Exception invoking a method of " +
> serviceImplClass.toString() + " of instance " +
> serviceInstance.toString());
> 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()));
> In the original code is it necessary to call toString() in the log statement since toString() will anyways be called when serviceInstance is not null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5030) NullPointerException on
JavaBeanDispatcher class when debug logging enabled
Posted by "chaitra s sampige (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039004#comment-13039004 ]
chaitra s sampige commented on AXIS2-5030:
------------------------------------------
The NPE problem is overcome by disabling logging for this class.
This can be done by editing "..\var\log\server-log4j.properties" file with the below changes
log4j.logger.org.apache.axis2.jaxws.server.dispatcher.JavaBeanDispatcher
=INFO
> NullPointerException on JavaBeanDispatcher class when debug logging enabled
> ---------------------------------------------------------------------------
>
> Key: AXIS2-5030
> URL: https://issues.apache.org/jira/browse/AXIS2-5030
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: chaitra s sampige
> Fix For: 1.7.0
>
>
> 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 .
> Issue seems to be in the below mentioned code snippet.
> if (log.isDebugEnabled()) {
> log.debug("Exception invoking a method of " +
> serviceImplClass.toString() + " of instance " +
> serviceInstance.toString());
> 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()));
> In the original code is it necessary to call toString() in the log statement since toString() will anyways be called when serviceInstance is not null.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org