synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type
Date Sun, 07 Sep 2008 10:09:44 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628949#action_12628949
] 

Andreas Veithen commented on SYNAPSE-436:
-----------------------------------------

I fixed one issue in the JMSOutTransportInfo constructor, but now I get a different error
which is caused by SYNAPSE-439.

> 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
>         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


Mime
View raw message