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.
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.
Can you please provide the full stacktraces of mentioned exceptions, thanks.
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)
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.
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.