Share

soapUI

Tracker: Bugs

5 Maven Plugin - SOAP UI Tests: ArrayIndexOutOfBoundsException - ID: 2876839
Last Update: Settings changed ( sf-robot )

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.


Luke Diment ( lggd ) - 2009-10-12 02:43

5

Closed

Fixed

Nobody/Anonymous

maven-plugin

None

Public


Comments ( 2 )

Date: 2009-10-31 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-10-16 08:48
Sender: omatzuraProject Admin

fixed in nightly build, thanks for reporting!


Attached File

No Files Currently Attached

Changes ( 6 )

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