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 168792 - Constant AccessControlExceptions
Summary: Constant AccessControlExceptions
Status: CLOSED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@performance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 06:54 UTC by _ tboudreau
Modified: 2011-05-25 11:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (33.79 KB, text/plain)
2009-08-04 05:20 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2009-07-20 06:54:33 UTC
Current trunk builds are nearly unusable because of this problem - whenever a dialog is open, one of these is thrown
every few seconds.

Perhaps it has something to do with the secondary event queue pushing done when you show a modal dialog not having
permission to play with threads?

java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
	at java.security.AccessController.checkPermission(AccessController.java:427)
	at java.util.concurrent.ThreadPoolExecutor.shutdown(ThreadPoolExecutor.java:893)
	at java.util.concurrent.ScheduledThreadPoolExecutor.shutdown(ScheduledThreadPoolExecutor.java:455)
	at java.util.concurrent.Executors$DelegatedExecutorService.shutdown(Executors.java:594)
	at org.netbeans.modules.profiler.actions.SelfSamplerAction$Controller.actionPerformed(SelfSamplerAction.java:193)
	at org.netbeans.core.TimableEventQueue.done(TimableEventQueue.java:154)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:119)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:985)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1019)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1007)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:115)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
	at org.openide.util.Mutex.readAccess(Mutex.java:268)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:992)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:495)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:362)
[catch] at org.netbeans.modules.project.ui.actions.NewProject$2.run(NewProject.java:139)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:117)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jaroslav Tulach 2009-07-23 14:13:45 UTC
I have never seen anything like this. Can you provide more info or better debug your problem?
Comment 2 _ tboudreau 2009-07-23 19:19:04 UTC
Simply build from source on windows XP and run and invoke any action that opens a dialog and you will see this thrown
every second or so.
Comment 3 Jaroslav Tulach 2009-07-26 20:21:39 UTC
Imho this has to be some problem on your side. I am CCing guys who from time to time may do a build on Windows, but I 
have not heard a single complaint from them.
Comment 4 _ tboudreau 2009-08-04 05:20:09 UTC
Created attachment 85739 [details]
Log file
Comment 5 _ tboudreau 2009-08-04 06:19:29 UTC
Appears to happen when running an nbsrc module from the run menu in the IDE, but not on the command line.  ???