• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

VAJ & lotus jdbc domino database access problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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();
}
 
reply
    Bookmark Topic Watch Topic
  • New Topic