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

ASF GitHub Bot commented on CXF-7455:
-------------------------------------

semancik commented on issue #297: [CXF-7455] Tolerate missing message part
URL: https://github.com/apache/cxf/pull/297#issuecomment-394955593
 
 
   I'm sorry. I was lucky enough not to be forced to deal with that terrible 
Microsoft technology in the meantime. And I'm quite scared to look there just 
by myself unless I really have to. Please bear with me. But I'll do it ... 
sooner or later.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> IndexOutOfBoundsException when message part is missing
> ------------------------------------------------------
>
>                 Key: CXF-7455
>                 URL: https://issues.apache.org/jira/browse/CXF-7455
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.12
>            Reporter: Radovan Semancik
>            Priority: Major
>
> When SOAP response from the server does not include a part which is defined 
> in the WSDL, the the following exception is thrown:
> {code}
> Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
>       at java.util.ArrayList.rangeCheck(ArrayList.java:653)
>       at java.util.ArrayList.get(ArrayList.java:429)
>       at 
> org.apache.cxf.message.MessageContentsList.get(MessageContentsList.java:80)
>       at 
> org.apache.cxf.jaxws.interceptors.HolderInInterceptor.handleMessage(HolderInInterceptor.java:69)
> ...
> {code}
> Yes, this is violation of the specs. Parts should not be missing. However, 
> there are bad servers out there (e.g. Windows 2008 WinRM). Throwing exception 
> like this prohibits the client to handle the situation. Which breaks projects 
> such as winrm4j when talking to old windows boxes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to