cancel
Showing results for 
Search instead for 
Did you mean: 

Method getTables() not supported by Common JDBC

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (2)

Answers (2)

deepa_prabhu
Participant
0 Kudos

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

Former Member
0 Kudos

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