ArrayIndexOutBoundsException with SOAP UI tests using Maven plugin.
Description of service being tested: SOAP callable WS designed to be
asynchronous with no SOAP message response. Standard HTTP response is
delivered to caller.
When running SOAP UI Tests the HTTP header "Content-Type" is returned
empty. HTTP header "STATUS" has given the caller the required information
and status about the SOAP call. However when running tests with the Maven
plugin, it appears when the header "Content-Type" is empty and the response
body of the HTTP response also empty, an ArrayIndexOutBoundsException is
thrown. This appears to be thrown from the Class:
com.eviware.soapui.impl.wsdl.submit.transports.http.HttpMethodSupport.getRe
sponseContentType(HttpMethodSupport.java:202).
Code snippet follows from HttpMethodSupport.java:
=========================================
public String getResponseContentType()
{
Header[] headers = httpMethod.getResponseHeaders( "Content-Type"
);
if( headers != null && headers.length > 0 )
{
return headers[0].getElements()[0].getName();
}
return null;
}
The code is assuming the index “headers[0].getElements()[0]” is always
valid, and in this case it appears not to be hence the exception is
thrown.
Nobody/Anonymous
maven-plugin
None
Public
|
Date: 2009-10-31 02:20 This Tracker item was closed automatically by the system. It was |
|
Date: 2009-10-16 08:48 fixed in nightly build, thanks for reporting! |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2009-10-16 08:48 | 2009-10-31 02:20 | sf-robot |
| allow_comments | 1 | 2009-10-31 02:20 | sf-robot |
| status_id | Pending | 2009-10-31 02:20 | sf-robot |
| close_date | - | 2009-10-16 08:48 | omatzura |
| resolution_id | None | 2009-10-16 08:48 | omatzura |
| status_id | Open | 2009-10-16 08:48 | omatzura |