I tried the code below:
public class Abc { private ArrayDescriptor arrayDesc; void init() { connection = //create connection arrayDesc = ArrayDescriptor.createDescriptor("DBTYPE",connection); } void m1() { conn1 = //create connection ARRAY array_to_pass1 = new ARRAY( arrayDesc , conn1, idsArray1 ); } void m2() { conn2 = //create connection ARRAY array_to_pass2 = new ARRAY( arrayDesc , conn2, idsArray2 ); } }
This code reports the error below:
table.java.sql.SQLException: Missing handle at oracle.sql.DatumWithConnection.assertNotNull (DatumWithConnection.java:103)
How can this be solved?
source share