camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <souciance.eqdam.ras...@gmail.com>
Subject Re: Using Box component
Date Sun, 22 Jan 2017 13:41:35 GMT
Not sure but from the look of BoxComponent.java at line 83 it seems you are
missing the parameter boxConfig.

On Sun, Jan 22, 2017 at 1:56 PM, Tim Dudgeon [via Camel] <
ml-node+s465427n5792922h45@n5.nabble.com> wrote:

> 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
> <(203)%20396-8586>.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
>
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Using-Box-component-tp5792922.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Using-Box-component-tp5792922p5792923.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message