Hello,
I am getting wierd error with camel (version 2.2.0), JBoss 5.0, eclipse
helios (version 3.6) and jdk 1.6. I am using JBoss specific package scan
resolver JBossPackageScanClassResolver
(http://camel.apache.org/camel-jboss.html). I am using the following simple
route.
@Override
public void configure() throws Exception {
from("file:D:/temp/data/source1")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
Message msg = exchange.getIn();
String fileContent = msg.getBody(String.class);
String result = fileContent + fileContent;
msg.setBody(result, String.class);
}
})
.to("file:D:/temp/data/destination1");
}
When I run this route, I get the following exception. If I take out the
.process statement in the above route, everything works fine. Can anyone
please let me know what is the issue with this?
12:57:20,552 INFO [STDOUT] 25-Oct 12:57:20.552 DEBUG (Camel thread 4:
FileComponent) [FileConsumer] Total 1 files to consume
12:57:20,552 INFO [STDOUT] 25-Oct 12:57:20.552 DEBUG (Camel thread 4:
FileComponent) [FileConsumer] About to process file:
GenericFile[D:\temp\data\source1\ipf-libs.txt] using exchange:
Exchange[GenericFileMessage with file:
GenericFile[D:\temp\data\source1\ipf-libs.txt]]
12:57:20,583 INFO [STDOUT] 25-Oct 12:57:20.583 DEBUG (Camel thread 4:
FileComponent) [GenericFileOnCompletion] Done processing file:
GenericFile[D:\temp\data\source1\ipf-libs.txt] using exchange:
Exchange[GenericFileMessage with file:
GenericFile[D:\temp\data\source1\ipf-libs.txt]]
12:57:20,583 INFO [STDOUT] 25-Oct 12:57:20.583 DEBUG (Camel thread 4:
FileComponent) [FileUtil] Tried 1 to delete file:
D:\temp\data\source1\ipf-libs.txt.camelLock with result: true
12:57:20,583 INFO [STDOUT] 25-Oct 12:57:20.583 DEBUG (Camel thread 4:
FileComponent) [GenericFileRenameProcessStrategy] Renaming file:
GenericFile[D:\temp\data\source1\ipf-libs.txt] to:
GenericFile[D:\temp\data\source1\.camel\ipf-libs.txt]
12:57:20,583 INFO [STDOUT] 25-Oct 12:57:20.583 DEBUG (Camel thread 4:
FileComponent) [FileUtil] Tried 1 to rename file:
D:\temp\data\source1\ipf-libs.txt to:
D:\temp\data\source1\.camel\ipf-libs.txt with result: true
12:57:20,599 INFO [STDOUT] 25-Oct 12:57:20.599 FATAL (Camel thread 4:
FileComponent) [FileConsumer] Consumer Consumer[file://D:/temp/data/source1]
could not poll endpoint: file://D:/temp/data/source1 caused by:
org.openehealth.ipf.platform.camel.flow.aspect.ExchangeAggregate.aspectOf()Lorg/openehealth/ipf/platform/camel/flow/aspect/ExchangeAggregate;
java.lang.NoSuchMethodError:
org.openehealth.ipf.platform.camel.flow.aspect.ExchangeAggregate.aspectOf()Lorg/openehealth/ipf/platform/camel/flow/aspect/ExchangeAggregate;
at org.apache.camel.processor.Pipeline.process(Pipeline.java:53)
at
org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:66)
at
org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:258)
at
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:137)
at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:106)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Thanks,
Sathish
--
View this message in context:
http://camel.465427.n5.nabble.com/Issue-in-FileComponent-in-JBoss-5-0-tp3235847p3235847.html
Sent from the Camel - Users mailing list archive at Nabble.com.