You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by "Shawn Jiang (JIRA)" <sc...@ws.apache.org> on 2011/06/25 14:22:47 UTC

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

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

        

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

Posted by "Kurt T Stam (JIRA)" <sc...@ws.apache.org>.
     [ 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

        

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

Posted by "Kurt T Stam (JIRA)" <sc...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/SCOUT-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt T Stam closed SCOUT-116.
-----------------------------


> 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

        

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

Posted by "Kurt T Stam (JIRA)" <sc...@ws.apache.org>.
     [ 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