camel-atom not working
rogelio_sevilla1 Jun 30, 2011 1:30 PMGood day everyone:
I'm trying to use the camel-atom component on fuse esb 4.4, I have already installed the camel-atom feature and camel-rss (just in case). I also installed the sream component to print the feeds (just for testing purposes)
And I have a simple route that works fine when is not being deployed as an osgi bundle, the route is this:
from("atom://http://alerts.weather.gov/cap/us.php?x=0&splitEntries=true&consumer.delay=5000")
.to("stream:out");
And i'm getting this error:
12:25:59,630 | WARN | r.gov/cap/us.php | faultPollingConsumerPollStrategy | ? ? | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-27 | Consumer Consumer[atom://http://alerts.weather.gov/cap/us.php?consumer.delay=5000&splitEntries=true&x=0] could not poll endpoint: atom://http://alerts.weather.gov/cap/us.php?consumer.delay=5000&splitEntries=true&x=0 caused by: null
java.lang.NullPointerException
at org.apache.camel.component.atom.AtomUtils.parseDocument(AtomUtils.java:55)[227:org.apache.camel.camel-atom:2.7.1.fuse-00-27]
at org.apache.camel.component.atom.AtomEntryPollingConsumer.getDocument(AtomEntryPollingConsumer.java:43)[227:org.apache.camel.camel-atom:2.7.1.fuse-00-27]
at org.apache.camel.component.atom.AtomEntryPollingConsumer.createFeed(AtomEntryPollingConsumer.java:65)[227:org.apache.camel.camel-atom:2.7.1.fuse-00-27]
at org.apache.camel.component.feed.FeedEntryPollingConsumer.poll(FeedEntryPollingConsumer.java:46)[227:org.apache.camel.camel-atom:2.7.1.fuse-00-27]
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97)[76:org.apache.camel.camel-core:2.7.1.fuse-00-27]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_25]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)[:1.6.0_25]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)[:1.6.0_25]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)[:1.6.0_25]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)[:1.6.0_25]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_25]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_25
Could you help me find what could be wrong??
Thanks a lot in advance