JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-4646

When sync endpoint and disableTempDesintations are used together JMSMessageDispatcher should return null rather than NullPayload

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Reopened Reopened
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 2.2.3 (EE only)
  • Fix Version/s: 2.2.4 (EE only)
  • Component/s: Transport: JMS
  • Labels:
    None
  • User impact:
    Medium
  • Similar Issues:
    None

Description

This is because in this case no response is expected and therefore the service should behave in the an "outbound aysnc" mode and return the result of component inovcation and not the NullPayload response from outbound.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    JmsResponseTransformerTestCase.java
    21/Dec/09 11:31 AM
    0.8 kB
    Puneet Gupta
  2. XML File
    responsetransformer-test.xml
    21/Dec/09 11:31 AM
    2 kB
    Puneet Gupta

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Daniel Feist
07/Dec/09 10:30 AM
View full commit
MULE-4646 When sync endpoint and disableTempDesintations are used together JMSMessageDispatcher should return null rather than NullPayload git-svn-id: https://svn.codehaus.org/mule/branches/mule-2.2.x@16181 bf997673-6b11-0410-b953-e057580c5b09
mule-2.2.x
+7
-2
transports/jms/src/main/java/org/mule/transport/jms/JmsMessageDispatcher.java
+19
-4
transports/jms/src/test/java/org/mule/transport/jms/integration/JmsTemporaryReplyToTestCase.java
+28
-
transports/jms/src/test/resources/integration/jms-temporary-replyTo.xml
Daniel Feist made changes - 07/Dec/09 10:30 AM
Field Original Value New Value
Fix Version/s 2.2.4 (EE only) [ 10778 ]
Affects Version/s 2.2.3 (EE only) [ 10718 ]
Affects Version/s 3.0.0-M1 [ 10265 ]
Assignee Daniel Feist [ dfeist ]
Priority To be reviewed [ 6 ] Minor [ 4 ]
Daniel Feist made changes - 09/Dec/09 11:04 AM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
Hide
Permalink
Travis Carlson added a comment - 09/Dec/09 11:55 AM

JmsTemporaryReplyToTestCase is failing for WMQ after the change.

Show
Travis Carlson added a comment - 09/Dec/09 11:55 AM JmsTemporaryReplyToTestCase is failing for WMQ after the change.
Travis Carlson made changes - 09/Dec/09 11:55 AM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Daniel Feist
09/Dec/09 05:19 PM
View full commit
Not sure why this config file is used but it is, updated it so it matches updated version in CE. (MULE-4646 When sync endpoint and disableTempDesintations are used together JMSMessageDispatcher should return null rather than NullPayload) git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x@17172 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-2.2.x
+30
-2
transports/wmq/src/test/resources/integration/jms-temporary-replyTo.xml
tcarlson
09/Dec/09 08:50 PM
View full commit
Complete parameterization of test case (for MULE-4646) git-svn-id: https://svn.codehaus.org/mule/branches/mule-2.2.x@16213 bf997673-6b11-0410-b953-e057580c5b09
mule-2.2.x
+16
-
transports/jms/src/test/resources/integration/activemq/connector-jms-temporary-replyTo.xml
+9
-15
transports/jms/src/test/resources/integration/jms-temporary-replyTo.xml
travis.carlson
10/Dec/09 04:55 AM
View full commit
Complete parameterization of test case (for MULE-4646) - depends on r16213 from CE git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x@17177 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-2.2.x
+17
-
transports/wmq/src/test/resources/integration/webspheremq/connector-jms-temporary-replyTo.xml
travis.carlson
10/Dec/09 06:47 AM
View full commit
Restore the configs which override CE and update for MULE-4646 git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x@17179 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-2.2.x
Added
transports/wmq/src/test/resources/integration/jms-custom-correlation.xml
Added
transports/wmq/src/test/resources/integration/jms-temporary-replyTo.xml
Added
transports/wmq/src/test/resources/jms-single-tx-BEGIN_OR_JOIN_AND_ALWAYS_BEGIN.xml
Travis Carlson made changes - 10/Dec/09 06:48 AM
Assignee Daniel Feist [ dfeist ] Travis Carlson [ tcarlson ]
Hide
Permalink
Travis Carlson added a comment - 10/Dec/09 06:49 AM

Needed to update transports/wmq/src/test/resources/integration/jms-temporary-replyTo.xml in EE which overrides the CE config

https://dev.ee.mulesource.com/fisheye/changelog/products/?cs=17179

