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 200809091401) VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06 OS: Windows XP, 5.1, x86 User Comments: upon opening the new installed ide Stacktrace: org.netbeans.api.db.explorer.DatabaseException: connection already exists at org.netbeans.modules.db.explorer.infos.RootNodeInfo.addConnection(RootNodeInfo.java:238) at org.netbeans.api.db.explorer.ConnectionManager.addConnection(ConnectionManager.java:145) at org.netbeans.modules.visualweb.dataconnectivity.utils.SampleDatabaseCreator.registerDatabase(SampleDatabaseCreator.java:144) at org.netbeans.modules.visualweb.dataconnectivity.utils.SampleDatabaseCreator.createAll(SampleDatabaseCreator.java:94) at org.netbeans.modules.visualweb.dataconnectivity.naming.DerbyWaiter$2.run(DerbyWaiter.java:125) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
Created attachment 69488 [details] stacktrace
From the stacktrace, this looks like visualweb and MySQL is not involved. I had fixed this yesterday for another issue - db780f1b3de0
db780f1b3de0
The other issue mentioned was 146600
hi, this is not yet fix on dev IDE Build 200809101401 please see build http://statistics.netbeans.org/analytics/detail.do?id=109055
John, you've probably meant issue #145505, not #146600. I'm not sure, but this issue looks as duplicate of those. If it is you can close this issue as duplicate. I asked reporter to check those issue and if fix is confirmed, then this issue also should be fixed. alcmontejo, if John mark this issue as duplicate, can you then check this issue again with latest build to be sure that it is duplicate? If you are able to reproduce it, then please reopen it and we will work on it. Both issues looks very similar, but we need to be sure. Sorry for inconvenience.
While the first time starting, were settings from a previous version of NetBeans imported ? (There is a Yes / No dialog for importing settings that opens the first time only when starting NetBeans after an installation)
yes i am exporting the profile from 6.1
thanks for the info. I think I know what's going on
This error occurs in visualweb at startup when importing settings. If the user chooses to import settings then sample database connections from a previous release are added. As the IDE starts, visualweb also tries to add the sample connections. If it so happens both the import and adding occur about the same time then the "connection already exists" exception occurs. f863f07ac395 Maybe there's a better fix, but I think this will do for now.
alcmontejo, can you verify that this issue was really fixed?
im still running NetBeans IDE Build 200809101401, still this issue occur.
Integrated into 'main-golden', will be available in build *200809121401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f863f07ac395 User: John Baker <jbaker@netbeans.org> Log: #146732 [65cat] org.netbeans.api.db.explorer.DatabaseException: connection already exists
verifed fixed. thanks very much.