You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "rnell (JIRA)" <ji...@apache.org> on 2006/03/27 17:03:31 UTC

[jira] Created: (AXIS2-524) JMS Doesn't work

JMS Doesn't work
----------------

         Key: AXIS2-524
         URL: http://issues.apache.org/jira/browse/AXIS2-524
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
    Versions: 0.94    
    Reporter: rnell


I modified the EchoBlockingClient to use JMS as shown below.   
App dies with 

org.apache.axis2.AxisFault: Incoming message input stream is null
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)


Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
            if ((msgContext
                    .getProperty(Constants.Configuration
                            .IS_USING_SEPARATE_LISTENER) != null) && msgContext
                    .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
                    .equals(Boolean.TRUE)) {
                waitForResponse = !((Boolean) msgContext.getProperty(
                        Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
            }

I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
Should it be using options.isUseSeparateListener()?

Here is my JMS sample code:

public class JmsEchoBlockingClient {
    private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");

    public static void main(String[] args) {
        try {
            OMElement payload = ClientUtil.getEchoOMElement();
            Options options = new Options();
            options.setTo(targetEPR);
            options.setTransportInProtocol(Constants.TRANSPORT_JMS);

            //Blocking invocation
            ServiceClient sender = new ServiceClient();
            sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
            sender.setOptions(options);
            OMElement result = sender.sendReceive(payload);

            StringWriter writer = new StringWriter();
            result.serialize(XMLOutputFactory.newInstance()
                    .createXMLStreamWriter(writer));
            writer.flush();

            System.out.println(writer.toString());

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        } catch (XMLStreamException e) {
            e.printStackTrace();
        }
    }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-524) JMS Doesn't work

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-524?page=comments#action_12375040 ] 

Deepal Jayasinghe commented on AXIS2-524:
-----------------------------------------

any sign of get it done for 1.0 ?    :)

> JMS Doesn't work
> ----------------
>
>          Key: AXIS2-524
>          URL: http://issues.apache.org/jira/browse/AXIS2-524
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Versions: 0.94
>     Reporter: rnell
>     Assignee: Davanum Srinivas

>
> I modified the EchoBlockingClient to use JMS as shown below.   
> App dies with 
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)
> Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
>             if ((msgContext
>                     .getProperty(Constants.Configuration
>                             .IS_USING_SEPARATE_LISTENER) != null) && msgContext
>                     .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
>                     .equals(Boolean.TRUE)) {
>                 waitForResponse = !((Boolean) msgContext.getProperty(
>                         Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
>             }
> I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
> Should it be using options.isUseSeparateListener()?
> Here is my JMS sample code:
> public class JmsEchoBlockingClient {
>     private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");
>     public static void main(String[] args) {
>         try {
>             OMElement payload = ClientUtil.getEchoOMElement();
>             Options options = new Options();
>             options.setTo(targetEPR);
>             options.setTransportInProtocol(Constants.TRANSPORT_JMS);
>             //Blocking invocation
>             ServiceClient sender = new ServiceClient();
>             sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>             sender.setOptions(options);
>             OMElement result = sender.sendReceive(payload);
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>             System.out.println(writer.toString());
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-524) JMS Doesn't work

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-524?page=comments#action_12372666 ] 

Davanum Srinivas commented on AXIS2-524:
----------------------------------------

will look into it.

thanks,
dims

> JMS Doesn't work
> ----------------
>
>          Key: AXIS2-524
>          URL: http://issues.apache.org/jira/browse/AXIS2-524
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>     Versions: 0.94
>     Reporter: rnell
>     Assignee: Davanum Srinivas

>
> I modified the EchoBlockingClient to use JMS as shown below.   
> App dies with 
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)
> Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
>             if ((msgContext
>                     .getProperty(Constants.Configuration
>                             .IS_USING_SEPARATE_LISTENER) != null) && msgContext
>                     .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
>                     .equals(Boolean.TRUE)) {
>                 waitForResponse = !((Boolean) msgContext.getProperty(
>                         Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
>             }
> I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
> Should it be using options.isUseSeparateListener()?
> Here is my JMS sample code:
> public class JmsEchoBlockingClient {
>     private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");
>     public static void main(String[] args) {
>         try {
>             OMElement payload = ClientUtil.getEchoOMElement();
>             Options options = new Options();
>             options.setTo(targetEPR);
>             options.setTransportInProtocol(Constants.TRANSPORT_JMS);
>             //Blocking invocation
>             ServiceClient sender = new ServiceClient();
>             sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>             sender.setOptions(options);
>             OMElement result = sender.sendReceive(payload);
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>             System.out.println(writer.toString());
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-524) JMS Doesn't work

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-524?page=comments#action_12375091 ] 

Davanum Srinivas commented on AXIS2-524:
----------------------------------------

Hehe, i had just downloaded ActiveMQ 3.2.2 yesterday. Hopefully yes.

-- dims

> JMS Doesn't work
> ----------------
>
>          Key: AXIS2-524
>          URL: http://issues.apache.org/jira/browse/AXIS2-524
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Versions: 0.94
>     Reporter: rnell
>     Assignee: Davanum Srinivas

>
> I modified the EchoBlockingClient to use JMS as shown below.   
> App dies with 
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)
> Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
>             if ((msgContext
>                     .getProperty(Constants.Configuration
>                             .IS_USING_SEPARATE_LISTENER) != null) && msgContext
>                     .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
>                     .equals(Boolean.TRUE)) {
>                 waitForResponse = !((Boolean) msgContext.getProperty(
>                         Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
>             }
> I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
> Should it be using options.isUseSeparateListener()?
> Here is my JMS sample code:
> public class JmsEchoBlockingClient {
>     private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");
>     public static void main(String[] args) {
>         try {
>             OMElement payload = ClientUtil.getEchoOMElement();
>             Options options = new Options();
>             options.setTo(targetEPR);
>             options.setTransportInProtocol(Constants.TRANSPORT_JMS);
>             //Blocking invocation
>             ServiceClient sender = new ServiceClient();
>             sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>             sender.setOptions(options);
>             OMElement result = sender.sendReceive(payload);
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>             System.out.println(writer.toString());
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS2-524) JMS Doesn't work

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-524?page=all ]
     
Davanum Srinivas resolved AXIS2-524:
------------------------------------

    Resolution: Fixed

Fixed in latest SVN.

thanks,
dims

> JMS Doesn't work
> ----------------
>
>          Key: AXIS2-524
>          URL: http://issues.apache.org/jira/browse/AXIS2-524
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Versions: 0.94
>     Reporter: rnell
>     Assignee: Davanum Srinivas

>
> I modified the EchoBlockingClient to use JMS as shown below.   
> App dies with 
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)
> Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
>             if ((msgContext
>                     .getProperty(Constants.Configuration
>                             .IS_USING_SEPARATE_LISTENER) != null) && msgContext
>                     .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
>                     .equals(Boolean.TRUE)) {
>                 waitForResponse = !((Boolean) msgContext.getProperty(
>                         Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
>             }
> I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
> Should it be using options.isUseSeparateListener()?
> Here is my JMS sample code:
> public class JmsEchoBlockingClient {
>     private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");
>     public static void main(String[] args) {
>         try {
>             OMElement payload = ClientUtil.getEchoOMElement();
>             Options options = new Options();
>             options.setTo(targetEPR);
>             options.setTransportInProtocol(Constants.TRANSPORT_JMS);
>             //Blocking invocation
>             ServiceClient sender = new ServiceClient();
>             sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>             sender.setOptions(options);
>             OMElement result = sender.sendReceive(payload);
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>             System.out.println(writer.toString());
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXIS2-524) JMS Doesn't work

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-524?page=all ]

Deepal Jayasinghe reassigned AXIS2-524:
---------------------------------------

    Assign To: Davanum Srinivas

Hi Dims

You are the best person to answer this :)

> JMS Doesn't work
> ----------------
>
>          Key: AXIS2-524
>          URL: http://issues.apache.org/jira/browse/AXIS2-524
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>     Versions: 0.94
>     Reporter: rnell
>     Assignee: Davanum Srinivas

>
> I modified the EchoBlockingClient to use JMS as shown below.   
> App dies with 
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)
> Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
>             if ((msgContext
>                     .getProperty(Constants.Configuration
>                             .IS_USING_SEPARATE_LISTENER) != null) && msgContext
>                     .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
>                     .equals(Boolean.TRUE)) {
>                 waitForResponse = !((Boolean) msgContext.getProperty(
>                         Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
>             }
> I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
> Should it be using options.isUseSeparateListener()?
> Here is my JMS sample code:
> public class JmsEchoBlockingClient {
>     private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");
>     public static void main(String[] args) {
>         try {
>             OMElement payload = ClientUtil.getEchoOMElement();
>             Options options = new Options();
>             options.setTo(targetEPR);
>             options.setTransportInProtocol(Constants.TRANSPORT_JMS);
>             //Blocking invocation
>             ServiceClient sender = new ServiceClient();
>             sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>             sender.setOptions(options);
>             OMElement result = sender.sendReceive(payload);
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>             System.out.println(writer.toString());
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-524) JMS Doesn't work

Posted by "rnell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-524?page=comments#action_12375171 ] 

rnell commented on AXIS2-524:
-----------------------------

This error happens when the client doesn't call
      options.setUseSeparateListener( true );
when using
     options.setTransportInProtocol( "jms" );



 

> JMS Doesn't work
> ----------------
>
>          Key: AXIS2-524
>          URL: http://issues.apache.org/jira/browse/AXIS2-524
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Versions: 0.94
>     Reporter: rnell
>     Assignee: Davanum Srinivas

>
> I modified the EchoBlockingClient to use JMS as shown below.   
> App dies with 
> org.apache.axis2.AxisFault: Incoming message input stream is null
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:63)
> Also i've single stepped through the code and couldn't figure out this code from JMSSender.java:
>             if ((msgContext
>                     .getProperty(Constants.Configuration
>                             .IS_USING_SEPARATE_LISTENER) != null) && msgContext
>                     .getProperty(Constants.Configuration.IS_USING_SEPARATE_LISTENER)
>                     .equals(Boolean.TRUE)) {
>                 waitForResponse = !((Boolean) msgContext.getProperty(
>                         Constants.Configuration.IS_USING_SEPARATE_LISTENER)).booleanValue();
>             }
> I couldn't find any place where IS_USING_SEPARATE_LISTENER is used.  
> Should it be using options.isUseSeparateListener()?
> Here is my JMS sample code:
> public class JmsEchoBlockingClient {
>     private static EndpointReference targetEPR = new EndpointReference("jms:/MY.JMS.PATH");
>     public static void main(String[] args) {
>         try {
>             OMElement payload = ClientUtil.getEchoOMElement();
>             Options options = new Options();
>             options.setTo(targetEPR);
>             options.setTransportInProtocol(Constants.TRANSPORT_JMS);
>             //Blocking invocation
>             ServiceClient sender = new ServiceClient();
>             sender.engageModule(new QName(Constants.MODULE_ADDRESSING));
>             sender.setOptions(options);
>             OMElement result = sender.sendReceive(payload);
>             StringWriter writer = new StringWriter();
>             result.serialize(XMLOutputFactory.newInstance()
>                     .createXMLStreamWriter(writer));
>             writer.flush();
>             System.out.println(writer.toString());
>         } catch (AxisFault axisFault) {
>             axisFault.printStackTrace();
>         } catch (XMLStreamException e) {
>             e.printStackTrace();
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira