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 "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/03/07 15:51:46 UTC

[jira] Resolved: (AXIS2-3411) TransportUtils NullPointerException When Logger Category is DEBUG

     [ https://issues.apache.org/jira/browse/AXIS2-3411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rich Scheuerle resolved AXIS2-3411.
-----------------------------------

    Resolution: Fixed

The code has already been corrected.  Thanks

> TransportUtils NullPointerException When Logger Category is DEBUG
> -----------------------------------------------------------------
>
>                 Key: AXIS2-3411
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3411
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows XP, Eclipse3.2
>            Reporter: Owen Tong
>            Assignee: Rich Scheuerle
>            Priority: Minor
>             Fix For: 1.4
>
>
> When trying the RESTClient, a NullPointerException would be thrown out from TransportUtils if Logger category is set as "DEBUG".  This was caused by the following code starting at line 154:
> ......
>             Builder builder = BuilderUtil.getBuilderFromSelector(type, msgContext);
>             if (log.isDebugEnabled()) {
>                 log.debug("createSOAPEnvelope using Builder (" + 
>                           builder.getClass() + ") selected from type (" + type +")");
>             }
>             if (builder != null) {
>                 documentElement = builder.processDocument(inStream, contentType, msgContext);
>             }
> ......
> At line 154, the builder could be null.  If the DEBUG log is enabled at the same time, the "builder.getClass() will throw NullPointerException.
> The logging code should be moved inside "if(builder!=null){".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org