aspose file tools*
The moose likes JDBC and the fly likes UnsupportedOperationException?? What's the hell?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "UnsupportedOperationException?? What Watch "UnsupportedOperationException?? What New topic
Author

UnsupportedOperationException?? What's the hell??

cnranger
Greenhorn

Joined: Sep 27, 2001
Posts: 3
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

Joined: Sep 27, 2001
Posts: 15
I think your driver doesn't support Updatable Set function from JDBC 2.0
Suji N
Ranch Hand

Joined: Sep 04, 2001
Posts: 35
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!!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsupportedOperationException?? What's the hell??