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.
Build: NetBeans IDE 6.7.1 (Build 200907230233) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: setdosa: I connected to the oracle database using jdbc, looked at data in a couple of tables and disconnected rptmaestro: Disconnected from oracle database connection after restoring network connection. billy_joel: I was trying to close a Connection jkak: Tryin to disconnect from a PROGRESS 9.1B database jrechtacek: While disconnecting Orcl XE connection, problably a broken network. Stacktrace: org.netbeans.api.db.explorer.DatabaseException: connection error; Excepci�n de E/S: Connection reset at org.netbeans.modules.db.explorer.DatabaseConnector.performDisconnect(DatabaseConnector.java:196) at org.netbeans.modules.db.explorer.DatabaseConnection.disconnect(DatabaseConnection.java:933) at org.netbeans.modules.db.explorer.action.DisconnectAction$1.run(DisconnectAction.java:97) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Created attachment 87510 [details] stacktrace
This issue already has 6 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=152237
Build: NetBeans IDE 6.7.1 (Build 200907230233) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: org.netbeans.api.db.explorer.DatabaseException: connection error; Connection failure. sendMethodRequestNoFlush(...). at org.netbeans.modules.db.explorer.DatabaseConnector.performDisconnect(DatabaseConnector.java:196) at org.netbeans.modules.db.explorer.DatabaseConnection.disconnect(DatabaseConnection.java:933) at org.netbeans.modules.db.explorer.action.DisconnectAction$1.run(DisconnectAction.java:97) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Created attachment 88867 [details] stacktrace
This issue already has 7 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=152237
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=152237
Created attachment 101116 [details] stacktrace
Created attachment 101117 [details] stacktrace
I'm getting that exception in my NBPlatform-Application, too. I think I was able to reproduce it. The exception always occures with: // CODE START final org.netbeans.api.db.explorer.DatabaseConnection dbCon; // this is an initialized but not connected connection. SwingUtilities.invokeAndWait(new Runnable() { public void run() { ConnectionManager.getDefault().showConnectionDialog(dbCon); } }); Connection jdbcConnection = dbConnection.getJDBCConnection(); // use the jdbcConnection for a select distinct statement. // CODE END When I close the NBPlatform-App the exception occures: org.netbeans.api.db.explorer.DatabaseException: connection error; Eine Verbindung kann nicht beendet werden, solange noch eine Transaktion aktiv ist. at org.netbeans.modules.db.explorer.DatabaseConnector.performDisconnect(DatabaseConnector.java:186) at org.netbeans.modules.db.explorer.DatabaseConnection.disconnect(DatabaseConnection.java:1050) at org.netbeans.modules.db.DatabaseModule.close(DatabaseModule.java:67) ... It seems uppon 'ConnectionManager.getDefault().showConnectionDialog(dbCon);' a SQL is processed which fetches some MetaData-Information and I mustn't use the 'Connection'-Object until this request finishs. When I do a 'Thread.sleep(100)' before I use the 'Connection'-Object no Exception is thrown when the database is disconnected.
Forgot to mention: NetBeans 6.9.1, Windows 7 64Bit, JDK 6u23 32Bit
j.boesl, thanks a lot for test-case. It can help me to fixing this problem.
Better handling this problem - core-main/rev/d9efe3328953 j.boesl, your test-case didn't reproduce it for me. If you problem persists, file new issue with more detail test-case, a sample module showing the problem will be best. Thanks
Integrated into 'main-golden', will be available in build *201103310400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d9efe3328953 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #172053: DatabaseException: connection error; Excepci?n de E/S: Connection reset