Show
Travis Carlson added a comment - 10/Dec/09 06:49 AM Needed to update transports/wmq/src/test/resources/integration/jms-temporary-replyTo.xml in EE which overrides the CE config https://dev.ee.mulesource.com/fisheye/changelog/products/?cs=17179
Travis Carlson made changes - 10/Dec/09 01:04 PM
Status Reopened [ 4 ] Closed [ 6 ]
Resolution Fixed [ 1 ]
daniel.zapata
10/Dec/09 03:41 PM
View full commit
update MuleMq test based on changes for ActiveMQ in rev 16213 for MULE-4646 git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x@17186 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-2.2.x
+18
-
transports/mulemq/src/test/resources/integration/nirvanajms/connector-jms-temporary-replyTo.xml
Hide
Permalink
Puneet Gupta added a comment - 18/Dec/09 04:38 PM

We changed all of the dispatchers to return NullPayload instead null. returning null short circuits all processing. No response transformers of further endpoints are processes. A endpoint should never return null. If this is breaking a test case, check the test case or code.

Dan F spent a lot of time fixing this for Atlas. please dont change stuff and break a lot of other functionality. I am at POC this is messing me up.

Show
Puneet Gupta added a comment - 18/Dec/09 04:38 PM We changed all of the dispatchers to return NullPayload instead null. returning null short circuits all processing. No response transformers of further endpoints are processes. A endpoint should never return null. If this is breaking a test case, check the test case or code. Dan F spent a lot of time fixing this for Atlas. please dont change stuff and break a lot of other functionality. I am at POC this is messing me up.
Puneet Gupta made changes - 18/Dec/09 04:38 PM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Hide
Permalink
Travis Carlson added a comment - 18/Dec/09 06:28 PM

It looks like the change which Puneet is talking about was yours Dan:
http://fisheye.codehaus.org/changelog/mule/?cs=16181

And it seems to be very intentional based on the in-line comment:

// In this case a response was never expected so we return null and not NullPayload.
// This generally happens when dispatch is used for an asynchronous endpoint but can also occur when send() is used
// and disableTempDestinations is set.
return returnOriginalMessageAsReply ? new DefaultMuleMessage(msg) : null;

Show
Travis Carlson added a comment - 18/Dec/09 06:28 PM It looks like the change which Puneet is talking about was yours Dan: http://fisheye.codehaus.org/changelog/mule/?cs=16181 And it seems to be very intentional based on the in-line comment: // In this case a response was never expected so we return null and not NullPayload. // This generally happens when dispatch is used for an asynchronous endpoint but can also occur when send() is used // and disableTempDestinations is set. return returnOriginalMessageAsReply ? new DefaultMuleMessage(msg) : null;
Travis Carlson made changes - 18/Dec/09 06:28 PM
Assignee Travis Carlson [ tcarlson ] Daniel Feist [ dfeist ]
Hide
Permalink
Daniel Feist added a comment - 20/Dec/09 10:55 AM

This is just for a single specific case after discussions with AP.

Show
Daniel Feist added a comment - 20/Dec/09 10:55 AM This is just for a single specific case after discussions with AP.
Puneet Gupta made changes - 21/Dec/09 11:31 AM
Attachment responsetransformer-test.xml [ 12502 ]
Attachment JmsResponseTransformerTestCase.java [ 12503 ]
Hide
Permalink
Puneet Gupta added a comment - 21/Dec/09 11:32 AM

It is a regression. Run the attached test case against 2.4 and then against 2.5 snapshot. If regressions don't matter then I probably have to start using my own branch and build my own distributions.

Show
Puneet Gupta added a comment - 21/Dec/09 11:32 AM It is a regression. Run the attached test case against 2.4 and then against 2.5 snapshot. If regressions don't matter then I probably have to start using my own branch and build my own distributions.
Hide
Permalink
Andrew Perepelytsya added a comment - 21/Dec/09 11:36 AM

No it is not. If you want the original message returned with JMSMessageID set, there's a returnOriginalMessage or similar flag for jms to do that. Check with Travis C for details.

Show
Andrew Perepelytsya added a comment - 21/Dec/09 11:36 AM No it is not. If you want the original message returned with JMSMessageID set, there's a returnOriginalMessage or similar flag for jms to do that. Check with Travis C for details.
Hide
Permalink
Puneet Gupta added a comment - 21/Dec/09 12:02 PM

I dont want the original message, I want the message from my transformer. I did not have to use this flag before and it used to work. why would using a newer version require me to change config. That is a regression cause it breaks a users existing code.

Show
Puneet Gupta added a comment - 21/Dec/09 12:02 PM I dont want the original message, I want the message from my transformer. I did not have to use this flag before and it used to work. why would using a newer version require me to change config. That is a regression cause it breaks a users existing code.
Hide
Permalink
Daniel Feist added a comment - 28/Dec/09 09:22 PM

This is a minor regression compared to 2.2.3 yes, but it preserves the 2.2.2 behavior in this case where a response is not expected. In the cases where a response is expected NullPayload is returned and the previous improvement remains in place.

