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.