The following is a piece of code to calla stored procedure in oracle from java
ArrayList arrList = new ArrayList();
arrList.add(new Integer("10"));
arrList.add(new Integer("7"));
cstmt = conn.prepareCal l("BEGIN PRM_SMART_FIXTU RE_SEQ1(?,?,?); END;");
ArrayDescriptor arrayDescriptor = new ArrayDescriptor (
"FLOORPLAN_LABE L_LIST",
cstmt.getConnec tion());
ARRAY acctList = new ARRAY(arrayDesc riptor, conn,arrList.to Array());
This code works fine from my test harness file..
But when I try doing the same thing from my actual application like
flrList.add(new Integer("10"))) ;
cstmt = conn.prepareCal l(StoreSQLConst ants.RUN_SEQ_ST ORED_PROC);
ArrayDescriptor arrayDescriptor = new ArrayDescriptor (StoreSQLConsta nts.FLOORPLAN_L ABEL_LIST,cstmt .getConnection( ));
ARRAY acctList = new ARRAY(arrayDesc riptor,conn,flr List.toArray()) ;
, it gives me a class cast exception @ the following line
ARRAY acctList = new ARRAY(arrayDesc riptor,connJDA, flrList.toArray ());
What could be wrong?
ArrayList arrList = new ArrayList();
arrList.add(new Integer("10"));
arrList.add(new Integer("7"));
cstmt = conn.prepareCal l("BEGIN PRM_SMART_FIXTU RE_SEQ1(?,?,?); END;");
ArrayDescriptor arrayDescriptor = new ArrayDescriptor (
"FLOORPLAN_LABE L_LIST",
cstmt.getConnec tion());
ARRAY acctList = new ARRAY(arrayDesc riptor, conn,arrList.to Array());
This code works fine from my test harness file..
But when I try doing the same thing from my actual application like
flrList.add(new Integer("10"))) ;
cstmt = conn.prepareCal l(StoreSQLConst ants.RUN_SEQ_ST ORED_PROC);
ArrayDescriptor arrayDescriptor = new ArrayDescriptor (StoreSQLConsta nts.FLOORPLAN_L ABEL_LIST,cstmt .getConnection( ));
ARRAY acctList = new ARRAY(arrayDesc riptor,conn,flr List.toArray()) ;
, it gives me a class cast exception @ the following line
ARRAY acctList = new ARRAY(arrayDesc riptor,connJDA, flrList.toArray ());
What could be wrong?
Comment