Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9282

IndexOutOfBoundsException if SoapAction parameter is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.0
    • 2.16.2, 2.17.0
    • camel-cxf
    • None
    • JDK 1.7, Jboss 7.1.1.Final

    • Unknown

    Description

      After upgrade from 1.4.1, I encountered below error when receiving web service message where SoapAction is blank. Below is the trace log and error log.

      13:12:39,526 TRACE [org.apache.camel.component.cxf.DefaultCxfBinding] (default-workqueue-2) Populate header from CXF header=accept-encoding value=[gzip,deflate]
      13:12:46,769 TRACE [org.apache.camel.component.cxf.DefaultCxfBinding] (default-workqueue-2) Populate header from CXF header=connection value=[keep-alive]
      13:12:57,869 TRACE [org.apache.camel.component.cxf.DefaultCxfBinding] (default-workqueue-2) Populate header from CXF header=content-type value=[text/xml;charset=UTF-8]
      13:12:59,803 TRACE [org.apache.camel.component.cxf.DefaultCxfBinding] (default-workqueue-2) Populate header from CXF header=Host value=[localhost:8088]
      13:13:00,786 TRACE [org.apache.camel.component.cxf.DefaultCxfBinding] (default-workqueue-2) Populate header from CXF header=SoapAction value=[]

      13:17:21,407 WARN [org.apache.cxf.phase.PhaseInterceptorChain] (default-workqueue-2) Interceptor for

      {http://member.ws.com}

      WsMemberService#

      {http://member.ws.com}

      receivedMemberMessage has thrown exception,
      unwinding now: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.rangeCheck(ArrayList.java:635) [rt.jar:1.7.0_71]
      at java.util.ArrayList.get(ArrayList.java:411) [rt.jar:1.7.0_71]
      at org.apache.camel.component.cxf.DefaultCxfBinding.propagateHeadersFromCxfToCamel(DefaultCxfBinding.java:552) [camel-cxf-2.16.0.jar:2.16.0]
      at org.apache.camel.component.cxf.DefaultCxfBinding.populateExchangeFromCxfRequest(DefaultCxfBinding.java:247) [camel-cxf-2.16.0.jar:2.16.0]
      at org.apache.camel.component.cxf.CxfConsumer$1.prepareCamelExchange(CxfConsumer.java:187) [camel-cxf-2.16.0.jar:2.16.0]
      at org.apache.camel.component.cxf.CxfConsumer$1.syncInvoke(CxfConsumer.java:132) [camel-cxf-2.16.0.jar:2.16.0]
      at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:78) [camel-cxf-2.16.0.jar:2.16.0]
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [cxf-core-3.1.2.jar:3.1.2]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_71]
      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_71]
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126) [cxf-core-3.1.2.jar:3.1.2]
      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-core-3.1.2.jar:3.1.2]
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131) [cxf-core-3.1.2.jar:3.1.2]
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [cxf-core-3.1.2.jar:3.1.2]
      at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:278) [cxf-core-3.1.2.jar:3.1.2]
      at org.apache.cxf.interceptor.OneWayProcessorInterceptor$1.run(OneWayProcessorInterceptor.java:137) [cxf-core-3.1.2.jar:3.1.2]
      at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428) [cxf-core-3.1.2.jar:3.1.2]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]
      at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353) [cxf-core-3.1.2.jar:3.1.2]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            augus.topor Augus Topor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: