How to retrieve array elements returned by an Oracle SP

I have an Oracle SP that returns a Array.

Now, I am trying to retrieve the elements in that array using the following code snippet....but i am facing a java.lang.ClassCastException....

can somebody help me out with this?

i got this code from a tutorial......

cstmt1.registerOutParameter(4, OracleTypes.ARRAY,"PROPLIST");

cstmt1.executeUpdate();

ARRAY propValues = (ARRAY)cstmt1.getArray(4);

String[] values = (String[]) propValues.getArray();

for( int i = 0; i < values.length; i++ )

{

System.out.println( "row " + i + " = '" + values + "'" );

}

[630 byte] By [Raj-Jara] at [2007-10-3 4:18:12]
# 1
String[] values = (String[]) propValues.getArray();I don't know any of the Oracle SP (whatever that is) butI hope propValues().getArray() does not return an Object[].If it does, you cannot cast an Object[] into a String[]
r035198xa at 2007-7-14 22:19:50 > top of Java-index,Java Essentials,Java Programming...