You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jspyeatt <jo...@singlewire.com> on 2015/08/12 17:06:11 UTC

Re: org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

It's actually weirder than first appeared.
I do have camel-snmp included in the pom.xml file. I should have mentioned
that in my original post.

I'm beginning to think it's a classloader issue... Oh joy..

Because everything works fine when I run the application within IntelliJ.
But when I make it an executable jar file using maven assembly module it
can't find the converter.

SNMP traps work fine in both cases. So I know the snmp component is being
successfully included. It's just when I try to create the SNMP polling
route.

So my question seems to be more fundamental. How is camel locating classes
with the @Converter annotation.

Also, it seems to find other @Converters just fine. Example the one in
camel-mail.



--
View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-FailedToCreateRouteException-Failed-to-create-route-with-SNMP-component-tp5768341p5770615.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

Posted by jspyeatt <jo...@singlewire.com>.
That did the trick.
Thanks loads.



--
View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-FailedToCreateRouteException-Failed-to-create-route-with-SNMP-component-tp5768341p5770704.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: org.apache.camel.FailedToCreateRouteException: Failed to create route with SNMP component

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

If you build your own big/uber JAR see this FAQ
http://camel.apache.org/how-do-i-use-a-big-uber-jar.html

On Wed, Aug 12, 2015 at 5:06 PM, jspyeatt <jo...@singlewire.com> wrote:
> It's actually weirder than first appeared.
> I do have camel-snmp included in the pom.xml file. I should have mentioned
> that in my original post.
>
> I'm beginning to think it's a classloader issue... Oh joy..
>
> Because everything works fine when I run the application within IntelliJ.
> But when I make it an executable jar file using maven assembly module it
> can't find the converter.
>
> SNMP traps work fine in both cases. So I know the snmp component is being
> successfully included. It's just when I try to create the SNMP polling
> route.
>
> So my question seems to be more fundamental. How is camel locating classes
> with the @Converter annotation.
>
> Also, it seems to find other @Converters just fine. Example the one in
> camel-mail.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-FailedToCreateRouteException-Failed-to-create-route-with-SNMP-component-tp5768341p5770615.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2