This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 217268 - java.sql.SQLException: Unsupported feature
Summary: java.sql.SQLException: Unsupported feature
Status: RESOLVED INCOMPLETE
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-23 06:35 UTC by Exceptions Reporter
Modified: 2012-08-24 09:33 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191767


Attachments
stacktrace (1.38 KB, text/plain)
2012-08-23 06:36 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-08-23 06:35:58 UTC
This bug was originally marked as duplicate of bug 155003, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1.1 (Build 201203012225)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
GUEST: create entity from database

smvda: problem on create entityes from DB.

GUEST: I select New Entity classes from database from right click over a package on a test app-ejb, add a new datasource that point to Oracle 10g DB and show this dialog.

smvda: Erro on Impor Entityes on netbeans JPA support.

rukus: Wizard:
New entity classes from database
after adding datasource for oracle 10g




Stacktrace: 
java.sql.SQLException: Unsupported feature
   at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
   at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
   at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
   at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:689)
   at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4442)
   at org.netbeans.modules.dbschema.jdbcimpl.SchemaElementImpl.getOracleRecycleBinTables(SchemaElementImpl.java:730)
Comment 1 Exceptions Reporter 2012-08-23 06:36:00 UTC
Created attachment 123440 [details]
stacktrace
Comment 2 matthias42 2012-08-24 09:33:05 UTC
(In reply to comment #0)
> org.netbeans.modules.dbschema.jdbcimpl.SchemaElementImpl.getOracleRecycleBinTables(SchemaElementImpl.java:730)

This should be the version at 7.1 time:

http://hg.netbeans.org/core-main/file/6bc666ca01cd/dbschema/src/org/netbeans/modules/dbschema/jdbcimpl/SchemaElementImpl.java

And this is the version in 7.2:

http://hg.netbeans.org/core-main/file/e2a8a9927b2a/dbschema/src/org/netbeans/modules/dbschema/jdbcimpl/SchemaElementImpl.java

Both show that the relevant stacktrace element is already protected by a try-catch on SQLException. 

The call to getOracleRecycleBinTables was moved in this changeset:

http://hg.netbeans.org/core-main/diff/ef174c8edf5a/dbschema/src/org/netbeans/modules/dbschema/jdbcimpl/SchemaElementImpl.java

which established the try-catch protection.


Please try again with a clean netbeans 7.2 installation. If you can reproduce the bug please reopen this bug.