Note that there are some explanatory texts on larger screens.

plurals
  1. POCamel XSD validation not working: Camel 2.12.1 / JBoss 5.1.0.GA / JDK 1.6
    primarykey
    data
    text
    <p>Camel validation is not working when i deploy to jboss, work perfectly with <code>mvn jetty:run</code>. See error below:</p> <pre><code>Stacktrace --------------------------------------------------------------------------------------------------------------------------------------- java.lang.IllegalArgumentException: Source parameter of type 'org.apache.camel.StringSource' is not compatible with result parameter of type 'javax.xml.transform.stream.StreamResult'. at org.apache.xerces.jaxp.validation.StreamValidatorHelper.validate(Unknown Source) at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown Source) at org.apache.camel.processor.validation.ValidatingProcessor.doProcess(ValidatingProcessor.java:152) at org.apache.camel.processor.validation.ValidatingProcessor.process(ValidatingProcessor.java:87) at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105) at org.apache.camel.processor.validation.ValidatingProcessor.process(ValidatingProcessor.java:82) at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:103) at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71) .... </code></pre> <p>Camel Route configuration below:</p> <pre class="lang-xml prettyprint-override"><code>&lt;camel:route id="process-xml-file" startupOrder="200"&gt; &lt;from uri="direct:process-xml-file"/&gt; &lt;log message="processing file ${file:name}"/&gt; &lt;choice&gt; &lt;when&gt; &lt;xpath&gt;/invoices/@region='regionA'&lt;/xpath&gt; &lt;split streaming="true" parallelProcessing="true"&gt; &lt;tokenize token="invoice" inheritNamespaceTagName="dataexport" xml="true"/&gt; &lt;doTry&gt; &lt;to uri="validator:xml/invoice.xsd"/&gt; &lt;to uri="processInv"/&gt; &lt;doCatch&gt; &lt;exception&gt;org.apache.camel.ValidationException&lt;/exception&gt; &lt;exception&gt;java.sql.SQLException&lt;/exception&gt; &lt;setBody&gt; &lt;simple&gt;${exception.message}\n${body}&lt;/simple&gt; &lt;/setBody&gt; &lt;to uri="direct:error-notification"/&gt; &lt;/doCatch&gt; &lt;/doTry&gt; &lt;/split&gt; &lt;/when&gt; &lt;otherwise&gt; &lt;log message="ignoring file ${file:name}, not 'invoice'"/&gt; &lt;/otherwise&gt; &lt;/choice&gt; &lt;/camel:route&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload