[ 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
