You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Tanmay saha (JIRA)" <ji...@apache.org> on 2008/08/25 18:57:44 UTC

[jira] Created: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

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


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


[jira] Updated: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Assigned: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned SYNAPSE-436:
---------------------------------------

    Assignee: Andreas Veithen

> 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


[jira] Commented: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Resolved: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

Posted by "Hiranya Jayathilaka (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SYNAPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiranya Jayathilaka resolved SYNAPSE-436.
-----------------------------------------

    Resolution: Invalid

This looks very similar to https://issues.apache.org/jira/browse/TRANSPORTS-16. Anyway this is a problem in the JMS transport. The relevant issue should be logged in the Axis2 transports JIRA. Nothing can be done in the Synapse code base to fix this issue.

> 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


[jira] Commented: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

Posted by "Tanmay saha (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628511#action_12628511 ] 

Tanmay saha commented on SYNAPSE-436:
-------------------------------------

Does not matter. I tested using Sonic JMS Test client. I just copy the paste the soap payload in the text area and then click send button.



> 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


[jira] Commented: (SYNAPSE-436) Synapse-1.2 incorrectly sets the JMSReplyDestination Type

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SYNAPSE-436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628500#action_12628500 ] 

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

What kind of client do you use to send messages to the proxy service?

> 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