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 204182 - Lookup.lookup(NotificationDisplayer.class) has to return the same instance NotificationDisplayer
Summary: Lookup.lookup(NotificationDisplayer.class) has to return the same instance No...
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Slowness Detector (show other bugs)
Version: 7.1
Hardware: PC All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 203994 204196 204203 204363 204400 204575 204609 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-25 05:08 UTC by marti1125
Modified: 2011-11-04 16:33 UTC (History)
14 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (1.82 KB, text/plain)
2011-11-01 10:17 UTC, Jiri Skrivanek
Details
stacktrace (1.82 KB, text/plain)
2011-11-01 15:51 UTC, asenk
Details
stacktrace (1.41 KB, text/plain)
2011-11-02 10:32 UTC, tim_sa
Details
stacktrace (1.41 KB, text/plain)
2011-11-02 10:33 UTC, tim_sa
Details
stacktrace (1.82 KB, text/plain)
2011-11-02 13:48 UTC, aldobrucale
Details
stacktrace (5.25 KB, text/plain)
2011-11-03 10:33 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marti1125 2011-10-25 05:08:23 UTC
[ BUILD # : 201110240600 ]
[ JDK VERSION : 1.6.27 ]

 netbeans 7.1  version all

tools > plugin > tabs installed > active installed



A org.openide.util.RequestProcessor$SlowItem exception has occurred.

java.lang.AssertionError: Lookup.lookup(NotificationDisplayer.class) has to
return the same instance NotificationDisplayer.
	at
org.openide.awt.NotificationDisplayer.getDefault(NotificationDisplayer.java:95)
	at
org.netbeans.modules.uihandler.SlownessReporter$NotifySnapshot.<init>(SlownessRe
porter.java:158)
	at
org.netbeans.modules.uihandler.SlownessReporter.notifySlowness(SlownessReporter.
java:141)
	at org.netbeans.modules.uihandler.UIHandler.publish(UIHandler.java:117)
	at java.util.logging.Logger.log(Logger.java:481)
	at java.util.logging.Logger.doLog(Logger.java:503)
	at java.util.logging.Logger.log(Logger.java:567)
	at org.netbeans.core.TimableEventQueue$1R.run(TimableEventQueue.java:253)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:428)
	at org.netbeans.core.TimableEventQueue.report(TimableEventQueue.java:262)
	at org.netbeans.core.TimableEventQueue.done(TimableEventQueue.java:194)
	at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:165)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
	at java.awt.Dialog$1.run(Dialog.java:1046)
	at java.awt.Dialog$3.run(Dialog.java:1098)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1096)
	at
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1059)
	at
org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1093)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1081)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:127)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
	at org.openide.util.Mutex.readAccess(Mutex.java:271)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1066)
	at java.awt.Component.show(Component.java:1584)
	at java.awt.Component.setVisible(Component.java:1536)
	at java.awt.Window.setVisible(Window.java:842)
	at java.awt.Dialog.setVisible(Dialog.java:986)
	at
org.netbeans.modules.autoupdate.ui.wizards.UninstallUnitWizard.invokeWizardImpl(
UninstallUnitWizard.java:94)
	at
org.netbeans.modules.autoupdate.ui.wizards.UninstallUnitWizard.invokeWizard(Unin
stallUnitWizard.java:72)
	at
org.netbeans.modules.autoupdate.ui.UnitTab$ActivateAction.performerImpl(UnitTab.
java:1389)
	at
org.netbeans.modules.autoupdate.ui.UnitTab$TabAction.actionPerformed(UnitTab.jav
a:1066)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:236)
	at java.awt.Component.processMouseEvent(Component.java:6288)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6053)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4651)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContex
t.java:87)
	at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContex
t.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:616)
	at java.awt.EventQueue$2.run(EventQueue.java:614)
	at java.security.AccessController.doPrivileged(Native Method)
	at
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContex
t.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
	at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:162)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174
)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Marian Mirilovic 2011-10-25 15:15:16 UTC
*** Bug 204196 has been marked as a duplicate of this bug. ***
Comment 2 Jaroslav Tulach 2011-10-31 08:27:55 UTC
*** Bug 203994 has been marked as a duplicate of this bug. ***
Comment 3 Jiri Skrivanek 2011-11-01 10:17:53 UTC
Created attachment 112647 [details]
stacktrace

- open o.n.core project
Comment 4 Jiri Rechtacek 2011-11-01 10:49:09 UTC
*** Bug 204211 has been marked as a duplicate of this bug. ***
Comment 5 asenk 2011-11-01 15:51:17 UTC
Created attachment 112688 [details]
stacktrace

1. Start IDe with clean userdir, create new J2SE project, with JFrame Form
2. Click on Service tab, and conecco to jdbc:derby...[app on APP]
3.Hold CTRL and Drag and drop some table int Frame -New table is created
4. Add JTable into Form from Pallete
5. Drag and Drop other database table into JTable
6. This exception is thrown.
Comment 6 tim_sa 2011-11-02 10:32:32 UTC
Created attachment 112724 [details]
stacktrace

opened a project
Comment 7 tim_sa 2011-11-02 10:33:16 UTC
Created attachment 112725 [details]
stacktrace
Comment 8 Stanislav Aubrecht 2011-11-02 11:17:26 UTC
*** Bug 204575 has been marked as a duplicate of this bug. ***
Comment 9 aldobrucale 2011-11-02 13:48:18 UTC
Created attachment 112741 [details]
stacktrace

Opening project in nb just started with clean userdir
Comment 10 _ gtzabari 2011-11-02 15:38:59 UTC
Reproduced in Windows7 32-bit as well. All I did was install a new version of Netbeans (empty userdir) and open an existing project. The exception was then thrown.
Comment 11 Stanislav Aubrecht 2011-11-03 08:58:27 UTC
*** Bug 204609 has been marked as a duplicate of this bug. ***
Comment 12 Sergey Petrov 2011-11-03 10:33:23 UTC
Created attachment 112765 [details]
stacktrace

looks like java project activation issue (may be when ide is somewhere at backround)
Comment 13 Jaroslav Tulach 2011-11-03 11:08:04 UTC
The assert in NotificationDisplayer is wrong. It is normal that instances in lookup can garbage collect when nobody needs them anymore. Reopening bug 203326, closing this one as invalid.
Comment 14 Stanislav Aubrecht 2011-11-03 14:15:29 UTC
*** Bug 204363 has been marked as a duplicate of this bug. ***
Comment 15 Jaroslav Tulach 2011-11-04 07:22:03 UTC
*** Bug 204400 has been marked as a duplicate of this bug. ***
Comment 16 Jaroslav Tulach 2011-11-04 16:33:39 UTC
*** Bug 204203 has been marked as a duplicate of this bug. ***