Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created January 31, 2014 15:55
Show Gist options
  • Save ctataryn/8734827 to your computer and use it in GitHub Desktop.
Save ctataryn/8734827 to your computer and use it in GitHub Desktop.
from("direct:start").routeId("insiderRoute")
.log("Choosing configuration: " + PROPS_FILE)
.log("Default Charset: " + Charset.defaultCharset())
.log("Processing feed configuration: " + FEED)
.to("direct:getPublishedArticles")
.log("Sourcing articles from: " + getFeedFormat(FEED) + FEED_URL + (FEED_URL.contains("?") ? "&" : "?") + "splitEntries=false")
.pollEnrich(getFeedFormat(FEED) + ":" + FEED_URL + (FEED_URL.contains("?") ? "&" : "?") + "splitEntries=false")
//.marshal().rss()
.split(xpath("//item"))
Error:
Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.abdera.parser.stax.util.FOMList to the required type: org.w3c.dom.Document with value [<entry xmlns="http://www.w3.org/2005/Atom">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment