camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Idriss <doulmakhzo...@gmail.com>
Subject Re: CSV to database
Date Wed, 23 Nov 2011 18:01:48 GMT
I tried this method :
from("jpa:org.apache.camel.example.etl.BOPDEV.PccCommoncard?consumeDelete=false&delay=3000&consumeLockEntity=false")
		.process(new MyProcessor())
		.to("org.apache.camel.example.etl.IWIBO.OcPccCommoncard");

But I get this error:  Error occurred while running main from:
org.apache.camel.spring.Main
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:415)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1
at: >>> To[org.apache.camel.example.etl.IWIBO.OcPccCommoncard] <<< in route:
Route[[From[jpa:org.apache.camel.example.etl.BOPDEV.PccCommo... because of
No endpoint could be found for:
org.apache.camel.example.etl.IWIBO.OcPccCommoncard, please check your
classpath contains the needed Camel component jar.
	at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1164)
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:117)
	at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
	at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
	at
org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:185)
	at org.apache.camel.spring.Main.doStart(Main.java:139)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
	at org.apache.camel.impl.MainSupport.run(MainSupport.java:136)
	at org.apache.camel.impl.MainSupport.run(MainSupport.java:322)
	at org.apache.camel.spring.Main.main(Main.java:72)
	... 6 more
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create
route route1 at: >>> To[org.apache.camel.example.etl.IWIBO.OcPccCommoncard]
<<< in route:
Route[[From[jpa:org.apache.camel.example.etl.BOPDEV.PccCommo... because of
No endpoint could be found for:
org.apache.camel.example.etl.IWIBO.OcPccCommoncard, please check your
classpath contains the needed Camel component jar.
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:820)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)
	at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:697)
	at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1654)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1441)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1338)
	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:176)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316)
	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:221)
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:115)
	... 20 more
Caused by: org.apache.camel.NoSuchEndpointException: No endpoint could be
found for: org.apache.camel.example.etl.IWIBO.OcPccCommoncard, please check
your classpath contains the needed Camel component jar.
	at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:50)
	at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:180)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:110)
	at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:116)
	at
org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
	at
org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
	at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:437)
	at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:183)
	at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:817)
	... 31 more

Do you know how I can resolve this?

Thanks,
Idriss

--
View this message in context: http://camel.465427.n5.nabble.com/CSV-to-database-tp4435750p5017505.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message