Jonas,

I believe this is fixed in 2.0.2.   There definitely was a bug where 
methods that had no params, but did have headers, would  cause this 
error.  Is there any chance you could give the 2.0.2 release candidate a 
try to make sure?

http://people.apache.org/~dkulp/stage_cxf/2.0.2-incubator-take2/dist/

Dan



On Friday 21 September 2007, Persson Jonas (jp) wrote:
> Hi!
>
>
>
> I'm creating an implementation of the PLM Services specified by
> omg.org (http://schema.omg.org/specs/PLM/2.0/). I have a problem
> sending information in the soap header as defined in the wsdl. Since
> what I'm implementing is based on a set standard, I don't have the
> option to change the wsdl. I have attached a smaller sample wsdl which
> illustrates the problem I'm having. To run the sample, just extract
> the zip-file and run "ant TestClient". This will produce the following
> error:
>
>
>
> Exception in thread "main" javax.xml.ws.soap.SOAPFaultException:
> Index: 1, Size: 1
>
> at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:169
>)
>
> at $Proxy35.query(Unknown Source)
>
> at a.b.services.Test_Test_Client.main(Test_Test_Client.java:54)
>
> Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
>
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
>
> at java.util.ArrayList.get(ArrayList.java:322)
>
> at
> org.apache.cxf.message.MessageContentsList.get(MessageContentsList.jav
>a: 76)
>
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleHeade
>rP art(SoapOutInterceptor.java:179)
>
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEn
>ve lopeStart(SoapOutInterceptor.java:124)
>
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessa
>ge (SoapOutInterceptor.java:76)
>
> at
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessa
>ge (SoapOutInterceptor.java:57)
>
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercepto
>rC hain.java:207)
>
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
>
> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:205)
>
> at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>
> at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135
>)
>
> ... 2 more
>
>
>
> Could anyone help out with this?
>
>
>
> Best regards
>
> Jonas Persson



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to