on 12-15-2005 10:39 AM
java.lang.UnsupportedOperationException: Method getTables() not supported by Common JDBC
Getting the above error when I try to access my DB2 database. The tables DO verify at deploy time, so it can & does access the database OK. Help!
Hi Smith,
Can you please give a detailed description of your Exception like stack trace? That will help in digging
into the exception.
regards
Deepa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
getTables() is not a method in java.sql.DatabaseMetaData.
You could try this instead:
DatabaseMetaData dbmd = connection.getMetaData();
String[] types = {"TABLE"};
ResultSet resultSet = dbmd.getTables(null, null, "%", types);
Or else you are probably missing an IBM specific jar in your project.
Good luck,
Roelof
Message was edited by: R. Knibbe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.