juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt T Stam (JIRA)" <scout-...@ws.apache.org>
Subject [jira] [Resolved] (SCOUT-116) IndexOutOfBoundsException in AxisTransport after changes in JUDDI-498.
Date Tue, 28 Jun 2011 18:20:17 GMT

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

Kurt T Stam resolved SCOUT-116.
-------------------------------

    Resolution: Fixed

Fixed. We can now handle empty messages.

> 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

        

Mime
View raw message