camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Route with the jt400 component and Blueprint
Date Mon, 20 Feb 2017 16:44:20 GMT
What version of Camel do you use. There was a bug in this component so
you may need to upgrade Camel

On Mon, Feb 20, 2017 at 4:18 PM, spetit <petit.seb7@orange.fr> wrote:
> Hi,
>
> I try to use a route with the jt400 component to read messages with an
> AS/400 system using data queues (System i).
>
> I also use BluePrint. In my blueprint .xml file, I wrote the following lines
> :
>
> *<?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>     xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
> https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
> http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
> http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd">
>
>     <camelContext id="testContext"
> xmlns="http://camel.apache.org/schema/blueprint">
>
>         <route id="myFirstRoute">
>             <from
> uri="jt400://user:password@system/QSYS.LIB/LIBRARY.LIB/QUEUE.DTAQ"/>
>             <to uri="file://C:\myfolder"/>
>         </route>
>     </camelContext>
> </blueprint>*
>
> Obviously, I didn't actually write "user", "password", "myfolder", etc. I
> have voluntarily not written the real names here because they are personal
> data.
>
> I also have a test class that inherits from CamelBlueprintTestSupport and
> that simply returns my .xml file "OSGI-INF/blueprint/myRoute.xml" as
> getBlueprintDescriptor(). When I run this test, I get an exception that I
> can't solve :
>
> *org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint: jt400://user:password@system/QSYS.LIB/LIBRARY.LIB/QUEUE.DTAQ due
> to: There are 15 parameters that couldn't be set on the endpoint polling
> consumer. Check the uri if the parameters are spelt correctly and that they
> are properties of the endpoint. Unknown consumer
> parameters=[{backoffMultiplier=0, sendEmptyMessageWhenIdle=false,
> schedulerProperties=null, initialDelay=1000, backoffIdleThreshold=0,
> scheduler=null, delay=500, useFixedDelay=true,
> pollStrategy=org.apache.camel.impl.DefaultPollingConsumerPollStrategy@f14a7d4,
> startScheduler=true, runLoggingLevel=TRACE, backoffErrorThreshold=0,
> greedy=false, scheduledExecutorService=null, timeUnit=MILLISECONDS}*
>
> Looking at the source code, this is an exception that is triggered by the
> *configurePollingConsumer(PollingConsumer consumer)* method of the
> *ScheduledPollEndpoint* class.
>
> Do you have any idea what I can do ?
>
> Thank you for your help !
>
> S├ębastien
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Route-with-the-jt400-component-and-Blueprint-tp5794147.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Mime
View raw message