camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-2286) camel loadbalancing + jetty + http + cxfbean endpoints does not work
Date Mon, 14 Dec 2009 11:37:52 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-2286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Charles Moulliard updated CAMEL-2286:
-------------------------------------

    Description: 
Camel route deployed on karaf server 1

{code}
	<camel:camelContext trace="true"
		xmlns="http://camel.apache.org/schema/osgi">
		
		<camel:route>
			<camel:from uri="jetty:http://localhost:8181?matchOnUriPrefix=true"/>
			<camel:loadBalance>
			    <camel:roundRobin/>
				<camel:to uri="http://localhost:8282?throwExceptionOnFailure=false&amp;bridgeEndpoint=true"/>
			</camel:loadBalance>
		</camel:route>
		
	</camel:camelContext>
{code}

Camel route deployed on karaf server 2

{code}
	<camel:camelContext trace="true"
		xmlns="http://camel.apache.org/schema/osgi">
		
		<camel:route>
		    <camel:from uri="jetty:http://localhost:8282?matchOnUriPrefix=true"/>
			<camel:to uri="cxfbean:reportIncidentServiceBean"/>
		</camel:route>
		
		<camel:route>
			<camel:from uri="jms:queue:inout"/>
			<camel:bean ref="reportIncidentDAOService" method="getReports"/>
		</camel:route>
		
	</camel:camelContext>
{code}

Error generated using the following REST request : http://127.0.0.1:8181/reportservice/incidents/123/

{code}
org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond
	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:164)
	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:78)
	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
	at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
	at org.apache.camel.processor.loadbalancer.QueueLoadBalancer.process(QueueLoadBalancer.java:41)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
	at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
	at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.component.http.CamelServlet.service(CamelServlet.java:53)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

{code}

This request works fine : http://127.0.0.1:8282/reportservice/incidents/123/
{code}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Incident>
<details>
<entry><key>100</key>
<value><id>100</id>
<reportedBy>James</reportedBy>
<assignedTo>Hiram</assignedTo>
</value>
</entry>
</details>
<incidentId>123</incidentId>
<givenName>Ibsen</givenName>
<familyName>Claus</familyName>
</Incident>
{code}


  was:
Camel route deployed on karaf server 1

{code}
	<camel:camelContext trace="true"
		xmlns="http://camel.apache.org/schema/osgi">
		
		<camel:route>
			<camel:from uri="jetty:http://localhost:8181?matchOnUriPrefix=true"/>
			<camel:loadBalance>
			    <camel:roundRobin/>
				<camel:to uri="http://localhost:8282?throwExceptionOnFailure=false&amp;bridgeEndpoint=true"/>
			</camel:loadBalance>
		</camel:route>
		
	</camel:camelContext>
{code}

Camel route deployed on karaf server 2

{code}
	<camel:camelContext trace="true"
		xmlns="http://camel.apache.org/schema/osgi">
		
		<camel:route>
		    <camel:from uri="jetty:http://localhost:8282?matchOnUriPrefix=true"/>
			<camel:to uri="cxfbean:reportIncidentServiceBean"/>
		</camel:route>
		
		<camel:route>
			<camel:from uri="jms:queue:inout"/>
			<camel:bean ref="reportIncidentDAOService" method="getReports"/>
		</camel:route>
		
	</camel:camelContext>
{code}

Error generated using the following REST request : http://127.0.0.1:8181/reportservice/incidents/123/

{code}
org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond
	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	at org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:164)
	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:78)
	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
	at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
	at org.apache.camel.processor.loadbalancer.QueueLoadBalancer.process(QueueLoadBalancer.java:41)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
	at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
	at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
	at org.apache.camel.component.http.CamelServlet.service(CamelServlet.java:53)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

{code}

This request works fine : http://127.0.0.1:8181/reportservice/incidents/123/
{code}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Incident><details><entry><key>100</key><value><id>100</id><reportedBy>James</reportedBy><assignedTo>Hiram</assignedTo></value></entry></details><incidentId>123</incidentId><givenName>Ibsen</givenName><familyName>Claus</familyName></Incident>
{code}



> camel loadbalancing + jetty + http + cxfbean endpoints does not work
> --------------------------------------------------------------------
>
>                 Key: CAMEL-2286
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2286
>             Project: Apache Camel
>          Issue Type: Bug
>         Environment: Camel 2.1
> Karaf 1.2
>            Reporter: Charles Moulliard
>         Attachments: reportincident-rest-routing-master.zip
>
>
> Camel route deployed on karaf server 1
> {code}
> 	<camel:camelContext trace="true"
> 		xmlns="http://camel.apache.org/schema/osgi">
> 		
> 		<camel:route>
> 			<camel:from uri="jetty:http://localhost:8181?matchOnUriPrefix=true"/>
> 			<camel:loadBalance>
> 			    <camel:roundRobin/>
> 				<camel:to uri="http://localhost:8282?throwExceptionOnFailure=false&amp;bridgeEndpoint=true"/>
> 			</camel:loadBalance>
> 		</camel:route>
> 		
> 	</camel:camelContext>
> {code}
> Camel route deployed on karaf server 2
> {code}
> 	<camel:camelContext trace="true"
> 		xmlns="http://camel.apache.org/schema/osgi">
> 		
> 		<camel:route>
> 		    <camel:from uri="jetty:http://localhost:8282?matchOnUriPrefix=true"/>
> 			<camel:to uri="cxfbean:reportIncidentServiceBean"/>
> 		</camel:route>
> 		
> 		<camel:route>
> 			<camel:from uri="jms:queue:inout"/>
> 			<camel:bean ref="reportIncidentDAOService" method="getReports"/>
> 		</camel:route>
> 		
> 	</camel:camelContext>
> {code}
> Error generated using the following REST request : http://127.0.0.1:8181/reportservice/incidents/123/
> {code}
> org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to
respond
> 	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
> 	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
> 	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
> 	at org.apache.camel.component.http.HttpProducer.executeMethod(HttpProducer.java:164)
> 	at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:78)
> 	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:97)
> 	at org.apache.camel.processor.SendProcessor$1.doInProducer(SendProcessor.java:95)
> 	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:146)
> 	at org.apache.camel.processor.SendProcessor.doProcess(SendProcessor.java:94)
> 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:82)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
> 	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
> 	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
> 	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
> 	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
> 	at org.apache.camel.processor.loadbalancer.QueueLoadBalancer.process(QueueLoadBalancer.java:41)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
> 	at org.apache.camel.processor.DelegateProcessor.processNext(DelegateProcessor.java:53)
> 	at org.apache.camel.processor.DelegateProcessor.proceed(DelegateProcessor.java:82)
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:162)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processExchange(RedeliveryErrorHandler.java:223)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:153)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:91)
> 	at org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:49)
> 	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:206)
> 	at org.apache.camel.processor.UnitOfWorkProcessor.processNext(UnitOfWorkProcessor.java:54)
> 	at org.apache.camel.processor.DelegateProcessor.process(DelegateProcessor.java:48)
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:67)
> 	at org.apache.camel.component.http.CamelServlet.service(CamelServlet.java:53)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:324)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
> {code}
> This request works fine : http://127.0.0.1:8282/reportservice/incidents/123/
> {code}
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <Incident>
> <details>
> <entry><key>100</key>
> <value><id>100</id>
> <reportedBy>James</reportedBy>
> <assignedTo>Hiram</assignedTo>
> </value>
> </entry>
> </details>
> <incidentId>123</incidentId>
> <givenName>Ibsen</givenName>
> <familyName>Claus</familyName>
> </Incident>
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message