Details
-
Type:
Patch submission
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix or Usage Issue
-
Affects Version/s: 2.2.1
-
Fix Version/s: None
-
Component/s: Transport: Axis
-
Labels:None
-
Environment:
Ubuntu 8.10, i686 GNU/Linux 2.6.27-14-generic
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
-
Includes test case?:yes
-
User impact:Medium
-
Similar Issues:None
Description
I have a project that multicasts to axis endpoints. When I migrated from 2.1 to 2.2, the aggregator broke because the correlation properties were no longer being set on the response messages. A bit of digging traced the change in behaviour to revision 14035 (http://fisheye.codehaus.org/changelog/mule/?cs=14035).
I compared Axis component calls to CXF component calls and saw that the result of a CXF call is transformed by the AbstractComponent before it's returned to the CxfServiceComponent whereas the result of an Axis call is processed after AxisServiceComponent. By the time AbstractComponent's createResultMessage(..) is called on an Axis result, the result is a MuleMessage the TransformerTemplate isn't applied.
Given my limited experience with Mule, I saw two potential fixes:
1. Change the return value of AxisServiceComponent's onCall() to a non-MuleMessage type, or
2. Apply the TransformerTemplate to the message before it's returned from onCall()
I decided on the latter, since it seems less hacky though probably still a little naive. Attached is the patch to AxisServiceComponent and a test case to demonstrate the fix.
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | AxisServiceComponent.java.patch.txt [ 12118 ] | |
| Attachment | MessagePropertiesFunctionalTestCase.java [ 12119 ] | |
| Attachment | axis-message-props-test.xml [ 12120 ] |
| Priority | To be reviewed [ 6 ] | Minor [ 4 ] |
| Fix Version/s | Bug Backlog (2.1.x, 2.2.x) [ 10522 ] |
| Assignee | Dirk Olmes [ dirk ] |
| Fix Version/s | Bug Backlog [ 10522 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Won't Fix or Usage Issue [ 2 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
1058d 6h 30m | 1 | Dirk Olmes | 03/Mar/12 12:17 AM |
- Repository mule on http://foo.bar/ failed: Error in remote call to 'FishEye 0 (http://foo.bar/)' (http://foo.bar) [AbstractRestCommand{path='/rest-service-fe/changeset-v1/listChangesets/', params={expand=changesets[-21:-1].revisions[0:29], comment=MULE-4306, p4JobFixed=MULE-4306, rep=mule}, methodType=GET}] : java.net.UnknownHostException: foo.bar
Axis is no longer supported