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 193017 - [70cat] ClassCastException: org.openide.windows.DummyWindowManager$R cannot be cast to org.netbeans.core.windows.RegistryImpl
Summary: [70cat] ClassCastException: org.openide.windows.DummyWindowManager$R cannot b...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 195556 195558 197648 212317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-07 23:26 UTC by mperezma
Modified: 2012-05-16 11:21 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167358


Attachments
stacktrace (4.37 KB, text/plain)
2010-12-07 23:26 UTC, mperezma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mperezma 2010-12-07 23:26:50 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Linux

User Comments:
YangombiUmpakati: just started netbeans 6.9, 6.8 are running too on background

GUEST: update scala plugins and wait beside

GUEST: Installing Selenium plugin for PHP.

mperezma: It just finished installation of nbandroid plugin (http://kenai.com/downloads/nbandroid/updates.xml) and threw this exception, with "Installation completed successfully" in the back.

GUEST: i was trying to create a java fx project , But i select option2 and click on next then come back and select1 and click on next. Then this error page has came.




Stacktrace: 
java.lang.ClassCastException: org.openide.windows.DummyWindowManager$R cannot be cast to org.netbeans.core.windows.RegistryImpl
   at org.netbeans.core.windows.WindowManagerImpl.notifyRegistryTopComponentActivated(WindowManagerImpl.java:992)
   at org.netbeans.core.windows.Central.addModeClosedTopComponent(Central.java:868)
   at org.netbeans.core.windows.ModeImpl.addClosedTopComponent(ModeImpl.java:326)
   at org.netbeans.core.windows.PersistenceHandler.topComponentRefConfigAdded(PersistenceHandler.java:856)
   at org.netbeans.core.windows.persistence.ModuleChangeHandler$3.run(ModuleChangeHandler.java:457)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 1 mperezma 2010-12-07 23:26:54 UTC
Created attachment 103705 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2011-02-17 11:35:20 UTC
*** Bug 195558 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Aubrecht 2011-02-23 10:56:27 UTC
*** Bug 195556 has been marked as a duplicate of this bug. ***
Comment 4 Stanislav Aubrecht 2011-02-23 10:57:56 UTC
lookup attempts to create new instance of windowmanagerimpl even though such an instance already exists
Comment 5 Jaroslav Tulach 2011-02-26 16:05:47 UTC
works for me, but I am adding more logging: ergonomics#22a70c45d2f7
Comment 6 Quality Engineering 2011-02-28 05:17:13 UTC
Integrated into 'main-golden', will be available in build *201102280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/22a70c45d2f7
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #193017: Recording who creates the WindowManagerImpl to provide detailed information when second creation fails
Comment 7 Stanislav Aubrecht 2012-04-04 09:22:18 UTC
*** Bug 197648 has been marked as a duplicate of this bug. ***
Comment 8 Marian Mirilovic 2012-05-13 20:48:14 UTC
Ok, so just to summarize duplicates :
Bug 195558 , Bug 195556 , Bug 197648 , Bug 201069 , Bug 203924 , Bug 203923 , Bug 212317

beside that ~ 100 duplicates in ER ... also you added logging some time ago, so I would expect at least some evaluation
Comment 9 Marian Mirilovic 2012-05-13 20:48:37 UTC
*** Bug 212317 has been marked as a duplicate of this bug. ***
Comment 10 Jaroslav Tulach 2012-05-15 09:20:03 UTC
I've refactored the code a bit in ergonomics#0dbe316af8ee

If anyone can reproduce reliably, please run with 
-J-Dorg.openide.util.lookup.MetaInfServicesLookup.level=FINE
logging to provide more insight into what is going on.
Comment 11 Quality Engineering 2012-05-16 11:21:45 UTC
Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0dbe316af8ee
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #193017: Cache separated into own 'monitor' class. Usage of HashSet eliminated.