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 Dev (Build 200810071401) VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21 OS: Windows XP, 5.1, x86 Stacktrace: java.lang.IllegalStateException: This connection is not added to the ConnectionManager. at org.netbeans.api.db.explorer.ConnectionManager.showConnectionDialog(ConnectionManager.java:353) at org.netbeans.modules.db.dataview.meta.DBConnectionFactory$1.run(DBConnectionFactory.java:99) at org.netbeans.modules.db.dataview.meta.DBConnectionFactory$1.run(DBConnectionFactory.java:98) at org.openide.util.Mutex.doEventAccess(Mutex.java:1355) at org.openide.util.Mutex.readAccess(Mutex.java:268) at org.netbeans.modules.db.dataview.meta.DBConnectionFactory.showConnectionDialog(DBConnectionFactory.java:96)
Created attachment 71333 [details] stacktrace
rajivderas does this happen everytime? Is there a workaround? Marking TM as future for now.
Looks like a DB Explorer issue.
what the exception means is that the connection dialog doesn't have the parameters needed to determine the connection to be added. ConnectionManager showConnectionDialog(DC) is correct. I think dataview should add some logic to make sure the connection parameters are available before posting the Connection dialog. in DBConnectionFactory.getConnection(DC), before posting the show connection dialog, dbconn is just passed in. dbconn could even be null. At least the dbconn name should be valid. rajivderas, before getting this exception did you change a connection's parameters ?
Dataview get the connection based on the connection selected in the editor. I am not sure what need to be fixed in dataview.
>>>rajivderas, before getting this exception did you change a connection's parameters ? Well i deleted the connection from db explorer and right clicked on the sql results grid and clicked insert record
Then what is expected? we should sow some message instead of exception?
>>>ahimanikya Yes your right
http://hg.netbeans.org/main/rev/91408cd31155
rajivderas, can you verify this issue, please?
Integrated into 'main-golden', will be available in build *200810100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/91408cd31155 User: ahimanikya@netbeans.org Log: Issue #149451 IllegalStateException: This connection is not added #148338 org.netbeans.modules.db.dataview.meta.DBException...
>>>romanmostyka Still reproduceble in Dev (Build 200810091401) what should i do?
You need to use the 1010 build see previous comment: "Integrated into 'main-golden', will be available in build *200810100201*
>>>You need to use the 1010 build oh! ok
>>>romanmostyka verified with the following Product Version: NetBeans IDE Dev (Build 200810100201) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Rajiv Perera\.netbeans\dev
Integrated into 'main-golden', will be available in build *200810181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3190b7b55d18 User: ahimanikya@netbeans.org Log: Issue #149451 Added logging the strack trace as suggested by David.