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 146732 - [65cat] org.netbeans.api.db.explorer.DatabaseException: connection already exists
Summary: [65cat] org.netbeans.api.db.explorer.DatabaseException: connection already ex...
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: John Baker
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-09-10 03:30 UTC by alcmontejo
Modified: 2008-09-13 04:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 109055


Attachments
stacktrace (811 bytes, text/plain)
2008-09-10 03:30 UTC, alcmontejo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alcmontejo 2008-09-10 03:30:35 UTC
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)
Comment 1 alcmontejo 2008-09-10 03:30:40 UTC
Created attachment 69488 [details]
stacktrace
Comment 2 John Baker 2008-09-10 13:08:13 UTC
From the stacktrace, this looks like visualweb and MySQL is not involved.

I had fixed this yesterday for another issue - db780f1b3de0
Comment 3 John Baker 2008-09-10 13:09:20 UTC
 db780f1b3de0
Comment 4 John Baker 2008-09-10 13:12:59 UTC
The other issue mentioned was 146600 
Comment 5 alcmontejo 2008-09-11 11:58:45 UTC
hi,

this is not yet fix on dev IDE Build 200809101401  please see 
build http://statistics.netbeans.org/analytics/detail.do?id=109055
Comment 6 Roman Mostyka 2008-09-11 14:57:33 UTC
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.
Comment 7 John Baker 2008-09-11 22:49:19 UTC
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)
Comment 8 alcmontejo 2008-09-12 00:31:02 UTC
yes i am exporting the profile from 6.1
Comment 9 John Baker 2008-09-12 00:37:55 UTC
thanks for the info.  I think I know what's going on
Comment 10 John Baker 2008-09-12 02:57:32 UTC
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.
Comment 11 Roman Mostyka 2008-09-12 12:19:05 UTC
alcmontejo, can you verify that this issue was really fixed?
Comment 12 alcmontejo 2008-09-12 12:24:29 UTC
im still running NetBeans IDE Build 200809101401, still this issue occur. 
Comment 13 Quality Engineering 2008-09-12 17:36:10 UTC
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
Comment 14 alcmontejo 2008-09-13 04:08:08 UTC
verifed fixed. thanks very much.