IndexOutOfBoundsException in AxisTransport after changes in JUDDI-498.
-----------------------------------------------------------------------
Key: SCOUT-116
URL: https://issues.apache.org/jira/browse/SCOUT-116
Project: Scout
Issue Type: Bug
Components: Scout Implementation
Affects Versions: 1.2.2, 1.2.3
Reporter: Shawn Jiang
Assignee: Kurt T Stam
After the change in JUDDI-498, now the result of these void server call is an
empty Vector, so that result.elementAt(0) will result in
IndexOutOfBoundsException. All these void related call will have the same
failure.
See following code in scout for details.
org.apache.ws.scout.transport.AxisTransport.send(Element, URI)
{
...
try {
service = new Service();
call = (Call)service.createCall();
call.setTargetEndpointAddress(endpointURL.toURL());
String requestString = XMLUtils.ElementToString(request);
SOAPBodyElement body = new SOAPBodyElement(new
ByteArrayInputStream(requestString.getBytes("UTF-8")));
Object[] soapBodies = new Object[] { body };
Vector result = (Vector)call.invoke(soapBodies);
response = ((SOAPBodyElement)result.elementAt(0)).getAsDOM();
}
...
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira