[
https://issues.apache.org/jira/browse/CXF-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484132
]
Gary Tully commented on CXF-489:
--------------------------------
fix:
cxf_trunk>svn diff
rt\frontend\jaxws\src\main\java\org\apache\cxf\jaxws\DispatchImpl.java
Index: rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
===================================================================
--- rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
(revision 518934)
+++ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java
(working copy)
@@ -142,7 +142,7 @@
chain.doIntercept(message);
if (message.getContent(Exception.class) != null) {
- throw new RuntimeException(message.get(Exception.class));
+ throw new RuntimeException(message.getContent(Exception.class));
}
// correlate response
cxf_trunk>
> code typeo results in null content exception reporting from DispatchImpl
> ------------------------------------------------------------------------
>
> Key: CXF-489
> URL: https://issues.apache.org/jira/browse/CXF-489
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0-M1
> Environment: all
> Reporter: Gary Tully
> Priority: Minor
>
> Small typo in DispatchImpl:~145[1] results in null message for thrown
> exception. If clause checks Content but throw does not. Trivial fix required.
> if (message.getContent(Exception.class) != null) {
> throw new RuntimeException(message.get(Exception.class));
> }
> should be accessing non null getContent for the throw I guess.
> [1]
> http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/DispatchImpl.java?view=markup
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.