You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Shiv <sh...@gmail.com> on 2015/02/02 08:32:12 UTC

Validator component in camel route not starting up and failing with strange error message

Hi,
I am using validator component in camel 2.10 route for XSD validation but
the camel context is not starting as the validator component initialization
is failing with strange error. This abc.xsd schema file has many includes
and the included files also have many includes, consequently there are lots
of references to resolve. But I have another xyz.xsd which also has many
includes and it works fine. I also checked abc.xsd has not BOM characters
etc. 

I noticed that there was similar case on the forum
http://camel.465427.n5.nabble.com/Validator-in-camel-route-shows-strange-error-message-td5751018.html
but do not see any resolution.

Please refer below the error log for reference.

Error log:
-----------
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint: validator://file:///E:/XSDs/test/abc.xsd due to: Content
is not allowed in prolog.................
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
	
Thanks
Shiv



--
View this message in context: http://camel.465427.n5.nabble.com/Validator-component-in-camel-route-not-starting-up-and-failing-with-strange-error-message-tp5762310.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Validator component in camel route not starting up and failing with strange error message

Posted by Shiv <sh...@gmail.com>.
Hello all,
This issue is fixed now. XSDs in question were placed in shared location and
got corrupted as somehow BOM characters were getting inserted in remote edit
operation which was causing XSDs to break while loading schema.

I had to copy the files locally and removed those invalid characters and it
all worked well.

Thanks
Shiv



--
View this message in context: http://camel.465427.n5.nabble.com/Validator-component-in-camel-route-not-starting-up-and-failing-with-strange-error-message-tp5762310p5762321.html
Sent from the Camel - Users mailing list archive at Nabble.com.