Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsupportedOperationException?? What's the hell??

 
cnranger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code is like this:

System.setProperty("jdbc.drivers","sun.jdbc.odbc.JdbcOdbcDriver");
try { con = DriverManager.getConnection("jdbc dbc:check");
stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
stmt1 = con.createStatement();
result = stmt.executeQuery("SELECT name, message FROM guestbook");
result.afterLast();
} catch ( SQLException sql){System.out.println(sql);}
but it keeps getting:
UnsupportedOperationException at
sun.jdbc.odbc.JdbcOdbcConnection.createStatement(
Unknown Source)
Can anybody enlighten me?? Thank you very much!!
 
Laurent S
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think your driver doesn't support Updatable Set function from JDBC 2.0
 
Suji N
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by cnranger:
my code is like this:

System.setProperty("jdbc.drivers","sun.jdbc.odbc.JdbcOdbcDriver");
try { con = DriverManager.getConnection("jdbc dbc:check");
stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
stmt1 = con.createStatement();
result = stmt.executeQuery("SELECT name, message FROM guestbook");
result.afterLast();
} catch ( SQLException sql){System.out.println(sql);}
but it keeps getting:
UnsupportedOperationException at
sun.jdbc.odbc.JdbcOdbcConnection.createStatement(
Unknown Source)
Can anybody enlighten me?? Thank you very much!!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic