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.
Summary: | org.netbeans.api.db.explorer.DatabaseException: connection error; Excepci�n de E/S: Connection reset | ||
---|---|---|---|
Product: | db | Reporter: | billy_joel <billy_joel> |
Component: | Code | Assignee: | Jiri Rechtacek <jrechtacek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | bernd_zedv, crosati, emiddio, ionuion, misterm, mklaehn, rptmaestro, sgtgarcia, tnleeuw |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=152237 | ||
Issue Type: | DEFECT | Exception Reporter: | 152237 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace |
Description
billy_joel
2009-09-11 16:05:23 UTC
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 |