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 239989 - java.lang.IllegalStateException: This connection is not added to the ConnectionManager.
Summary: java.lang.IllegalStateException: This connection is not added to the Connecti...
Status: RESOLVED DUPLICATE of bug 237348
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-04 19:47 UTC by everflux
Modified: 2014-01-16 13:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2014-01-04 19:47:42 UTC
Used different credentials for a saved database connection - user/password changed.

SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.spi.editor.completion.support.AsyncCompletionTask
java.lang.IllegalStateException: This connection is not added to the ConnectionManager.
        at org.netbeans.api.db.explorer.DatabaseConnection.getJDBCConnection(DatabaseConnection.java:337)
        at org.netbeans.modules.db.explorer.metadata.MetadataModelManager$1.run(MetadataModelManager.java:101)
        at org.netbeans.modules.db.explorer.metadata.MetadataModelManager$1.run(MetadataModelManager.java:98)
        at org.openide.util.Mutex$1AWTWorker.run(Mutex.java:1386)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
        at java.awt.EventQueue.access$400(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:697)
        at java.awt.EventQueue$3.run(EventQueue.java:691)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 Libor Fischmeistr 2014-01-08 14:34:36 UTC
Hello, thank you for the report. Do you have steps to reproduce?
Comment 2 everflux 2014-01-08 15:25:41 UTC
As far as I remember: I have a saved connection with username 'root' and some password.
This changed on the db, so when trying to connect (invoked by ctrl-enter) a dialog shows the permission denied problem.
In that dialog I change the credentials to the new credentials that work.

Exception appears.
Comment 3 Libor Fischmeistr 2014-01-16 13:57:59 UTC

*** This bug has been marked as a duplicate of bug 237348 ***