Hi,
basically I need to implement a service to which xml-documents are send via http post. Afterwards they should get routed to a JMS queue.
Problem: whatever I post to the service results in the Exception:
(curl -v -d file.xml 'http://localhost:4443/to2-service/sendMessage' ; http get requests are answered)

java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.camel.component.http.DefaultHttpBinding.populateRequestParameters(DefaultHttpBinding.java:159)[198:org.apache.camel.camel-http:2.6.0.fuse-00-00] at org.apache.camel.component.http.DefaultHttpBinding.readRequest(DefaultHttpBinding.java:100)[198:org.apache.camel.camel-http:2.6.0.fuse-00-00] at org.apache.camel.component.http.HttpMessage.<init>(HttpMessage.java:46)[198:org.apache.camel.camel-http:2.6.0.fuse-00-00]
...

Here is a simplified version that leads to the same error:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint
    xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="
      http://www.osgi.org/xmlns/blueprint/v1.0.0
      http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>

    <camelContext xmlns="http://camel.apache.org/schema/blueprint";>
      <route>
<from uri="jetty:http://0.0.0.0:4443/service?matchOnUriPrefix=true"/>
        <log message="Copying ${file:name} to the output directory"/>
        <to uri="file:data/output"/>
      </route>
    </camelContext>

</blueprint>

Servicemix: apache-servicemix-4.3.0 and apache-servicemix-4.3.1-fuse-00-00

I already played around with converting to String or StreamSource and setting options like disableStreamCache... without luck.

With apache-servicemix-4.2.0 everything works fine, but I run into following issue on the JMS side:
http://servicemix.396122.n5.nabble.com/java-lang-ClassNotFoundException-org-apache-camel-component-jms-JmsComponent-when-using-camel-from-u-td3413867.html

How can I get around this? Have I configured s.th. wrong, should I implement the stuff with servicemix-xyz components or try to get activemq running with apache-servicemix-4.2.0?

thanks und regards,
Knut

Reply via email to