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 117894

Summary: DatabaseExplorerUIsTest fails
Product: db Reporter: Andrei Badea <abadea>
Component: CodeAssignee: David Vancouvering <davidvc>
Status: RESOLVED FIXED    
Severity: blocker Keywords: RANDOM, TEST
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 75204, 125140    
Bug Blocks:    
Attachments: Log

Description Andrei Badea 2007-10-05 11:02:56 UTC
... in the 200710040000 daily run.
Comment 1 Andrei Badea 2007-10-05 11:03:21 UTC
Created attachment 50256 [details]
Log
Comment 2 Andrei Badea 2007-10-05 12:57:33 UTC
Partially fixed, also needs fix of issue 75204.

Checking in src/org/netbeans/modules/db/explorer/ConnectionList.java;
/cvs/db/src/org/netbeans/modules/db/explorer/ConnectionList.java,v  <--  ConnectionList.java
new revision: 1.6; previous revision: 1.5
done
Checking in test/unit/src/org/netbeans/api/db/explorer/support/DatabaseExplorerUIsTest.java;
/cvs/db/test/unit/src/org/netbeans/api/db/explorer/support/DatabaseExplorerUIsTest.java,v  <--  DatabaseExplorerUIsTest.java
new revision: 1.4; previous revision: 1.3
done
Comment 3 David Vancouvering 2008-01-26 00:09:56 UTC
Note, I am now getting a different error, which may be hiding the original error.  Here is the (short) stack trace:

java.lang.ArrayIndexOutOfBoundsException: 0
        at org.netbeans.api.db.explorer.support.DatabaseExplorerUIsTest.initConnections(DatabaseExplorerUIsTest.java:62)
        at
org.netbeans.api.db.explorer.support.DatabaseExplorerUIsTest.testComboboxWithConnections(DatabaseExplorerUIsTest.java:84)

This appears to be happening because the test framework is not finding any registered JDBC drivers, even though
JDBC/ODBC is registered in the db module layer file.  This is the covered in issue 125140, so this means 125140 is
essentially blocking this bug from being fixed, so marking it as a blocker.
Comment 4 David Vancouvering 2008-02-26 17:40:03 UTC
I will re-run this test on Ubuntu, as the Macintosh is the only place where I get the ArrayIndexOutOfBounds exceptions.