[ 
http://wso2.org/jira/browse/ESBJAVA-437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Evanthika Amarasiri updated ESBJAVA-437:
----------------------------------------

        Summary: NullpointerException thrown on the simple axis2server console 
when OUT_ONLY property is set for a service which sends back a response message 
[JMS]  (was: NullpointerException thrown on the simple axis2server console when 
OUT_ONLY property is set for a service which sends back a response message)
    Description: 
Below are the steps to reproduce the error

1. Created a proxy service as follows which is directed to a JMS endpoint
    <syn:proxy name="proxy_sample" transports="https http jms" 
startOnLoad="true" statistics="enable" trace="enable">
        <syn:target>
            <syn:inSequence>
                <syn:property name="OUT_ONLY" value="true"/>
                <syn:send>
                    <syn:endpoint>
                        <syn:address 
uri="jms:/Adding?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;transport.jms.DestinationType=queue"/>
                    </syn:endpoint>
                </syn:send>
            </syn:inSequence>
            <syn:outSequence>
                <syn:send/>
            </syn:outSequence>
        </syn:target>
        <syn:publishWSDL uri="http://localhost:9000/services/Adding?wsdl"/>
    </syn:proxy>

2. The service which is invoked here is a simple service which accepts two 
numbers and returns the value after adding the two values.
3. Once the request is sent the simple axis2 server throws a 
NullPointerException as below and the response is not sent to the client

***********************************************************************************************************************************************
Exception in thread "jms-Worker-8" java.lang.NullPointerException
        at 
org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:198)
        at 
org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:102)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
        at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at 
org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:210)
        at 
org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:201)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)


  was:
Below are the steps to reproduce the error

1. Created a proxy service as follows
    <syn:proxy name="proxy_sample" transports="https http jms" 
startOnLoad="true" statistics="enable" trace="enable">
        <syn:target>
            <syn:inSequence>
                <syn:property name="OUT_ONLY" value="true"/>
                <syn:send>
                    <syn:endpoint>
                        <syn:address 
uri="jms:/Adding?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;transport.jms.DestinationType=queue"/>
                    </syn:endpoint>
                </syn:send>
            </syn:inSequence>
            <syn:outSequence>
                <syn:send/>
            </syn:outSequence>
        </syn:target>
        <syn:publishWSDL uri="http://localhost:9000/services/Adding?wsdl"/>
    </syn:proxy>

2. The service which is invoked here is a simple service which accepts two 
numbers and returns the value after adding the two values.
3. Once the request is sent the simple axis2 server throws a 
NullPointerException as below and the response is not sent to the client

***********************************************************************************************************************************************
Exception in thread "jms-Worker-8" java.lang.NullPointerException
        at 
org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:198)
        at 
org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:102)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
        at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at 
org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:210)
        at 
org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:201)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)



> NullpointerException thrown on the simple axis2server console when OUT_ONLY 
> property is set for a service which sends back a response message [JMS]
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ESBJAVA-437
>                 URL: http://wso2.org/jira/browse/ESBJAVA-437
>             Project: WSO2 ESB
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: Ubuntu7.04, JDK1.5.0_14, Firefox 2.0.0.12
>            Reporter: Evanthika Amarasiri
>            Assignee: Upul Godage
>
> Below are the steps to reproduce the error
> 1. Created a proxy service as follows which is directed to a JMS endpoint
>     <syn:proxy name="proxy_sample" transports="https http jms" 
> startOnLoad="true" statistics="enable" trace="enable">
>         <syn:target>
>             <syn:inSequence>
>                 <syn:property name="OUT_ONLY" value="true"/>
>                 <syn:send>
>                     <syn:endpoint>
>                         <syn:address 
> uri="jms:/Adding?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp;java.naming.provider.url=tcp://localhost:61616&amp;transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&amp;transport.jms.DestinationType=queue"/>
>                     </syn:endpoint>
>                 </syn:send>
>             </syn:inSequence>
>             <syn:outSequence>
>                 <syn:send/>
>             </syn:outSequence>
>         </syn:target>
>         <syn:publishWSDL uri="http://localhost:9000/services/Adding?wsdl"/>
>     </syn:proxy>
> 2. The service which is invoked here is a simple service which accepts two 
> numbers and returns the value after adding the two values.
> 3. Once the request is sent the simple axis2 server throws a 
> NullPointerException as below and the response is not sent to the client
> ***********************************************************************************************************************************************
> Exception in thread "jms-Worker-8" java.lang.NullPointerException
>         at 
> org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:198)
>         at 
> org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:102)
>         at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>         at 
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:43)
>         at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.synapse.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:210)
>         at 
> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:201)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>         at java.lang.Thread.run(Thread.java:595)

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

        

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to