Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread SwenVogel
StringReader(messageData.trim(; PS: I always trim the input string for robustness reasons, because trailing characters or whitespaces after the ending xml root element causes an exception to be thrown. -- View this message in context: http://www.nabble.com/XML-Validation-throws

Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread Claus Ibsen
On Tue, Jun 23, 2009 at 10:40 AM, Roman Kalukiewicz < roman.kalukiew...@gmail.com> wrote: > 2009/6/23 Claus Ibsen : > > Hi > > I think the ValidatingProcessor was created like this using DOMSource and > > DOMResult. > > > > I wonder if it can use SaxSource and SaxResult instead, in case its > fast

Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread Roman Kalukiewicz
2009/6/23 Claus Ibsen : > Hi > I think the ValidatingProcessor was created like this using DOMSource and > DOMResult. > > I wonder if it can use SaxSource and SaxResult instead, in case its faster > and uses less CPU resources. I guess it could be, but according to [1] it has to be either DOMSourc

Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread Claus Ibsen
gt; -- > View this message in context: > http://www.nabble.com/XML-Validation-throws-NoXmlBodyValidationException-tp24147734p24161746.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fuses

Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread SwenVogel
in context: http://www.nabble.com/XML-Validation-throws-NoXmlBodyValidationException-tp24147734p24161746.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread Claus Ibsen
per.java:152) >>at org.mortbay.jetty.Server.handle(Server.java:326) >>at >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) >>at >> >> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879

Re: XML Validation throws NoXmlBodyValidationException

2009-06-23 Thread Claus Ibsen
equestHandler.content(HttpConnection.java:879) >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) >at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) >at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) >at >

Re: XML Validation throws NoXmlBodyValidationException

2009-06-22 Thread Hadrian Zbarcea
e(HttpConnection.java:404) at org .mortbay .io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:520) -- View this message in context: http://www.nabble.com/XML-Validation-throws-NoX

Re: XML Validation throws NoXmlBodyValidationException

2009-06-22 Thread Claus Ibsen
HttpParser.java:218) >at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) >at > > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) &g

XML Validation throws NoXmlBodyValidationException

2009-06-22 Thread SwenVogel
java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) -- View this message in context: http://www.nabble.com/XML-Validation-throws-NoXmlBodyValidationException-tp24147734p24147734.html Sent fr