Issue Details (XML | Word | Printable)

Key: MULE-3494
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Dan Diephouse
Reporter: Jeroen Benckhuijsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

NPE in CXF probably caused by MuleInvoker not packing null return values

Created: 27/Jun/08 08:30 AM   Updated: 11/Jul/08 03:14 PM
Component/s: Transport: CXF / XFire
Affects Version/s: 2.0.1, 2.0.2
Fix Version/s: 2.0.2

Time Tracking:
Not Specified

File Attachments: 1. Text File MuleInvoker.java.patch (0.7 kB)
2. Text File org.mule.transport.cxf.CxfConnectorVMFunctionalTestCase.txt (7 kB)

Environment: Ubuntu Linux 8.04, Sun JDK 1.6

Labels:
User impact: High
Effort points: 0.5


 Description  « Hide
The returning a null value from a Web Service method, which is defined in CXF using Document/Literal Wrapped style, an NPE occurs within Mule. See the description at http://www.nabble.com/Mule-2.0.1-CXF-WSDL-First-tt17877561.html for another user who probably also faces this problem (null pointer in org.apache.cxf.jaxws.interceptors.WrapperHelper $ReflectWrapperHelper.createWrapperObject(WrapperHelper.java:278)".

The NPE is caused by org.apache.cxf.message.MessageContentList.getContentsList() returning null (MessageContentList.java:45). In org.apache.cxf.jaxws.interceptors.WrapperHelper $ReflectWrapperHelper.createWrapperObject(WrapperHelper.java:278) the returing null value is dereferenced.

The original null value which is used originates from MuleInvoker.java:131



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Jeroen Benckhuijsen added a comment - 27/Jun/08 08:32 AM
Attached a patch which seems to resolve the mentioned problem. In my setup this results in a failed unit-test, though I don't know whether they are related.

Jeroen Benckhuijsen added a comment - 27/Jun/08 08:33 AM
Offending test case result

Daniel Feist added a comment - 11/Jul/08 02:39 PM
Any chance you can review/apply this patch for 2.0.2 Dan?

Dan Diephouse added a comment - 11/Jul/08 03:14 PM