I c/p the issue from stack overflow.
http://stackoverflow.com/questions/18747494/camel-rest-proxy-route-in-servicemix-fails-for-base64-uploads

I have deployed on SMX the following route that proxies all ReST request to
the real ReST service provider (Tomcat). All ReST calls to SMX routed
successfully however a saveDocument service that uploads PDF files fail.

public void configure() throws Exception {
from("jetty:http://{{smx.host}}:{{smx.rest-proxy-port}}/{{smx.context}}matchOnUriPrefix=true";)
.log("ReST call received (Java DSL)")
.to("jetty:http://{{real-server-address}}:{{real-ws-port}}/{{context}}?bridgeEndpoint=true&throwExceptionOnFailure=false";)
.log("Rest call proxied (Java DSL)");
}

The following exception is logged in servicemix.log.

19:53:57,065 | WARN | HttpClient-137 | HttpExchange | 111 -
org.eclipse.jetty.util - 7.5.4.v20111024 | EXCEPTION
JettyContentExchange@188af650=POST//real-server-address...:8080/contextpath.../saveDocument#SENDING(3ms)->
EXCEPTED(0ms)sent=3ms java.lang.IndexOutOfBoundsException

Do I have to perform some additional processing on the base64 before
redirect the call to the real ReST service?



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Camel-ReST-Proxy-route-in-ServiceMix-fails-for-Base64-uploads-tp5717872.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to