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 222288 - java.security.AccessControlException: access denied ("java.awt.AWTPermission" "listenToAllAWTEvents")
Summary: java.security.AccessControlException: access denied ("java.awt.AWTPermission"...
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 217048 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-16 16:32 UTC by Chiana
Modified: 2012-11-26 11:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 195277


Attachments
stacktrace (1.04 KB, text/plain)
2012-11-16 16:32 UTC, Chiana
Details
stacktrace (1.04 KB, text/plain)
2012-11-21 03:16 UTC, Chiana
Details
stacktrace (1.04 KB, text/plain)
2012-11-21 03:25 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2012-11-16 16:32:08 UTC
Build: NetBeans IDE Dev (Build 201211160001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 7

User Comments:
Chiana: Is this a new problem as there are no pre-filled text in the summary field? Was checking if issue 217048 was fixed, either this is a new issue or the fix didn't make it into this build...




Stacktrace: 
java.security.AccessControlException: access denied ("java.awt.AWTPermission" "listenToAllAWTEvents")
   at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
   at java.security.AccessController.checkPermission(AccessController.java:560)
   at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
   at java.awt.Toolkit.addAWTEventListener(Toolkit.java:2050)
   at org.netbeans.modules.debugger.jpda.visual.remote.RemoteAWTService.startHierarchyListener(RemoteAWTService.java:100)
   at java.awt.EventQueue.getNextEvent(EventQueue.java:523)
Comment 1 Chiana 2012-11-16 16:32:10 UTC
Created attachment 127950 [details]
stacktrace
Comment 2 Martin Entlicher 2012-11-19 14:51:50 UTC
*** Bug 217048 has been marked as a duplicate of this bug. ***
Comment 3 Martin Entlicher 2012-11-19 14:53:27 UTC
Accurding to issue #217048, the debugger does not continue after this failure.
We need to assure that this case is handled and debugger continues.
Comment 4 Martin Entlicher 2012-11-20 16:33:13 UTC
This should be finally fixed by changeset:   240494:d5caaffba3bb
http://hg.netbeans.org/core-main/rev/d5caaffba3bb
Comment 5 Chiana 2012-11-21 03:16:38 UTC
Created attachment 128178 [details]
stacktrace

Was testing for fixes of issue #222077 and #222288.
No go it seems.
Comment 6 Chiana 2012-11-21 03:25:38 UTC
Created attachment 128179 [details]
stacktrace

Was trying again... Just to verify
Comment 7 Quality Engineering 2012-11-21 13:39:32 UTC
Integrated into 'main-golden', will be available in build *201211211016* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d5caaffba3bb
User: mentlicher@netbeans.org
Log: #222288: Check for SecurityException, that can be thrown from Toolkit.addAWTEventListener().
Comment 8 Martin Entlicher 2012-11-21 14:06:42 UTC
Chiana, it was not yet propagated into a build when you tried.
Always please wait for the automatic comment about availability in a dev build.
It "will be available in build *201211211016*". Thanks.
Comment 9 Chiana 2012-11-23 08:38:27 UTC
Well, I was testing for #222077 that was in the build, unfortunatley I can't be sure that one is fixed either until the next build, and that one is a few days overdue (Hudson on vacation?)
Comment 10 Chiana 2012-11-26 11:55:28 UTC
Seems OK now in 20121126