This content has been marked as final.
Show 2 replies
-
1. Re: NPE with Fuse Camel Validator Component
davsclaus May 5, 2013 5:32 AM (in response to reality)Hi
Thanks for reporting. I have logged a ticket
http://fusesource.com/issues/browse/MR-718
If you want to load the resource relative then you should remove that / in the path, eg
<to uri="validator:claspath:my_message_v1.xsd" />
-
2. Re: NPE with Fuse Camel Validator Component
reality May 7, 2013 7:30 AM (in response to davsclaus)Hi Claus,
Thanks for raising that.
Unfortunately removing the / from the URI will not work. The DefaultLSResourceResolver calls theFileUtil.onlyPath() helper method that is looking for a Windows or Unix path separator. If no separator is found, null is returned. The calling code then calls intern() on the null value causing the NPE.
Cheers,
Darren.