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 159906 - java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
Summary: java.security.AccessControlException: access denied (java.lang.RuntimePermiss...
Status: VERIFIED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Chat (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P2 blocker (vote)
Assignee: Jan Becicka
URL: http://statistics.netbeans.org/except...
Keywords:
: 164508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-09 13:28 UTC by Jaromir Uhrik
Modified: 2009-08-11 16:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 147343


Attachments
stacktrace (1.03 KB, text/plain)
2009-03-09 13:28 UTC, Jaromir Uhrik
Details
stacktrace (1.03 KB, text/plain)
2009-03-12 09:33 UTC, Jaromir Uhrik
Details
stacktrace (1.03 KB, text/plain)
2009-04-08 08:59 UTC, Jaromir Uhrik
Details
stacktrace (1.03 KB, text/plain)
2009-04-10 12:43 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2009-03-09 13:28:31 UTC
Build: NetBeans IDE Dev (Build 090309)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments:
juhrik: -Logged in to testkenai
-Pushed main menu Team>Kenai>Logout
-->> The exception dialog appears



Stacktrace: 
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.Executors$DelegatedExecutorService.shutdown(Executors.java:594)
        at org.jivesoftware.smack.PacketReader.shutdown(PacketReader.java:191)
        at org.jivesoftware.smack.XMPPConnection.shutdown(XMPPConnection.java:570)
Comment 1 Jaromir Uhrik 2009-03-09 13:28:39 UTC
Created attachment 77908 [details]
stacktrace
Comment 2 Jaromir Uhrik 2009-03-12 09:33:36 UTC
Build: NetBeans IDE Dev (Build cdev-365-on-090312)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 
When pushing main menu item Team>Kenai>Logout thee exception appears.

Stacktrace: 
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.Executors$DelegatedExecutorService.shutdown(Executors.java:594)
        at org.jivesoftware.smack.PacketReader.shutdown(PacketReader.java:191)
        at org.jivesoftware.smack.XMPPConnection.shutdown(XMPPConnection.java:570)
Comment 3 Jaromir Uhrik 2009-03-12 09:33:40 UTC
Created attachment 78100 [details]
stacktrace
Comment 4 Jan Becicka 2009-03-20 07:01:32 UTC
Seems to be harmless
Comment 5 Jaromir Uhrik 2009-04-08 08:59:10 UTC
Build: NetBeans IDE Dev (Build 200904080201)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 
Logged out from testkenai and the exception appeared.

Stacktrace: 
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.Executors$DelegatedExecutorService.shutdown(Executors.java:594)
        at org.jivesoftware.smack.PacketReader.shutdown(PacketReader.java:191)
        at org.jivesoftware.smack.XMPPConnection.shutdown(XMPPConnection.java:570)
Comment 6 Jaromir Uhrik 2009-04-08 08:59:13 UTC
Created attachment 79701 [details]
stacktrace
Comment 7 Jaromir Uhrik 2009-04-10 12:43:44 UTC
Build: NetBeans IDE Dev (Build 200904090200)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

User Comments: 
When I log out from testkenai I get this exception.

Stacktrace: 
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.Executors$DelegatedExecutorService.shutdown(Executors.java:594)
        at org.jivesoftware.smack.PacketReader.shutdown(PacketReader.java:191)
        at org.jivesoftware.smack.XMPPConnection.shutdown(XMPPConnection.java:570)
Comment 8 Jaromir Uhrik 2009-04-10 12:43:48 UTC
Created attachment 79878 [details]
stacktrace
Comment 9 Jaromir Uhrik 2009-04-15 15:10:12 UTC
This exception appears always when I log out from kenai. It would be great if it is fixed because after logout there is
still "logout" item in menu Team|Kenai instead of "login".
Comment 10 Jan Becicka 2009-04-22 10:33:21 UTC
works for me
Comment 11 Jaromir Uhrik 2009-04-27 16:05:30 UTC
It is not reproducible on my win XP. But I can still reproduce on Mac in the following build:
Product Version: NetBeans IDE Dev (Build 200904270201)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)
Comment 12 Jaromir Uhrik 2009-05-06 17:57:39 UTC
I can still reproduce on Mac in build of 2008/05/06. Since this issue is annoying and appears after kenai logout (which
is main menu action - so that it is high visible case) I am increasing the priority to P2.
Comment 13 Jan Becicka 2009-05-07 07:36:37 UTC
Jardo, do you have idea? It looks like some problem with security permissions. Where are the Nb security properties
stored? Thanks.
Comment 14 Jan Becicka 2009-05-07 08:11:01 UTC
Jaro, by the way, which JDK do you use? Maybe this is reproducible with JDK 1.5, but not with 1.6.
Comment 15 Jan Becicka 2009-05-07 08:18:21 UTC
*** Issue 164508 has been marked as a duplicate of this issue. ***
Comment 16 Jan Becicka 2009-05-12 09:09:38 UTC
I did workaround in collab module: I moved shutdown() from RequestProcessor thread.
Anyway I'm not sure, that the bug was in collab module. It can be in openide or JDK...

755ba2bc8366
Comment 17 Quality Engineering 2009-05-13 07:40:21 UTC
Integrated into 'main-golden', will be available in build *200905130201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/755ba2bc8366
User: Jan Becicka <jbecicka@netbeans.org>
Log: #159906: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
Comment 18 Jaromir Uhrik 2009-08-11 16:55:37 UTC
Verified in the following build and also in many former builds:
Product Version: NetBeans IDE Dev (Build 200908110201)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)