java - Max cursor issue -


we having issue code. error getting maximum cursor open oracle database in java code. have tried try-catch-finally, in section close resultset , preparedstatement. once records processed close connection.

map<string,string> idmap = new hashmap<string, string>();     try{      long aid = null;     if(bid != null){          aid = bid.tolong();     }     // create prepared statement     retrievestatement = super.preparestatement( getsqlfromprops("findpersoninfo")  ); for(int =0 ; < 100; i++){     super.setdate( 1, today, retrievestatement );      super.setdate( 2, today, retrievestatement );      super.setdate( 3, today, retrievestatement );      super.setdate( 4, today, retrievestatement );      super.setstring( 5, thecasenumber, retrievestatement );     super.setstring( 6, thecaseid, retrievestatement );     super.setlong( 7, aid, retrievestatement );     super.executeunboundedquery(retrievestatement);      }     }catch(exception e){     }finally{     if (retrievestatement != null) {             retrievestatement.close();         }     }        return idmap; 

cursor associated resultset. close resultset , cursor closed , have no such exception.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -