camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Jetty proxy Rest service fails for file uploading
Date Fri, 08 Nov 2013 09:04:16 GMT
It’s hard to tell the cause of IndexOutOfBoundsException.
(https://issues.apache.org/jira/browse/CAMEL-6943)What’s your quest message look like?
Did you just submit POST request with a Form to the Proxy?


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, November 8, 2013 at 4:31 PM, berdoni wrote:

> I have enabled DEBUG logging. Here it the full stack trace:
>  
> 10:25:53,974 | DEBUG | heckpoint Worker | MessageDatabase |
> 78 - org.apache.activemq.activemq-core - 5.7.0 | Checkpoint started.
> 10:25:53,977 | DEBUG | heckpoint Worker | MessageDatabase |
> 78 - org.apache.activemq.activemq-core - 5.7.0 | Checkpoint done.
> 10:25:58,326 | DEBUG | /ce/saveDocument | Server |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | REQUEST
> /my-app/ce/saveDocument on
> org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection@78d53fb8@127.0.0.1
(mailto:78d53fb8@127.0.0.1):8081<->127.0.0.1:52016
> 10:25:58,326 | DEBUG | /ce/saveDocument | ContextHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | scope
> null||/my-app/ce/saveDocument @ o.e.j.s.ServletContextHandler{/,null}
> 10:25:58,326 | DEBUG | /ce/saveDocument | ContextHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 |
> context=||/my-app/ce/saveDocument @ o.e.j.s.ServletContextHandler{/,null}
> 10:25:58,326 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | servlet
> ||/my-app/ce/saveDocument ->
> org.apache.camel.component.jetty.CamelContinuationServlet-1817225220
> 10:25:58,326 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 |
> chain=org.apache.camel.component.jetty.CamelFilterWrapper-835782266->org.apache.camel.component.jetty.CamelContinuationServlet-1817225220
> 10:25:58,326 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | call filter
> org.apache.camel.component.jetty.CamelFilterWrapper-835782266
> 10:25:58,327 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | call servlet
> org.apache.camel.component.jetty.CamelContinuationServlet-1817225220
> 10:25:58,332 | DEBUG | /ce/saveDocument | SendProcessor |
> 95 - org.apache.camel.camel-core - 2.10.4 | >>>>
> Endpoint[http://devel:8080/] Exchange[Message: [Body is instance of
> org.apache.camel.StreamCache]]
> 10:25:58,334 | DEBUG | /ce/saveDocument | HttpExchange |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | URI =
> http://devel:8080/my-app/ce/saveDocument
> 10:25:58,337 | DEBUG | /ce/saveDocument | JettyHttpProducer |
> 178 - org.apache.camel.camel-jetty - 2.10.4 | Sending HTTP request to:
> http//devel:8080/my-app/ce/saveDocument
> 10:25:58,340 | DEBUG | /ce/saveDocument | Server |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | RESPONSE
> /my-app/ce/saveDocument 200
> 10:25:58,340 | DEBUG | nt-123 Selector0 | nio |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | Channels with connection
> pending: 0
> 10:25:58,340 | DEBUG | tp1844774651-141 | AsyncHttpConnection |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | suspended
> org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection@78d53fb8@127.0.0.1
(mailto:78d53fb8@127.0.0.1):8081<->127.0.0.1:52016
> 10:25:58,341 | DEBUG | nt-123 Selector0 | nio |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | Required scheduleWrite
> SCEP@1778694983java.nio.channels.SocketChannel (mailto:SCEP@1778694983java.nio.channels.SocketChannel)[connected
> local=/10.250.23.152:52017 remote=devel/10.254.241.70:8080][o=true
> d=false,io=0,w=true,rb=false,wb=false]
> 10:25:58,348 | DEBUG | HttpClient-126 | HttpConnection |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | Failure on
> JettyContentExchange@6c2e6bfa=POST//devel:8080/my-app/ce/saveDocument#CONNECTED(1ms)->SENDING(5ms)sent=5ms
> java.lang.IndexOutOfBoundsException
> at java.nio.Buffer.checkIndex(Buffer.java:532)[:1.7.0_17]
> at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:300)[:1.7.0_17]
> at
> org.eclipse.jetty.io.nio.DirectNIOBuffer.poke(DirectNIOBuffer.java:130)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.io.AbstractBuffer.put(AbstractBuffer.java:465)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.http.HttpFields$Field.putTo(HttpFields.java:1314)[108:org.eclipse.jetty.http:7.5.4.v20111024]
> at
> org.eclipse.jetty.http.HttpGenerator.completeHeader(HttpGenerator.java:655)[108:org.eclipse.jetty.http:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.commitRequest(HttpConnection.java:539)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:216)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[111:org.eclipse.jetty.util:7.5.4.v20111024]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[111:org.eclipse.jetty.util:7.5.4.v20111024]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]
> 10:25:58,348 | WARN | HttpClient-126 | HttpExchange |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | EXCEPTION
> JettyContentExchange@6c2e6bfa=POST//devel:8080/my-app/ce/saveDocument#SENDING(6ms)->EXCEPTED(0ms)sent=6ms
> java.lang.IndexOutOfBoundsException
> at java.nio.Buffer.checkIndex(Buffer.java:532)[:1.7.0_17]
> at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:300)[:1.7.0_17]
> at
> org.eclipse.jetty.io.nio.DirectNIOBuffer.poke(DirectNIOBuffer.java:130)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.io.AbstractBuffer.put(AbstractBuffer.java:465)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.http.HttpFields$Field.putTo(HttpFields.java:1314)[108:org.eclipse.jetty.http:7.5.4.v20111024]
> at
> org.eclipse.jetty.http.HttpGenerator.completeHeader(HttpGenerator.java:655)[108:org.eclipse.jetty.http:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.commitRequest(HttpConnection.java:539)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:216)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[111:org.eclipse.jetty.util:7.5.4.v20111024]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[111:org.eclipse.jetty.util:7.5.4.v20111024]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]
> 10:25:58,350 | DEBUG | HttpClient-126 | DefaultErrorHandler |
> 95 - org.apache.camel.camel-core - 2.10.4 | Failed delivery for (MessageId:
> ID-HP-51981-1383898833207-0-4 on ExchangeId: ID-HP-51981-1383898833207-0-3).
> On delivery attempt: 0 caught: 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]
> 10:25:58,350 | DEBUG | /ce/saveDocument | Server |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | REQUEST
> /my-app/ce/saveDocument on
> org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection@78d53fb8@127.0.0.1
(mailto:78d53fb8@127.0.0.1):8081<->127.0.0.1:52016
> 10:25:58,350 | ERROR | HttpClient-126 | DefaultErrorHandler |
> 95 - org.apache.camel.camel-core - 2.10.4 | Failed delivery for (MessageId:
> ID-HP-51981-1383898833207-0-4 on ExchangeId: ID-HP-51981-1383898833207-0-3).
> Exhausted after delivery attempt: 1 caught:
> 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]
> 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]
> at
> org.apache.camel.component.jetty.JettyContentExchange.doTaskCompleted(JettyContentExchange.java:214)[178:org.apache.camel.camel-jetty:2.10.4]
> at
> org.apache.camel.component.jetty.JettyContentExchange.onException(JettyContentExchange.java:134)[178:org.apache.camel.camel-jetty:2.10.4]
> at
> org.eclipse.jetty.client.HttpExchange$Listener.onException(HttpExchange.java:1094)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:319)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[111:org.eclipse.jetty.util:7.5.4.v20111024]
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[111:org.eclipse.jetty.util:7.5.4.v20111024]
> at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]
> Caused by: java.lang.IndexOutOfBoundsException
> at java.nio.Buffer.checkIndex(Buffer.java:532)[:1.7.0_17]
> at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:300)[:1.7.0_17]
> at
> org.eclipse.jetty.io.nio.DirectNIOBuffer.poke(DirectNIOBuffer.java:130)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.io.AbstractBuffer.put(AbstractBuffer.java:465)[103:org.eclipse.jetty.io:7
(http://org.eclipse.jetty.io:7).5.4.v20111024]
> at
> org.eclipse.jetty.http.HttpFields$Field.putTo(HttpFields.java:1314)[108:org.eclipse.jetty.http:7.5.4.v20111024]
> at
> org.eclipse.jetty.http.HttpGenerator.completeHeader(HttpGenerator.java:655)[108:org.eclipse.jetty.http:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.commitRequest(HttpConnection.java:539)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> at
> org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:216)[106:org.eclipse.jetty.client:7.5.4.v20111024]
> ... 5 more
> 10:25:58,350 | DEBUG | /ce/saveDocument | ContextHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | scope
> null||/my-app/ce/saveDocument @ o.e.j.s.ServletContextHandler{/,null}
> 10:25:58,351 | DEBUG | /ce/saveDocument | ContextHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 |
> context=||/my-app/ce/saveDocument @ o.e.j.s.ServletContextHandler{/,null}
> 10:25:58,351 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | servlet
> ||/my-app/ce/saveDocument ->
> org.apache.camel.component.jetty.CamelContinuationServlet-1817225220
> 10:25:58,351 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 |
> chain=org.apache.camel.component.jetty.CamelFilterWrapper-835782266->org.apache.camel.component.jetty.CamelContinuationServlet-1817225220
> 10:25:58,351 | DEBUG | nt-123 Selector0 | nio |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | destroyEndPoint
> SCEP@1778694983java.nio.channels.SocketChannel (mailto:SCEP@1778694983java.nio.channels.SocketChannel)[closed][o=false
> d=false,io=5,w=false,rb=false,wb=false]
> 10:25:58,351 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | call filter
> org.apache.camel.component.jetty.CamelFilterWrapper-835782266
> 10:25:58,351 | DEBUG | /ce/saveDocument | ServletHandler |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | call servlet
> org.apache.camel.component.jetty.CamelContinuationServlet-1817225220
> 10:25:58,354 | DEBUG | /ce/saveDocument | Server |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | RESPONSE
> /my-app/ce/saveDocument 500
> 10:25:58,977 | DEBUG | heckpoint Worker | MessageDatabase |
> 78 - org.apache.activemq.activemq-core - 5.7.0 | Checkpoint started.
> 10:25:58,980 | DEBUG | heckpoint Worker | MessageDatabase |
> 78 - org.apache.activemq.activemq-core - 5.7.0 | Checkpoint done.
> 10:26:03,358 | DEBUG | 51-142 Selector0 | nio |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | destroyEndPoint
> SCEP@388534836java.nio.channels.SocketChannel (mailto:SCEP@388534836java.nio.channels.SocketChannel)[closed][o=false
> d=false,io=1,w=true,rb=false,wb=false]
> 10:26:03,358 | DEBUG | 51-142 Selector0 | HttpConnection |
> 111 - org.eclipse.jetty.util - 7.5.4.v20111024 | closed
> org.eclipse.jetty.server.nio.SelectChannelConnector$SelectChannelHttpConnection@78d53fb8@127.0.0.1
(mailto:78d53fb8@127.0.0.1):8081<->127.0.0.1:52016
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Jetty-proxy-Rest-service-fails-for-file-uploading-tp5742769p5742806.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message