You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/01/24 00:34:48 UTC

DO NOT REPLY [Bug 16380] New: - IndexOutOfBoundsException in WSIFUtils.unWrapPart()

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16380>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16380

IndexOutOfBoundsException in WSIFUtils.unWrapPart()

           Summary: IndexOutOfBoundsException in WSIFUtils.unWrapPart()
           Product: Axis-WSIF
           Version: current (nightly)
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: lane@mcs.anl.gov


I probably don't have things setup correctly, but nevertheless I get the
following exception that should occur regardless, IMHO.

---------------------------------------
     [java] Exception in thread "main" java.lang.IndexOutOfBoundsException:
Index: 0, Size: 0
     [java]     at java.util.ArrayList.RangeCheck(ArrayList.java:491)
     [java]     at java.util.ArrayList.get(ArrayList.java:307)
     [java]     at org.apache.wsif.util.WSIFUtils.unWrapPart(Unknown Source)
     [java]     at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.unwrapSOAPParts(Unknown
Source)
     [java]     at
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis.<init>(Unknown
Source)
     [java]     at
org.apache.wsif.providers.soap.apacheaxis.WSIFPort_ApacheAxis.getDynamicWSIFOperation(Unknown
Source)
     [java]     at
org.apache.wsif.providers.soap.apacheaxis.WSIFPort_ApacheAxis.createOperation(Unknown
Source)
     [java]     at
org.globus.ogsa.client.wsif.DynamicInvoker.setParameters(DynamicInvoker.java:171)
     [java]     at
org.globus.ogsa.client.wsif.samples.DynamicCounterAdd.<init>(DynamicCounterAdd.java:69)
     [java]     at
org.globus.ogsa.client.wsif.samples.DynamicCounterAdd.main(DynamicCounterAdd.java:91)
---------------------------------------


I've tracked it down to line 1386 of WSIFUtils.java:

        ComplexType ct = (ComplexType) children.get(0);

The fix is probably just as simple as making a check for children.size() > 0,
otherwise throw an exception (possibly in above "if" block after "children ==
null"?), but I don't know the code well enough to claim to know exactly what's
going on here.

Peter