PG/AP: Maybe you can discuss this between you a bit?

Show
Daniel Feist added a comment - 28/Dec/09 09:22 PM This is a minor regression compared to 2.2.3 yes, but it preserves the 2.2.2 behavior in this case where a response is not expected. In the cases where a response is expected NullPayload is returned and the previous improvement remains in place. PG/AP: Maybe you can discuss this between you a bit?
travis.carlson
14/Jan/10 03:12 PM
View full commit
Merged revisions 17164,17177-17179 via svnmerge from https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x ........ r17164 | travis.carlson | 2009-12-08 08:10:32 -0300 (Tue, 08 Dec 2009) | 1 line Complete parameterization of this test case (for MULE-4340) - depends on r16184:16185 from CE ........ r17177 | travis.carlson | 2009-12-10 07:55:18 -0300 (Thu, 10 Dec 2009) | 1 line Complete parameterization of test case (for MULE-4646) - depends on r16213 from CE ........ r17178 | travis.carlson | 2009-12-10 08:02:08 -0300 (Thu, 10 Dec 2009) | 1 line Remove unused configs ........ r17179 | travis.carlson | 2009-12-10 09:47:09 -0300 (Thu, 10 Dec 2009) | 1 line Restore the configs which override CE and update for MULE-4646 ........ git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-3.x@17307 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-3.1.2-ION
+31
-11
transports/wmq/src/test/resources/integration/jms-temporary-replyTo.xml
+13
-
transports/wmq/src/test/resources/integration/webspheremq/connector-jms-exception-strategy.xml
+17
-
transports/wmq/src/test/resources/integration/webspheremq/connector-jms-temporary-replyTo.xml
-
-3
transports/wmq/src/test/resources/mule-test-exclusions.txt
daniel.zapata
24/Mar/10 12:54 PM
View full commit
Merged revisions 17186 via svnmerge from https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x ........ r17186 | daniel.zapata | 2009-12-10 13:41:29 -0800 (Thu, 10 Dec 2009) | 1 line update MuleMq test based on changes for ActiveMQ in rev 16213 for MULE-4646 ........ git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-3.x@17600 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-3.1.2-ION
+18
-
transports/mulemq/src/test/resources/integration/nirvanajms/connector-jms-temporary-replyTo.xml
daniel.zapata
24/May/10 06:46 PM
View full commit
Merged revisions 17127,17172,17183,17218 via svnmerge from https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-2.2.x ........ r17127 | andrew.perepelytsya | 2009-12-01 08:45:01 -0800 (Tue, 01 Dec 2009) | 1 line Removed completed TODO ........ r17172 | daniel.feist | 2009-12-09 15:19:15 -0800 (Wed, 09 Dec 2009) | 1 line Not sure why this config file is used but it is, updated it so it matches updated version in CE. (MULE-4646 When sync endpoint and disableTempDesintations are used together JMSMessageDispatcher should return null rather than NullPayload) ........ r17183 | andrew.perepelytsya | 2009-12-10 07:09:20 -0800 (Thu, 10 Dec 2009) | 1 line Improvements for concurrent usage, also detect if any stale context has been propagated back from the receiver pool to this execution (throw exception) ........ r17218 | andrew.perepelytsya | 2009-12-17 07:59:42 -0800 (Thu, 17 Dec 2009) | 1 line svn ignores ........ git-svn-id: https://dev.ee.mulesource.com/repos/mulesource/products/muleesb2/branches/mule-3.x@17710 0a89a180-5d00-439f-bfd8-e5986d05a46d
mule-3.1.2-ION
-
-1
modules/multi-tx/src/main/java/com/mulesource/mule/transaction/SingleResourceCollectionTransaction.java
+20
-9
transports/jms/src/main/java/com/mulesource/mule/transport/jms/TransactedPollingJmsMessageReceiver.java
+1
-3
transports/wmq/src/test/resources/integration/jms-temporary-replyTo.xml
Transition Time In Source Status Execution Times Last Executer Last Execution Date
Open Open Closed Closed
5d 18h 52m 1 Daniel Feist 09/Dec/09 11:04 AM
Reopened Reopened Closed Closed
1d 1h 8m 1 Travis Carlson 10/Dec/09 01:04 PM
Closed Closed Reopened Reopened
8d 4h 25m 2 Puneet Gupta 18/Dec/09 04:38 PM
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
  • 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-4646, p4JobFixed=MULE-4646, rep=mule}, methodType=GET}] : java.net.UnknownHostException: foo.bar

People

  • Assignee:
    Daniel Feist
    Reporter:
    Daniel Feist
Vote (0)
Watch (2)

Dates

  • Created:
    03/Dec/09 04:11 PM
    Updated:
    28/Dec/09 09:22 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.