[ 
https://issues.apache.org/jira/browse/CXF-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13014837#comment-13014837
 ] 

Daniel Kulp commented on CXF-3413:
----------------------------------


While the error message is not ideal, the soap message does not match the 
schema and thus should fail.  The schema says the soap:Body should have a 
single child called GeneratePreviewResponse which your message does not.



> IndexOutOfBoundsException in DocLiteralInInterceptor
> ----------------------------------------------------
>
>                 Key: CXF-3413
>                 URL: https://issues.apache.org/jira/browse/CXF-3413
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.3
>            Reporter: Andreas Gudian
>
> I am receiving the following response from a web service that I call using 
> CXF 2.3.3:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:xml="http://www.w3.org/XML/1998/namespace"; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <SOAP-ENV:Header xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"; 
> xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding";></SOAP-ENV:Header><SOAP-ENV:Body>
> <xsd1:statusCode 
> xmlns:xsd1="http://www.xxx.yy/zzz/types/";>-1</xsd1:statusCode>
>   <xsd1:statusMessage xmlns:xsd1="http://www.xxx.yy/zzz/types/";>Some Status 
> Message</xsd1:statusMessage>
>   <xsd1:pdfList xmlns:xsd1="http://www.xxx.yy/zzz/types/";></xsd1:pdfList>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> {code}
> This results in the following exception:
> {code}
> 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.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:188)
>       at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
>       at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:755)
>       at 
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2335)
>       at 
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2193)
>       at 
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2037)
>       at 
> org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
>       at 
> org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:188)
>       at 
> org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
>       at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:697)
>       at 
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>       at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
>       at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>       at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>       at $Proxy43.myWebserviceOperation(Unknown Source)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to