synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evanthika Amarasiri (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-253) NullPointerException thrown when the OUT_ONLY property is not set in the in sequence when sending a request to a JMS endpoint
Date Fri, 14 Mar 2008 09:53:24 GMT
NullPointerException thrown when the OUT_ONLY property is not set in the in sequence when sending
a request to a JMS endpoint
-----------------------------------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-253
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-253
             Project: Synapse
          Issue Type: Bug
          Components: Transports
    Affects Versions: 1.1.1
         Environment: Ubuntu7.10, JDK1.5.0_14
            Reporter: Evanthika Amarasiri


Was trying out the following configuration which sends a request to a JMS endpoint. 

***************************************************************************************************************
   <syn:sequence name="jms_sequence">
        <syn:in>
            <syn:log level="full" separator=","/>
            <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"/>
                </syn:endpoint>
            </syn:send>
        </syn:in>
        <syn:out>
            <syn:log level="full" separator=","/>
            <syn:header name="To" value="jms:/NewAddingQueue?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.DestinationType=queue"/>
            <syn:log level="headers" separator=","/>
            <syn:send/>
        </syn:out>
    </syn:sequence>
***************************************************************************************************************

Accidentally I forgot the set the property OUT_ONLY=true.
When executing the client a NullPointerException is thrown as below. Even though you should
specify this property when exposing services through JMS you should not get a NullPointerException
if a user forgets to include it in the configuration.

2008-03-14 15:13:24,294 [127.0.1.1-evanthika-laptop] [HttpServerWorker-5] ERROR Axis2Sender
Unexpected error during sending message out
java.lang.NullPointerException
        at org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:230)
        at org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:95)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:192)
        at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:176)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:257)
        at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:200)
        at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:204)
        at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:100)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:60)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:174)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:154)
        at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:89)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:226)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:190)
        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)
2008-03-14 15:13:24,295 [127.0.1.1-evanthika-laptop] [HttpServerWorker-5]  WARN SynapseMessageReceiver
Executing fault handler due to exception encountered
2008-03-14 15:13:24,296 [127.0.1.1-evanthika-laptop] [HttpServerWorker-5]  WARN FaultHandler
Fault handler - setting ERROR_MESSAGE : Unexpected error during sending message out
2008-03-14 15:13:24,296 [127.0.1.1-evanthika-laptop] [HttpServerWorker-5]  WARN FaultHandler
Fault handler - setting ERROR_DETAIL : org.apache.synapse.SynapseException: Unexpected error
during sending message out
        at org.apache.synapse.core.axis2.Axis2Sender.handleException(Axis2Sender.java:113)
        at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:62)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:200)
        at org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:204)
        at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:100)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:60)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:174)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:125)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:154)
        at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:89)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at org.apache.synapse.transport.nhttp.ServerWorker.processPost(ServerWorker.java:226)
        at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:190)
        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)
Caused by: java.lang.NullPointerException
        at org.apache.synapse.transport.jms.JMSSender.sendMessage(JMSSender.java:230)
        at org.apache.synapse.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:95)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:192)
        at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:176)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:257)
        at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:55)
        ... 19 more

2008-03-14 15:13:24,296 [127.0.1.1-evanthika-laptop] [HttpServerWorker-5]  WARN FaultHandler
Fault handler - setting ERROR_EXCEPTION : org.apache.synapse.SynapseException: Unexpected
error during sending message out 

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


Mime
View raw message