camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dudgeon <tdudgeon...@gmail.com>
Subject Using Box component
Date Sun, 22 Jan 2017 12:55:40 GMT
Hi All,

I'm having difficulty getting started with the Box component (using 
Camel 2.18.1).
I'm using a route definition like this:

from("box://poll-events/poll?userName={{box_username}}&userPassword={{box_userpassword}}&clientId={{box_client_id}}&clientSecret={{box_client_secret}}&streamPosition=-1&streamType=all&limit=100")
...;

Other than the parameters in the route definition there's nothing else 
Box related configured.

The parameters seem to be getting incorporated correctly, but the route 
fails to start because of:

Exception in thread "main" 
org.apache.camel.FailedToCreateRouteException: Failed to create route 
route4: Route(route4)[[From[box://poll-events/poll?userName={{box_us... 
because of Failed to resolve endpoint: 
box://poll-events/poll?clientId=xxx&clientSecret=xxx&limit=100&streamPosition=-1&streamType=all&userName=xxx&userPassword=RAW(xxx)

due to: Cannot auto create component: box
     at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:201)
     at 
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:1008)
     at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3397)
     at 
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3128)
     at 
org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:182)
     at 
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2957)
     at 
org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2953)
     at 
org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2976)
     at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2953)
     at 
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
     at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2920)
     at com.im.ext.xchem.filedrop.Main.main(Main.java:28)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to 
resolve endpoint: 
box://poll-events/poll?clientId=xxx&clientSecret=xxx&limit=100&streamPosition=-1&streamType=all&userName=xxx&userPassword=RAW(xxx)

due to: Cannot auto create component: box
     at 
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:622)
     at 
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)
     at 
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:211)
     at 
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
     at 
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
     at 
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:69)
     at 
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
     at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1051)
     at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
     ... 11 more
Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create 
component: box
     at 
org.apache.camel.impl.DefaultCamelContext.initComponent(DefaultCamelContext.java:436)
     at 
org.apache.camel.impl.DefaultCamelContext.lambda$getComponent$16(DefaultCamelContext.java:411)
     at 
org.apache.camel.impl.DefaultCamelContext$$Lambda$4/2033968586.apply(Unknown 
Source)
     at 
java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
     at 
org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:411)
     at 
org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:402)
     at 
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:592)
     ... 19 more
Caused by: java.lang.IllegalArgumentException: Unable to connect, Box 
component configuration is missing
     at 
org.apache.camel.component.box.BoxComponent.doStart(BoxComponent.java:83)
     at 
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
     at 
org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:3371)
     at 
org.apache.camel.impl.DefaultCamelContext.initComponent(DefaultCamelContext.java:431)
     ... 25 more

Can anyone spot what is wrong here?
Are there any examples anywhere to look at?

Thanks

Tim



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message