axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vaishakhi Ajmera" <>
Subject Class Cast Exception using return type as List
Date Fri, 19 Apr 2002 18:16:35 GMT
I have followed the instructions in the mailing lists and used these options
to get a List as return type from a web service

call.setReturnClass ( java.util.List.class)
List ls = (List)call.invoke( new Object[] {} );


call.setReturnType( XMLType.SOAP_ARRAY);
ArrayList ls = (ArrayList)call.invoke( new Object[] {} );

Both the above combination of statements give me a
java.lang.ClassCastException: [Ljava.lang.Object;
How should I go about then to get a java.util.List as return type from my


View raw message