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 "Owen Tong (JIRA)" <ji...@apache.org> on 2007/12/19 04:11:43 UTC
[jira] Created: (AXIS2-3411) TransportUtils NullPointerException
When Logger Category is DEBUG
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
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
[jira] Assigned: (AXIS2-3411) TransportUtils NullPointerException
When Logger Category is DEBUG
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Scheuerle reassigned AXIS2-3411:
-------------------------------------
Assignee: Rich Scheuerle
> 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
[jira] Updated: (AXIS2-3411) TransportUtils NullPointerException
When Logger Category is DEBUG
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (AXIS2-3411) TransportUtils NullPointerException
When Logger Category is DEBUG
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ 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