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 ax...@ws.apache.org on 2004/09/22 02:12:38 UTC

[jira] Resolved: (AXIS-1329) java.lang.ArrayStoreException with one array element but not with more

Message:

   The following issue has been resolved as FIXED.

   Resolver: Glen Daniels
       Date: Tue, 21 Sep 2004 5:12 PM

Fixed in latest CVS.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1329

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1329
    Summary: java.lang.ArrayStoreException with one array element but not with more
       Type: Bug

     Status: Resolved
   Priority: Critical
 Resolution: FIXED

    Project: Axis
 Components: 
             Serialization/Deserialization
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Paulo Soares

    Created: Wed, 21 Apr 2004 10:39 AM
    Updated: Tue, 21 Sep 2004 5:12 PM
Environment: win xp, jdk 1.4.2_02, netbeans 3.6 with tomcat 5.0.19

Description:
I've create a wsdl with Java2WSDL that I attach. I've then created the client and server with WSDL2Java.
One of the methods has the signature:

public fileserve_server.FileAttributes[] getAttributesAllDir(java.lang.String getAttributesAllDirIn0, byte[][] getAttributesAllDirIn1)

When it's invoked with getAttributesAllDirIn1 with a single element it throws the exception java.lang.ArrayStoreException. If it has more than one element it works ok. I tested it with the java client, xml spy and soapscope with the same results.

To summarize, calling in the client with:

getAttributesAllDir("abc", new byte[][]{new byte[]{10,20}});

throws the exception. But:

getAttributesAllDir("abc", new byte[][]{new byte[]{10,20},new byte[]{11,22}});

works well.

Best Regards,
Paulo Soares





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira