strangely, the Exception goes away when I specify a wire format of "jmsTextXML"
on the binding (as shown below), but not if I specify "jmsdefault". I don't
expect
to be passing text messages. Can anyone point me to a ggod explanation of wire
formats, or otherwise guess what's going on?
<service name="LogService">
<interface.java interface="com.softwareag.ps.platform.log.LogService"/>
<binding.jms
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory"
jndiURL="tcp://localhost:61619">
<destination create="ifnotexist" name="RequestQueue" type="queue"/>
<ts:wireFormat.jmsTextXML/>
</binding.jms>
</service>
-- Sebastian
> -----Original Message-----
> From: Millies, Sebastian [mailto:[email protected]]
> Sent: Wednesday, September 15, 2010 7:39 PM
> To: [email protected]
> Subject: NullPointerException in
> WireFormatJMSDefaultReferenceInterceptor
>
> Hello there,
>
> has anyone else had this problem in Tuscany 1.6: I call a service
> method exposed
> by a JMS binding. However, at the time when the constructor of
> org.apache.tuscany.sca.binding.jms.wireformat.jmsdefault.runtim.WireFor
> matJMSDefaultReferenceInterceptor
> is executed, the inputWrapperMap argument is empty (size 0), which
> leads to a NullPointerException later
> on when the requestMsg is constructed in method invokeRequest.
>
> The stack trace is this:
> java.lang.NullPointerException
> at
> org.apache.tuscany.sca.binding.jms.wireformat.jmsdefault.runtime.WireFo
> rmatJMSDefaultReferenceInterceptor.invokeRequest(WireFormatJMSDefaultRe
> ferenceInterceptor.java:99)
> at
> org.apache.tuscany.sca.binding.jms.wireformat.jmsdefault.runtime.WireFo
> rmatJMSDefaultReferenceInterceptor.invoke(WireFormatJMSDefaultReference
> Interceptor.java:78)
> at
> org.apache.tuscany.sca.binding.jms.provider.RRBJMSBindingInvoker.invoke
> (RRBJMSBindingInvoker.java:203)
> at
> org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.inv
> oke(PassByValueInterceptor.java:55)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKI
> nvocationHandler.java:349)
> at
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKI
> nvocationHandler.java:193)
> at $Proxy10.log_lmt(Unknown Source)
> at logtester.LogServiceTester.main(LogServiceTester.java:49)
>
> -- Sebastian