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 212317 - ClassCastException: org.openide.windows.DummyWindowManager$R cannot be cast to org.netbeans.core.windows.RegistryImpl
Summary: ClassCastException: org.openide.windows.DummyWindowManager$R cannot be cast t...
Status: RESOLVED DUPLICATE of bug 193017
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-10 14:03 UTC by Vladimir Riha
Modified: 2012-05-13 20:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187838


Attachments
stacktrace (3.77 KB, text/plain)
2012-05-10 14:03 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-05-10 14:03:33 UTC
This bug was originally marked as duplicate of bug 193017, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201205100400)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Linux

User Comments:
vriha: activating PHP module (IDE started with fresh user and cache dir)

jskrivanek: Creating sample project from new project wizard.




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:1129)
   at org.netbeans.core.windows.Central.addModeClosedTopComponent(Central.java:881)
   at org.netbeans.core.windows.ModeImpl.addClosedTopComponent(ModeImpl.java:366)
   at org.netbeans.core.windows.PersistenceHandler.topComponentRefConfigAdded(PersistenceHandler.java:914)
   at org.netbeans.core.windows.persistence.ModuleChangeHandler$3.run(ModuleChangeHandler.java:457)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
Comment 1 Vladimir Riha 2012-05-10 14:03:39 UTC
Created attachment 119291 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2012-05-10 14:13:17 UTC
Lookup.getDefault().loookup() attempts to create a new instance of WindowManagerImp even though such instance has been created already.

Jardo, please evaluate, thanks.
Comment 3 Jaroslav Tulach 2012-05-13 18:37:08 UTC
What exactly should I evaluate? Something that happened once in Window system and nobody knows how to reproduce? Sorry, I cannot.
Comment 4 Marian Mirilovic 2012-05-13 20:48:37 UTC

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