camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kpinjari <>
Subject camel-jetty-fabric-proxy
Date Sat, 17 Jan 2015 15:19:24 GMT

Recently I have developed a JAX_RS RESTFul services to download zipped
files, this restful services accepts the list of file names in html from
post filed and returns the zipped steam files as http response, I am facing
the following error.

             jboss-fuse-6.0.0.redhat-024, jetty(7.6.7.v20120910)

We have two camel route, before the call us routed to jax-rs endpoint

Camel route 1:
<route id="FabricProxyRoute">

	<simple>${header.CamelHttpPath} contains '/services/techpubs'</simple>
	<log loggingLevel="DEBUG" message="Route to  techpubsServices" />
		<loadBalance id="lbTechPubs">
			<failover roundRobin="true" maximumFailoverAttempts="5" />
			<to uri="fabric:techpubsServices" />

Camel Route 2:
<camelContext trace="false" id="fabricTechpubsServiceCTX"
    <route id="fabricTechpubsServiceRoute">
      <log message="Request received headers: ${headers}"/>

Jax-RS  endpoint:
<jaxrs:server id="techpubsSvc"

This service is working fine when I invoke directly jax-rs endpoint and
camel route 2 endpoint, but it fails when the call was made with camel route
1 endpoint  (this endpoint is used in our UI)


org.apache.camel.CamelExchangeException: JettyClient failed cause by: null.
Exchange[Message: [Body is instance of org.apache.camel.StreamCache]].
Caused by: [java.lang.IndexOutOfBoundsException - null]

View this message in context:
Sent from the Camel Development mailing list archive at

View raw message