You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sandra Martín (JIRA)" <ji...@apache.org> on 2008/02/01 08:51:07 UTC
[jira] Created: (CXF-1412) In ClientFaultConverter',
setStackTrace() throws NullPointerException if 'ss' String is null
In ClientFaultConverter', setStackTrace() throws NullPointerException if 'ss' String is null
---------------------------------------------------------------------------------------------
Key: CXF-1412
URL: https://issues.apache.org/jira/browse/CXF-1412
Project: CXF
Issue Type: Bug
Affects Versions: 2.0.4, 2.0.3
Environment: Windows XP, JBoss 4.0.5 A
Reporter: Sandra Martín
Fix For: 2.0.5
When CXF is handling exception throwed by a web service, in 'setStackTrace()' method of 'apache.cxf.interceptor.ClientFaultConverter' a NullPointerException occurs.
This is dued to the condition 'StringUtils.isEmpty(ss)' is wrong. I consider that it would be '!StringUtils.isEmpty(ss)': the 'ss' String must be procesed if this is not null o not empty:
String ss = (String) xu.getValue("//" + Fault.STACKTRACE + "/text()", fault.getDetail(), XPathConstants.STRING);
...
if (!StringUtils.isEmpty(ss)) { <-------------- THIS CONDITION
// do something with 'ss'
}
Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-1412) In ClientFaultConverter',
setStackTrace() throws NullPointerException if 'ss' String is null
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1412.
------------------------------
Resolution: Fixed
> In ClientFaultConverter', setStackTrace() throws NullPointerException if 'ss' String is null
> ---------------------------------------------------------------------------------------------
>
> Key: CXF-1412
> URL: https://issues.apache.org/jira/browse/CXF-1412
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0.3, 2.0.4
> Environment: Windows XP, JBoss 4.0.5 A
> Reporter: Sandra Martín
> Assignee: Daniel Kulp
> Fix For: 2.0.5
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> When CXF is handling exception throwed by a web service, in 'setStackTrace()' method of 'apache.cxf.interceptor.ClientFaultConverter' a NullPointerException occurs.
> This is dued to the condition 'StringUtils.isEmpty(ss)' is wrong. I consider that it would be '!StringUtils.isEmpty(ss)': the 'ss' String must be procesed if this is not null o not empty:
> String ss = (String) xu.getValue("//" + Fault.STACKTRACE + "/text()", fault.getDetail(), XPathConstants.STRING);
> ...
> if (!StringUtils.isEmpty(ss)) { <-------------- THIS CONDITION
> // do something with 'ss'
> }
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-1412) In ClientFaultConverter',
setStackTrace() throws NullPointerException if 'ss' String is null
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-1412:
--------------------------------
Assignee: Daniel Kulp
> In ClientFaultConverter', setStackTrace() throws NullPointerException if 'ss' String is null
> ---------------------------------------------------------------------------------------------
>
> Key: CXF-1412
> URL: https://issues.apache.org/jira/browse/CXF-1412
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0.3, 2.0.4
> Environment: Windows XP, JBoss 4.0.5 A
> Reporter: Sandra Martín
> Assignee: Daniel Kulp
> Fix For: 2.0.5
>
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> When CXF is handling exception throwed by a web service, in 'setStackTrace()' method of 'apache.cxf.interceptor.ClientFaultConverter' a NullPointerException occurs.
> This is dued to the condition 'StringUtils.isEmpty(ss)' is wrong. I consider that it would be '!StringUtils.isEmpty(ss)': the 'ss' String must be procesed if this is not null o not empty:
> String ss = (String) xu.getValue("//" + Fault.STACKTRACE + "/text()", fault.getDetail(), XPathConstants.STRING);
> ...
> if (!StringUtils.isEmpty(ss)) { <-------------- THIS CONDITION
> // do something with 'ss'
> }
> Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.