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 12796 - java.security.AccessControlException
Summary: java.security.AccessControlException
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC OS/2
: P3 blocker (vote)
Assignee: anovak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-13 00:28 UTC by Peter Schumacher
Modified: 2008-12-22 21:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Schumacher 2001-06-13 00:28:53 UTC
I get 2 AccessControlExceptions during startup of the ide
1)
java.security.AccessControlException: access denied 
(java.net.NetPermission setDefaultAuthenticator)


2)
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission modifyThread)

Then the startup process hangs, the ide doesn't show up.

-- System info 
-------------------------------------------------------
  Product Version       = NetBeans IDE 3.2 (Build 39)
  IDE Versioning        = IDE/1 spec=1.2.1 impl=39
  Operating System      = OS/2 version 20.45 running on x86
  Java; VM; Vendor      = 1.3.0; Classic VM 1.3.0; IBM 
Corporation
  Java Home             = E:\java13\jre
  System Locale         = de_DE
  JIT                   = jitc
  Home Dir; Current Dir = E:\JAVA13\JRE; 
D:\JAVA\netbeans\bin
  IDE Install; User Dir = D:\Java\netbeans; 
D:\Java\netbeans_userdata
  CLASSPATH             = 
D:\Java\netbeans;;D:\Java\netbeans_userdata\.....


Additional info: Using netbeans 3.2 under windows98 with
sun JDK1.3.1 works.
However: i have also tried Forte4J 3.0 ea and there
the same 2 exceptions and hanging startup process occur 
both under OS/2 and win98.
Comment 1 Jan Zajicek 2001-06-13 11:17:19 UTC
Can you please provide the full stacktraces of mentioned exceptions, thanks.
Comment 2 Peter Schumacher 2001-06-13 20:48:16 UTC
The Stacktraces of these two Exceptions are:
1)------------------------------------------
java.security.AccessControlException: access denied 
(java.net.NetPermission setDefaultAuthenticator)
        at java.lang.Throwable.<init>(Throwable.java:96)
        at java.lang.Exception.<init>(Exception.java:44)
        at
java.lang.RuntimeException.<init>(RuntimeException.java:49)
        at 
java.lang.SecurityException.<init>(SecurityException.java:4
1)
        at 
java.security.AccessControlException.<init>(AccessControlEx
ception.java:59)
        at 
java.security.AccessControlContext.checkPermission(AccessCo
ntrolContext.java:279)
        at 
java.security.AccessController.checkPermission(AccessContro
ller.java:405)
        at 
java.lang.SecurityManager.checkPermission(SecurityManager.j
ava:551)
        at 
org.netbeans.core.execution.TopSecurityManager.checkPermiss
ion(TopSecurityManager.java:255)
        at 
java.net.Authenticator.setDefault(Authenticator.java:96)
        at org.netbeans.core.NonGui.run(NonGui.java:451)
        at org.netbeans.core.Main.run(Main.java:187)
        at
org.openide.TopManager.initializeTopManager(TopManager.java
:120)
        at 
org.openide.TopManager.getDefault(TopManager.java:81)
        at org.netbeans.core.Main.main(Main.java:274)
        at 
org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90
)
        at java.lang.Thread.run(Thread.java:498)

2)-------------------------------------------------
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission
 modifyThread)
        at java.lang.Throwable.<init>(Throwable.java:96)
        at java.lang.Exception.<init>(Exception.java:44)
        at 
java.lang.RuntimeException.<init>(RuntimeException.java:49)
        at 
java.lang.SecurityException.<init>(SecurityException.java:4
1)
        at 
java.security.AccessControlException.<init>(AccessControlEx
ception.java:59)
        at 
java.security.AccessControlContext.checkPermission(AccessCo
ntrolContext.java:279)
        at 
java.security.AccessController.checkPermission(AccessContro
ller.java:405)
        at 
java.lang.SecurityManager.checkPermission(SecurityManager.j
ava:551)
        at 
org.netbeans.core.execution.TopSecurityManager.checkPermiss
ion(TopSecurityManager.java:255)
        at 
java.lang.SecurityManager.checkAccess(SecurityManager.java:
683)
        at java.lang.Thread.checkAccess(Thread.java:1067)
        at java.lang.Thread.setPriority(Thread.java:815)
        at 
org.openide.util.RequestProcessor$ProcessorThread.run(Reque
stProcessor.java:613)

Comment 3 anovak 2001-06-14 07:16:42 UTC
It seems that there are not needed permissions. So either ide.policy is broken -
install it again, or you modified the startup script. In such a case you must
grant appropriate permissions (AllPermission) in ide.policy.

Try to run NB with -Djava.security.debug=access,failure. You will see which
ProtectionDomain fails. You will also see a URL from which classes without
permissions were loaded.
Comment 4 Peter Schumacher 2001-06-15 00:13:52 UTC
Sorry for the inconvenience.
I completely reinstalled Netbeans from the Zip-File.
Modified runideos2.cmd (which has a minor bug) and
now it works just fine.