Hello Gert,
Iam using serviceMix 3.3(Jetty), WinXPSp2. And here is the full trace.
Trace
ERROR - JmsComponent - Error processing exchange InOnly[
id: ID:172.25.35.156-11e876aa483-7:100
status: Active
role: provider
service: {http://intra.agfanet}jms
endpoint: myQueue
in: <?xml version="1.0" encoding="UTF-8"?><note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
]
java.lang.NullPointerException
at
org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:83)
at
org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:107)
at
org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsProcessor.java:216)
at
org.apache.servicemix.jms.AbstractJmsProcessor.createMessageFromExchange(AbstractJmsProcessor.java:263)
at
org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:110)
at
org.apache.servicemix.soap.SoapEndpoint.process(SoapEndpoint.java:367)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
WARN - FileComponent - Message in file
C:\BPEFileReader\sample.xml could not be handled successfully: null
java.lang.NullPointerException
at
org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:83)
at
org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:107)
at
org.apache.servicemix.jms.AbstractJmsProcessor.fromNMS(AbstractJmsProcessor.java:216)
at
org.apache.servicemix.jms.AbstractJmsProcessor.createMessageFromExchange(AbstractJmsProcessor.java:263)
at
org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:110)
at
org.apache.servicemix.soap.SoapEndpoint.process(SoapEndpoint.java:367)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
------
Actually, if I use
<amq:connectionFactory id="connectionFactory"
brokerURL="tcp://localhost:61616" />
I dont have any problem.
But if I use bean configuration for JBoss queue, Iam having this problem.
One more question, is it necessary to give brokerurl when I use bean
configuration ?
Thanking you very much.
Best Regards,
Ajay
Gert Vanthienen wrote:
>
> Ajay,
>
> Are there any exceptions prior to this one? It looks like there is a
> problem creating the JMS TextMessage object, but in order to be sure,
> I'd have to know which version of ServiceMix you are using.
>
> Regards,
>
> Gert
>
> Ajaykumar wrote:
>> Hi,
>>
>> Iam having problem using EIP example. I have the following SU's
>> configuration.
>>
>> File SU xbean.xml
>>
>> <beans xmlns:file="http://servicemix.apache.org/file/1.0"
>> xmlns:tut="http://intra.agfanet">
>> <!-- add the poller endpoint here -->
>> <file:poller service="tut:file" endpoint="poller"
>> file="file:C:/BPEFileReader" targetService="tut:wiretap">
>> <property name="filter">
>> <bean
>> class="org.apache.commons.io.filefilter.WildcardFilter">
>> <constructor-arg value="sample.xml" />
>> </bean>
>> </property>
>> </file:poller>
>> <!-- add the sender endpoint here -->
>> <file:sender service="tut:file" endpoint="sender"
>> directory="file:C:/BPEFileWriter" />
>> </beans>
>>
>> JMS SU xbean.xml
>>
>> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>> xmlns:tut="http://intra.agfanet"
>> xmlns:amq="http://activemq.org/config/1.0">
>> <jms:endpoint service="tut:jms"
>> endpoint="myQueue"
>> role="provider"
>> destinationStyle="queue"
>> jmsProviderDestinationName="queue/myQueue"
>> connectionFactory="#connectionFactory"/>
>> <bean id="jbossJndiTemplate"
>> class="org.springframework.jndi.JndiTemplate">
>> <property name="environment">
>> <props>
>> <prop key="java.naming.factory.initial">
>> org.jnp.interfaces.NamingContextFactory
>> </prop>
>> <prop key="java.naming.provider.url">
>> jnp://localhost:1099
>> </prop>
>> <prop key="java.naming.factory.url.pkgs">
>> org.jboss.naming:org.jnp.interfaces
>> </prop>
>> </props>
>> </property>
>> </bean>
>>
>> <bean id="connectionFactory"
>> class="org.springframework.jndi.JndiObjectFactoryBean">
>> <property name="jndiTemplate">
>> <ref bean="jbossJndiTemplate" />
>> </property>
>> <property name="jndiName">
>> <value>QueueConnectionFactory</value>
>> </property>
>> </bean>
>> </beans>
>>
>> EIP SU xbean.xml
>>
>> <beans xmlns:eip="http://servicemix.apache.org/eip/1.0"
>> xmlns:tut="http://intra.agfanet">
>>
>> <eip:wire-tap service="tut:wiretap" endpoint="endpoint">
>> <eip:target>
>> <eip:exchange-target service="tut:jms" />
>> </eip:target>
>> <eip:inListener>
>> <eip:exchange-target service="tut:file" endpoint="sender" />
>> </eip:inListener>
>> </eip:wire-tap>
>> </beans>
>>
>> When I use mvn install I dont get any problems. But when I deploy the SA
>> on
>> servicemix running on jetty, I have to following exceptions.
>>
>> ERROR - JmsComponent - Error processing exchange
>> InOnly[
>> id: ID:172.25.35.156-11e876aa483-7:100
>> status: Active
>> role: provider
>> service: {http://intra.agfanet}jms
>> endpoint: myQueue
>> java.lang.NullPointerException
>> at
>> org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:83)
>> at
>> org.apache.servicemix.jms.DefaultJmsMarshaler.toJMS(DefaultJmsMarshaler.java:107)
>> WARN - FileComponent - Message in file
>> C:\BPEFileReader\sample.xml could not be handled successfully: null
>> java.lang.NullPointerException
>>
>> Iam newbie for servicemix. Could some one please help me.
>>
>> Thanking you.
>>
>> Best Regards,
>> Ajay
>>
>
>
>
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
>
--
View this message in context:
http://www.nabble.com/Problems-with-EIP-when-using-Jboss-JMS-queue-tp21215924p21218150.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.