You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Kurt T Stam (JIRA)" <sc...@ws.apache.org> on 2011/06/27 16:27:48 UTC

[jira] [Updated] (SCOUT-116) IndexOutOfBoundsException in AxisTransport after changes in JUDDI-498.

     [ https://issues.apache.org/jira/browse/SCOUT-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt T Stam updated SCOUT-116:
------------------------------

    Affects Version/s:     (was: 1.2.3)
        Fix Version/s: 1.2.3

> 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
>            Reporter: Shawn Jiang
>            Assignee: Kurt T Stam
>             Fix For: 1.2.3
>
>
> 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