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 100106 - java.lang.AbstractMethodError exception
Summary: java.lang.AbstractMethodError exception
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 14:22 UTC by moatley
Modified: 2007-04-12 17:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans log file (216.13 KB, text/plain)
2007-04-05 14:27 UTC, moatley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moatley 2007-04-05 14:22:56 UTC
The list of tables won't display after connecting to an Oracle 10G database.  Connection is OK, but list 
of tables stays on "Please wait".  The following error is found:  java.lang.AbstractMethodError exception.

Here's the full message:

java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.getDatabaseMajorVersion()I
	at org.netbeans.lib.ddl.adaptors.DefaultAdaptor.getDatabaseMajorVersion(DefaultAdaptor.java:
3967)
	at org.netbeans.modules.db.explorer.infos.TableListNodeInfo.initChildren(TableListNodeInfo.java:
49)
	at org.netbeans.modules.db.explorer.infos.DatabaseNodeInfo.getChildren(DatabaseNodeInfo.java:
675)
	at org.netbeans.modules.db.explorer.DatabaseNodeChildren$2.run(DatabaseNodeChildren.java:
94)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)


Tried various versions of ojdbc14.jar with same result.  Tried removing driver and database connections 
and recreating, but no success.  Tried removing netbeans and reinstalling, but no success.  Others with 
similar configurations are working OK.
Comment 1 moatley 2007-04-05 14:27:31 UTC
Created attachment 40499 [details]
netbeans log file
Comment 2 _ jimdavidson 2007-04-05 19:28:15 UTC
That usually indicates that you are using an old JDBC driver.  For Oracle, you
should use a 10.x driver, preferably the latest (10.2.0.3).  Please give that a
try, and report back if there's a problem.
Comment 3 moatley 2007-04-05 20:05:24 UTC
I tried the latest oracle 10g driver and got the same error.
Comment 4 Andrei Badea 2007-04-12 14:20:12 UTC
Please make sure you don't have multiple Oracle drivers registered. Also please
make sure you don't have an Oracle driver in the $JAVA_HOME/lib/endorsed directory.
Comment 5 moatley 2007-04-12 15:32:34 UTC
Success!

I don't have an endorsed folder, but I noticed in the Netbeans Java Platform
Manager that other Oracle drivers were listed from my
home/Library/Java/Extensions folder.  This was for another DB explorer product
that couldn't use the current driver. Removing the other drivers from this
folder fixed the problem.

Thanks.
-Mike-