axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Scheuerle (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-3411) TransportUtils NullPointerException When Logger Category is DEBUG
Date Mon, 03 Mar 2008 19:54:50 GMT

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

Rich Scheuerle updated AXIS2-3411:
----------------------------------

    Fix Version/s: 1.4

> 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
>            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


Mime
View raw message