You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2008/09/20 23:07:44 UTC
[jira] Updated: (SYNAPSE-436) Synapse-1.2 incorrectly sets the
JMSReplyDestination Type
[ https://issues.apache.org/jira/browse/SYNAPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated SYNAPSE-436:
------------------------------------
Component/s: Transports
> Synapse-1.2 incorrectly sets the JMSReplyDestination Type
> ---------------------------------------------------------
>
> Key: SYNAPSE-436
> URL: https://issues.apache.org/jira/browse/SYNAPSE-436
> Project: Synapse
> Issue Type: Bug
> Components: Transports
> Environment: Windows XP, JDK 1.5
> Reporter: Tanmay saha
> Assignee: Andreas Veithen
>
> This a problem with Synapse-1.2 but works fine with Synapse-1.1.1
> I have a Proxy setup as
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <proxy name="echoProxy" transports="jms">
> <target>
>
> <endpoint>
> <address uri="http://localhost:8082/EJBWebService/EchoBean"/>
> </endpoint>
>
> <outSequence>
> <send/>
> </outSequence>
> </target>
>
> <parameter name="transport.jms.ConnectionFactory">myTopicConnectionFactory</parameter>
> <parameter name="transport.jms.Destination">TopicXA</parameter>
> <parameter name="transport.jms.DestinationType">topic</parameter>
>
> <parameter name="transport.jms.ReplyDestination">ReplyTopic</parameter>
> <parameter name="transport.jms.ReplyDestinationType">topic</parameter>
> <publishWSDL uri="file:repository/conf/sample/resources/proxy/echo_proxy.wsdl"/>
> </proxy>
> </definitions>
> destinationType in sendMessageToJMSDestination() method of JMSUtil.java class is passed with the value of "queue". Please see the debug message
> 2008-07-14 13:16:28,113 [10.200.182.100-PS-TSAHA] [HttpClientWorker-1] DEBUG JMSUtils Sending message to destination : ReplyTopic
> 2008-07-14 13:16:28,113 [10.200.182.100-PS-TSAHA] [HttpClientWorker-1] DEBUG JMSUtils Sending message to destinationType : queue
> destinationType should be topic
> Then it throws the following error
> 2008-07-14 13:16:28,113 [10.200.182.100-PS-TSAHA] [HttpClientWorker-1] DEBUG JMS
> Utils Sending message to destination : ReplyTopic
> 2008-07-14 13:16:28,113 [10.200.182.100-PS-TSAHA] [HttpClientWorker-1] DEBUG JMS
> Utils Sending message to destinationType : queue
> Exception in thread "HttpClientWorker-1" java.lang.ClassCastException: progress.
> message.jimpl.TopicSession cannot be cast to javax.jms.QueueSession
> at org.apache.synapse.transport.jms.JMSUtils.sendMessageToJMSDestination
> (JMSUtils.java:463)
> at org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java
> :235)
> at org.apache.synapse.transport.base.AbstractTransportSender.invoke(Abst
> ractTransportSender.java:127)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:1
> 38)
> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2Synap
> seEnvironment.java:219)
> at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediato
> r.java:154)
> at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractLis
> tMediator.java:58)
> at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMe
> diator.java:125)
> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(A
> xis2SynapseEnvironment.java:162)
> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(S
> ynapseCallbackReceiver.java:301)
> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(Synapse
> CallbackReceiver.java:131)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java
> :200)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
> )
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org