Hi Remsy,
Could you please share your axis2.xml and synapse.xml, I just want the
proxy declaration in synapse.xml. I think some of the parameters that
are required is missing. Please have a look at the JMS sample [1] for
more information on the required parameters. I guess the missing
parameter to be the connection factory. :-(
Just try using the following parameter inside the proxy service, because
it seems like you are trying to send a plain text or binary JMS message,
though this doesn't fix the issue, you should not be getting the NPE if
you use this property.
<parameter
name="transport.jms.Wrapper">{http://services.samples/xsd}element</parameter>
Thanks,
Ruwan
[1] - http://wso2.org/project/esb/java/1.7.1/docs/ESB_Samples.html#Sample250
Schmilinsky, Remsy wrote:
>
> I would like to use the jndi queue name instead of the queue url in
> synapse.xml for a JMS listener proxy. When specifying the JNDI name
> for property transport.jms.Destination, it seems to map it
> successfully against the queue channel:
>
> 2008-12-17 11:40:45,670 [7.28.130.231-wh24cu6052]
> [WrapperSimpleAppMain] INFO JMSConnectionFactory Mapped JNDI name :
> SampleQueue and JMS Destination name : queue:// MQ_SERVER/SAMPLE_QUEUE
> against service : MsgListener
>
> But now I get this error:
>
> Exception in thread "jms-Worker-1" java.lang.NullPointerException
>
> at
> org.apache.synapse.transport.base.BaseUtils.handleLegacyMessage(BaseUtils.java:298)
>
> at
> org.apache.synapse.transport.base.BaseUtils.setSOAPEnvelope(BaseUtils.java:259)
>
> at
> org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:216)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>
> at java.lang.Thread.run(Thread.java:810)
>
> The above error goes away if I set the value of
> transport.jms.Destination to “queue://MQ_SERVER/SAMPLE_QUEUE” instead
> of the JNDI name “SampleQueue”, any idea of why this happens ?
>
> remsy
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Esb-java-user mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>
_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user