Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VAJ & lotus jdbc domino database access problem

 
judy wong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a very simple java program trying to use lotus notes domino
jdbc access to domino database using VAJ. My program works fine for
the first time, however the second time when I try to run the program,
it always gives me "ide.exe application error:"XXXXXXX memory could
not be read..." then the whole VAJ crashes. But it is ok if I work
under JDK with multiple successful times.
I am using VAJ3.5.3 & winNT&Lddj1.1
Any suggestions? Any suggestion is very appreciated!
Judy
=====================================
my short program is as follows:

public static void main(String argv[]){

Connection con=null;
Statement stmt=null;
ResultSet rs=null;
try{

try{
Class.forName("lotus.jdbc.domino.DominoDriver");
}catch (ClassNotFoundException e){
e.printStackTrace();
}

String url = "jdbc omino:/names.nsf/noteserver";

try{
con = DriverManager.getConnection(url,"","");

}catch (SQLException ex){ ex.printStackTrace();
}
stmt = con.createStatement();

rs = stmt.executeQuery("SELECT * FROM Locations ");

while(rs.next()){
System.out.print(rs.getString(1));
// System.out.println(rs.getString(2));
// System.out.println(rs.getString(3));
}

if(rs!=null){
rs.close();
}

if(stmt!=null){
stmt.close();
}

if(con!=null) {

con.close();
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic