Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67AD018DFC for ; Wed, 23 Mar 2016 01:02:21 +0000 (UTC) Received: (qmail 50211 invoked by uid 500); 23 Mar 2016 01:02:20 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 50155 invoked by uid 500); 23 Mar 2016 01:02:20 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 50144 invoked by uid 99); 23 Mar 2016 01:02:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2016 01:02:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AC651180219 for ; Wed, 23 Mar 2016 01:02:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2hwgRhB1hQeG for ; Wed, 23 Mar 2016 01:02:17 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9396E5FBCB for ; Wed, 23 Mar 2016 01:02:16 +0000 (UTC) Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 60134239A262 for ; Tue, 22 Mar 2016 17:51:50 -0700 (PDT) Date: Tue, 22 Mar 2016 18:02:15 -0700 (MST) From: bocamel To: users@camel.apache.org Message-ID: <1458694935002-5779532.post@n5.nabble.com> Subject: java.lang.IndexOutOfBoundsException in DefaultCxfBinding.java when receiving null HTTP header MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am running Camel 2.15.5 and CXF 3.1.5. I have a CXF consumer endpoint that receives requests in MESSAGE data format. I ran into the following error whenever a client sent in a request with a null HTTP header (i.e. a header name is specified but there is no value. It can be any header, e.g. SOAPAction, or FOO). Then the following fault is returned: soap:Server Index: 0, Size: 0 Any help would be greatly appreciated. ================ ID: 1 Address: http://localhost:9003/test.svc Encoding: ISO-8859-1 Http-Method: POST Content-Type: text/xml Headers: {accept-encoding=[gzip,deflate], connection=[keep-alive], Content-Length=[23], content-type=[text/xml], FOO=[], Host=[localhost:9003], User-Agent=[Apache-HttpClient/4.1.1 (java 1.5)]} Payload: -------------------------------------- 2016-03-22 20:32:59,515 [qtp86558913-22 ] WARN PhaseInterceptorChain - Interceptor for {http://b2b.com/schema/IS_B2B_CDM/R2_2}CustomerPublish has thrown exception, unwinding now java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at org.apache.camel.component.cxf.DefaultCxfBinding.propagateHeadersFromCxfToCamel(DefaultCxfBinding.java:552) at org.apache.camel.component.cxf.DefaultCxfBinding.populateExchangeFromCxfRequest(DefaultCxfBinding.java:247) at org.apache.camel.component.cxf.CxfConsumer$1.prepareCamelExchange(CxfConsumer.java:187) at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:86) at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:75) at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126) at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:253) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:234) at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:499) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) at java.lang.Thread.run(Thread.java:745) 2016-03-22 20:32:59,644 [qtp86558913-22 ] INFO Provider - Outbound Message --------------------------- ID: 1 Response-Code: 500 Encoding: ISO-8859-1 Content-Type: text/xml Headers: {} Payload: soap:ServerIndex: 0, Size: 0 -- View this message in context: http://camel.465427.n5.nabble.com/java-lang-IndexOutOfBoundsException-in-DefaultCxfBinding-java-when-receiving-null-HTTP-header-tp5779532.html Sent from the Camel - Users mailing list archive at Nabble.com.