aspose file tools
The moose likes JDBC and the fly likes why con.createStatement() throw Exception? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "why con.createStatement() throw Exception?" Watch "why con.createStatement() throw Exception?" New topic
Author

why con.createStatement() throw Exception?

yub huang
Greenhorn

Joined: Jun 08, 2002
Posts: 17
when i use "stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);"
the exception was throwed. but the "stmt = con.createStatement();" is really ok?
can someone help me?


I want to know
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

what is the exception message? If it is along the lines of "method not implemented" or "method not supported", then your driver is not able to create scrollable resultsets. You'll have to upgrade your driver to one that supports scrollable resultsets or make due with FORWARD_ONLY results.
Jamie
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: why con.createStatement() throw Exception?
 
Similar Threads
reading username and password from a property file
very strange
Null pointer exception in con.createStatement(); (Struts 2 using netbeans6.1 and MYSQL)
Null pointer exception in con.createStatement();
Statement, an interface ?