[ 
http://issues.apache.org/jira/browse/AXIS2-1909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461683
 ] 

Wu Gang commented on AXIS2-1909:
--------------------------------

Hi,

I tested sample and it worked. The sample program takes care of both the client 
side service calling and server side jmslistener startup. But when i broke down 
the sample and first deploy the service to repository and then start 
jmslistener through axis2server.bat, then the client call  got exception as 
following:

####################################################
2007-1-2 15:27:42 userguide.loggingmodule.LogHandler invoke
info: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope 
xmlns:wsa="http://www.w3.org/2005/08/addressing"; xmlns:soa
penv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Header><wsa:To>jms:/myTestQueue?transport.jms.ConnectionFactor
yJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&
amp;java.naming.provider.url=tcp://localhost:61616</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressin
g/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:9A648D5CFDE1A1DE8911677228618541</wsa:MessageID><wsa:Acti
on>JMSEchoService</wsa:Action></soapenv:Header><soapenv:Body><my:echoOMElement 
xmlns:my="http://jms.axis2.apache.org/xsd
"><my:myValue>This is the JMS testing 
text!</my:myValue></my:echoOMElement></soapenv:Body></soapenv:Envelope>
2007-1-2 15:27:42 org.apache.axis2.rpc.receivers.RPCMessageReceiver 
invokeBusinessLogic
critical: Exception occurred while trying to invoke service method echoOMElement
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:118)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)

        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at 
org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:198)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)

        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
        at 
org.apache.axis2.jms.JMSEchoService.echoOMElement(JMSEchoService.java:45)
        ... 11 more
2007-1-2 15:27:42 org.apache.axis2.transport.jms.JMSMessageReceiver$Worker run
critical: JMS Worker [JMSWorker-1] Encountered an Axis Fault : Exception 
occurred while trying to invoke service method echo
OMElement
org.apache.axis2.AxisFault: Exception occurred while trying to invoke service 
method echoOMElement
        at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:154)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)

        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at 
org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:198)
        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)

        at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
        at java.lang.Thread.run(Thread.java:595)
2007-1-2 15:28:14 org.apache.activemq.ActiveMQConnection onAsyncException
warning: Async exception with no exception listener: java.io.EOFException
java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:358)
        at 
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:274)
        at 
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
        at java.lang.Thread.run(Thread.java:595)
2007-1-2 15:28:14 org.apache.activemq.ActiveMQConnection onAsyncException
warning: Async exception with no exception listener: java.io.EOFException
java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:358)
        at 
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:274)
        at 
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
        at java.lang.Thread.run(Thread.java:595)
2007-1-2 15:28:14 org.apache.activemq.ActiveMQConnection onAsyncException
warning: Async exception with no exception listener: java.io.EOFException
java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:358)
        at 
org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:274)
        at 
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:142)
        at java.lang.Thread.run(Thread.java:595)
####################################################

"Ali Sadik Kumlali (JIRA)" <[EMAIL PROTECTED]> wrote:      [ 
http://issues.apache.org/jira/browse/AXIS2-1909?page=all ]

Ali Sadik Kumlali updated AXIS2-1909:
-------------------------------------

    Attachment: Axis2JmsWorkingSample.zip


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

        


 __________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com


> JMS samples for Axis2 release 1.2
> ---------------------------------
>
>                 Key: AXIS2-1909
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1909
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: samples
>    Affects Versions: 1.2
>            Reporter: Wu Gang
>         Attachments: Axis2JmsWorkingSample.zip
>
>
> Appreciate a couple of JMS samples, possibly using geronimo's activemq

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to