You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Asif Rasheed <as...@rocketmail.com> on 2008/03/24 03:40:29 UTC
servicemix-3.1.2 - error with jms consumer
I am trying to understand the working of jms component as consumer, When I developed a jms consumer su through maven archetype servicemix-jms-consumer-service-unit as a example. I got following error message on servicemix console while deploying my example sa.
-----------------------------------------------------------
INFO - ComponentMBeanImpl - Initializing component: airService
INFO - ComponentMBeanImpl - Starting component: airService
INFO - DeploymentService - Error in start
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-jms</component-name>
<component-task-result-details>
<task-result-details>
<task-id>start</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to start service unit</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token/>
<loc-message>Could not create processor of type consumer and name null</loc-message>
<stack-trace><![CDATA[java.lang.RuntimeException: Could not create processor of type consumer and name null
at org.apache.servicemix.jms.JmsEndpoint.createProcessor(JmsEndpoint.java:342)
at org.apache.servicemix.jms.JmsEndpoint.createConsumerProcessor(JmsEndpoint.java:324)
at org.apache.servicemix.soap.SoapEndpoint.activate(SoapEndpoint.java:347)
at org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:55)
at org.apache.servicemix.common.BaseServiceUnitManager.start(BaseServiceUnitManager.java:151)
at org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(ServiceUnitLifeCycle.java:103)
at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:130)
at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:418)
at java.util.Properties.load0(Properties.java:337)
at java.util.Properties.load(Properties.java:325)
at org.apache.servicemix.jms.JmsEndpoint.createProcessor(JmsEndpoint.java:336)
... 13 more
]]></stack-trace>
</msg-loc-info>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:121)
at org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:107)
at org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(ServiceAssemblyLifeCycle.java:144)
at org.apache.servicemix.jbi.framework.DeploymentService.start(DeploymentService.java:374)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:337)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:646)
at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$200(AutoDeploymentService.java:62)
at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:609)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
------------------------------------------------------------------------------
Following is my jms xbean.xml contents,
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
xmlns:ta="http://test/travelagent"
xmlns:air="http://test/air">
<jms:endpoint service="ta:AirJmsService"
endpoint="air"
targetService="ta:AirService"
targetEndpoint="air"
role="consumer"
destinationStyle="queue"
jmsProviderDestinationName="test.travelagentInput"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
defaultOperation="ta:onMessageExchange"
connectionFactory="#jmsFactory" />
<!-- END SNIPPET: consumer -->
<bean id="jmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616" />
</bean>
</property>
</bean>
</beans>
Where am I making mistake? I searched every where and couldn't find any solution.
Thanks
AR
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