You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pcroser <Pa...@gmail.com> on 2011/04/26 19:52:03 UTC
Error with quartz timer starting up active mq and camel
I am relatively new to camel/spring and active mq and this forum. I hope I
have posted in the right location. Please let me know is this is not the
case acttivemq 5.50, camel 2.70, spring 3.4, linux centos
I have defined the following xml ( below the error ) in a camel.xml file
which is imported into activemq.xml. I am running this by launching activemq
from the default port 61616 on localhost on linux.
If I comment out the sortie processor bean and quartz entires dealing with
sortieprocessor, quartz runs the missionprocessor bean which mines data from
a JPA source and any data mined is routed to the injected destiantion.
Once I uncomment out soriteprocessor and related xml defs, I get the
following error.
Since the mission looks exactly like the sortie except for the names, it
appears it should work.
I am unsure of why this would be. I have been stumped for a while, please
help.
java.lang.RuntimeException: Failed to execute start task. Reason:
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route6
at: >>> process[ref:sortieprocessor] <<< in route:
Route[[From[quartz://sortie?trigger.repeatCount=0&fireNow=tr... because of
registry entry called sortieprocessor must be specified on:
process[ref:sortieprocessor]
java.lang.RuntimeException: Failed to execute start task. Reason:
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route6
at: >>> process[ref:sortieprocessor] <<< in route:
Route[[From[quartz://sortie?trigger.repeatCount=0&fireNow=tr... because of
registry entry called sortieprocessor must be specified on:
process[ref:sortieprocessor]
Probably a newbie mistake
<bean id="missionprocessor"
class="com.itt.ips.casex.cybervisor.camel.gdssmining.mission.GDSSProcessor">
<property name="producer" ref="producerTemplate" />
<property name="destination" value="seda:missiondest" />
</bean>
<bean id="sortieprocessor"
class="com.itt.ips.casex.cybervisor.camel.gdssmining.sortie.SortieProcessor">
<property name="producer" ref="producerTemplate" />
<property name="destination" value="seda:sortiedest" />
</bean>
<route>
<from uri="quartz://mission?trigger.repeatCount=0&fireNow=true" />
<process ref="missionprocessor" />
</route>
<route>
<from uri="quartz://sortie?trigger.repeatCount=0&fireNow=true" />
<process ref="sortieprocessor" />
</route>-->
<route>
<from uri="seda:missiondest?concurrentConsumers=5" />
<process ref="GDSSlogger1" />
<process ref="OntologyImport1" />
</route>
<route>
<from uri="seda:sortiedest?concurrentConsumers=5" />
<process ref="GDSSlogger1" />
<process ref="OntologyImport1" />
</route>
--
View this message in context: http://camel.465427.n5.nabble.com/Error-with-quartz-timer-starting-up-active-mq-and-camel-tp4341573p4341573.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error with quartz timer starting up active mq and camel
Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Apr 27, 2011 at 12:49 PM, pcroser <Pa...@gmail.com> wrote:
> My Error. The error was immediate when I launched Active MQ such that I
> falsely assumed configuration errors. Thank you for answering. Can you
> explain in more detail the error I was receiving, and why the missing
> implents Processor declaration would cause this problem. Thanks. in advance.
>
When you use <processor ref="xxx"> then Camel lookup in the spring
bean container for a bean with id=xxx, but the bean should also be a
type of org.apache.camel.Processor. So in your case it wasn't that
type, so the bean could not be found.
> --
> View this message in context: http://camel.465427.n5.nabble.com/Error-with-quartz-timer-starting-up-active-mq-and-camel-tp4341573p4343241.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Error with quartz timer starting up active mq and camel
Posted by pcroser <Pa...@gmail.com>.
My Error. The error was immediate when I launched Active MQ such that I
falsely assumed configuration errors. Thank you for answering. Can you
explain in more detail the error I was receiving, and why the missing
implents Processor declaration would cause this problem. Thanks. in advance.
--
View this message in context: http://camel.465427.n5.nabble.com/Error-with-quartz-timer-starting-up-active-mq-and-camel-tp4341573p4343241.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error with quartz timer starting up active mq and camel
Posted by pcroser <Pa...@gmail.com>.
My Error. The error was immediate when I launched Active MQ such that I
falsely assumed configuration errors. Thank you for answering. Can you
explain in more detail the error I was receiving, and why the missing
implents Processor declaration would cause this problem. Thanks. in advance.
--
View this message in context: http://camel.465427.n5.nabble.com/Error-with-quartz-timer-starting-up-active-mq-and-camel-tp4341573p4343517.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Error with quartz timer starting up active mq and camel
Posted by Claus Ibsen <cl...@gmail.com>.
Are you sure SortieProcessor implements org.apache.camel.Processor
On Tue, Apr 26, 2011 at 7:52 PM, pcroser <Pa...@gmail.com> wrote:
> I am relatively new to camel/spring and active mq and this forum. I hope I
> have posted in the right location. Please let me know is this is not the
> case acttivemq 5.50, camel 2.70, spring 3.4, linux centos
>
> I have defined the following xml ( below the error ) in a camel.xml file
> which is imported into activemq.xml. I am running this by launching activemq
> from the default port 61616 on localhost on linux.
> If I comment out the sortie processor bean and quartz entires dealing with
> sortieprocessor, quartz runs the missionprocessor bean which mines data from
> a JPA source and any data mined is routed to the injected destiantion.
>
> Once I uncomment out soriteprocessor and related xml defs, I get the
> following error.
> Since the mission looks exactly like the sortie except for the names, it
> appears it should work.
> I am unsure of why this would be. I have been stumped for a while, please
> help.
>
> java.lang.RuntimeException: Failed to execute start task. Reason:
> org.apache.camel.RuntimeCamelException:
> org.apache.camel.FailedToCreateRouteException: Failed to create route route6
> at: >>> process[ref:sortieprocessor] <<< in route:
> Route[[From[quartz://sortie?trigger.repeatCount=0&fireNow=tr... because of
> registry entry called sortieprocessor must be specified on:
> process[ref:sortieprocessor]
> java.lang.RuntimeException: Failed to execute start task. Reason:
> org.apache.camel.RuntimeCamelException:
> org.apache.camel.FailedToCreateRouteException: Failed to create route route6
> at: >>> process[ref:sortieprocessor] <<< in route:
> Route[[From[quartz://sortie?trigger.repeatCount=0&fireNow=tr... because of
> registry entry called sortieprocessor must be specified on:
> process[ref:sortieprocessor]
>
> Probably a newbie mistake
>
>
> <bean id="missionprocessor"
> class="com.itt.ips.casex.cybervisor.camel.gdssmining.mission.GDSSProcessor">
> <property name="producer" ref="producerTemplate" />
> <property name="destination" value="seda:missiondest" />
> </bean>
>
> <bean id="sortieprocessor"
> class="com.itt.ips.casex.cybervisor.camel.gdssmining.sortie.SortieProcessor">
> <property name="producer" ref="producerTemplate" />
> <property name="destination" value="seda:sortiedest" />
> </bean>
>
> <route>
> <from uri="quartz://mission?trigger.repeatCount=0&fireNow=true" />
> <process ref="missionprocessor" />
> </route>
>
> <route>
> <from uri="quartz://sortie?trigger.repeatCount=0&fireNow=true" />
> <process ref="sortieprocessor" />
> </route>-->
>
>
>
> <route>
> <from uri="seda:missiondest?concurrentConsumers=5" />
> <process ref="GDSSlogger1" />
> <process ref="OntologyImport1" />
> </route>
>
> <route>
> <from uri="seda:sortiedest?concurrentConsumers=5" />
> <process ref="GDSSlogger1" />
> <process ref="OntologyImport1" />
> </route>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Error-with-quartz-timer-starting-up-active-mq-and-camel-tp4341573p4341573.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/