Can you post details about - OS - JDK - Camel versions you are using.
And post the stacktrace as well. On Wed, Aug 22, 2012 at 12:47 PM, tonyperrin <tony.per...@yahoo.co.uk> wrote: > Hello. > > I am running the maven archetype simple-router sample code on a Mac. If I > set my .from file to be any sub folder I can see my messages being copied > correctly, ie if .from is: file:/Users/username/Desktop/messagesfolder > everything is fine but if I set the .from folder to 'file:/' for the root > folder I get a 'could not poll endpoint: Endpoint[file:///?noop=true] caused > by: null' NullPointerException. > > Here is my configure() code: > > from("file:/?noop=true"). > choice(). > when(xpath("/person/city = > 'London'")).to("file:/Users/username/Desktop/london"). > otherwise().to("file:/Users/username/Desktop/notLondon"); > > Can anyone tell me if it is possible to read from a root folder, I have > correct permissions set, or am I setting the root folder 'file:/' > incorrectly. > > Thank you. > > Tony > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Setting-root-folder-as-endpoint-Could-not-poll-endpoint-NPE-tp5717845.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen