Here's the console output from camel as this was run w/maven...i don't see
anything that pops right out. No exceptions anyway. And it does pick up
the route and seems to have successfully parsed the data to the endpoint.
[pache.camel.spring.Main.main()] DefaultManagementAgent DEBUG
Registered
MBean with ObjectName:
org.apache.camel:context=lt-userpc1/camelContext,type=
threadpools,name="FileConsumer(0x64dcdb5a)"
[pache.camel.spring.Main.main()] DefaultExecutorServiceManager DEBUG
Created ne
w ScheduledThreadPool for source:
Consumer[file:///C:/____temp/xmlfiles?noop=tru
e] with name: file:///C:/____temp/xmlfiles?noop=true. ->
org.apache.camel.util.c
oncurrent.SizedScheduledExecutorService@627c1f3b[file:///C:/____temp/xmlfiles?no
op=true]
[pache.camel.spring.Main.main()] ScheduledPollConsumerScheduler DEBUG
Scheduling
poll (fixed delay) with initialDelay: 1000, delay: 500 (milliseconds) for:
Endp
oint[file:///C:/____temp/xmlfiles?noop=true]
[pache.camel.spring.Main.main()] SpringCamelContext INFO Route:
rou
te1 started and consuming from:
Endpoint[file:///C:/____temp/xmlfiles?noop=true]
[pache.camel.spring.Main.main()] ultManagementLifecycleStrategy DEBUG Load
perfo
rmance statistics enabled
[pache.camel.spring.Main.main()] DefaultManagementAgent DEBUG
Registered
MBean with ObjectName:
org.apache.camel:context=lt-userpc1/camelContext,type=
services,name=TimerListenerManager
[pache.camel.spring.Main.main()] DefaultManagementAgent DEBUG
Registered
MBean with ObjectName:
org.apache.camel:context=lt-userpc1/camelContext,type=
threadpools,name="TimerListenerManager"
[pache.camel.spring.Main.main()] DefaultExecutorServiceManager DEBUG
Created ne
w ScheduledThreadPool for source:
org.apache.camel.support.TimerListenerManager@
22fc32f0 with name: ManagementLoadTask. ->
org.apache.camel.util.concurrent.Size
dScheduledExecutorService@14c4c7d7[ManagementLoadTask]
[pache.camel.spring.Main.main()] TimerListenerManager DEBUG
Started sc
heduled TimerListener task to run with interval 1000 ms
[pache.camel.spring.Main.main()] DefaultComponent DEBUG
Creating e
ndpoint uri=[spring-event://default], path=[default]
[pache.camel.spring.Main.main()] SpringCamelContext DEBUG
spring-eve
nt://default converted to endpoint: Endpoint[spring-event://default] by
componen
t: org.apache.camel.component.event.EventComponent@8f7a71b
[pache.camel.spring.Main.main()] DefaultManagementAgent DEBUG
Registered
MBean with ObjectName:
org.apache.camel:context=lt-userpc1/camelContext,type=
endpoints,name="spring-event://default"
[pache.camel.spring.Main.main()] SpringCamelContext INFO Total
1 ro
utes, of which 1 is started.
[pache.camel.spring.Main.main()] SpringCamelContext INFO Apache
Cam
el 2.12.1 (CamelContext: camelContext) started in 0.546 seconds
[pache.camel.spring.Main.main()] MainSupport DEBUG
Starting S
pring ApplicationContext:
org.springframework.context.support.ClassPathXmlApplic
ationContext@106761e6
[pache.camel.spring.Main.main()] SpringCamelContext DEBUG
onApplicat
ionEvent:
org.springframework.context.event.ContextStartedEvent[source=org.sprin
gframework.context.support.ClassPathXmlApplicationContext@106761e6: startup
date
[Thu Nov 14 11:36:17 EST 2013]; root of context hierarchy]
[- file:///C:/____temp/xmlfiles] FileEndpoint DEBUG
Parameters
for Generic file process strategy {readLock=markerFile, noop=true,
readLockTime
out=10000, readLockLoggingLevel=WARN, readLockMinLength=1,
readLockCheckInterval
=1000}
[- file:///C:/____temp/xmlfiles] FileEndpoint DEBUG Using
Gene
ric file process strategy:
org.apache.camel.component.file.strategy.GenericFileR
enameProcessStrategy@58e28d65
[- file:///C:/____temp/xmlfiles] rFileExclusiveReadLockStrategy DEBUG
Prepare on
startup by deleting orphaned lock files from: C:\____temp\xmlfiles
[- file:///C:/____temp/xmlfiles] FileConsumer DEBUG Took
0.031
seconds to poll: C:\____temp\xmlfiles
[- file:///C:/____temp/xmlfiles] FileConsumer DEBUG Total
1 fi
les to consume
[- file:///C:/____temp/xmlfiles] FileConsumer DEBUG About
to p
rocess file: GenericFile[C:\____temp\xmlfiles\message1.xml] using exchange:
Exch
ange[message1.xml]
[- file:///C:/____temp/xmlfiles] GenericFileConverter DEBUG Read
file
C:\____temp\xmlfiles\message1.xml (no charset)
[- file:///C:/____temp/xmlfiles] XMLSerializer INFO Using
defa
ult type string
[- file:///C:/____temp/xmlfiles] SendProcessor DEBUG >>>>
Endpo
int[mongodb://myDb?collection=aixm&database=test&operation=save]
Exchange[Messag
e: {"root":{"aps":["this is a
testmessage"],"key3":"value3","key2":"value2","key
1":"value1"}}]
[- file:///C:/____temp/xmlfiles] GenericFileOnCompletion DEBUG Done
proce
ssing file: GenericFile[C:\____temp\xmlfiles\message1.xml] using exchange:
Excha
nge[Message: N/A]
[- file:///C:/____temp/xmlfiles] FileUtil DEBUG
Retrying a
ttempt 0 to delete file: C:\____temp\xmlfiles\message1.xml.camelLock
[- file:///C:/____temp/xmlfiles] FileUtil DEBUG Tried
1 to
delete file: C:\____temp\xmlfiles\message1.xml.camelLock with result: true
[- file:///C:/____temp/xmlfiles] FileConsumer DEBUG Took
0.000
seconds to poll: C:\____temp\xmlfiles
[- file:///C:/____temp/xmlfiles] FileConsumer DEBUG Took
0.000
seconds to poll: C:\____temp\xmlfiles
--
View this message in context:
http://camel.465427.n5.nabble.com/xmljson-convert-XML-from-file-to-JSON-straight-into-MongoDB-issue-tp5743285p5743295.html
Sent from the Camel - Users mailing list archive at Nabble.com.