The DefaultOutlineCellRenderer is making a check for the System property, nb.useSwingHtmlRendering, which causes an AccessControlException from an unsigned applet. Out application is successfully using an older version of the outline jar. The Manifest inside says the version is:
Upon attempting to upgrade to the version of the jar packaged with Netbeans 7.0.1, the AccessControlException began happening. It also happens with the jar from version 7.1 as well.
The following is the stacktrace from a simple unsigned applet example (the code does nothing more than instantiate the DefaultOutlineCellRenderer):
Exception in thread "thread applet-PropertyTestApplet.class-1" java.lang.ExceptionInInitializerError
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission nb.useSwingHtmlRendering read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
... 3 more
JVM version being used:
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
It's fixed by changeset: 208605:d7a5471edf3f
I'm making this a candidate for 7.1 patch.
Integrated into 'main-golden'
Log: #206096 Catch the SecurityException that can be thrown while reading system properties, or accessing class loaders.
Just catch (SecurityException se) is added, it should not cause any problem in patch1.
Fix transplanted to release71_fixes branch: changeset: 218586:7616e1f4dc8d
Increased specification version by changeset: 218587:50816e61e6b9
Martine, how can I reliably reproduce the problem in 7.1? Thanks.
Well, I didn't try to reproduce the problem. romeom, could you please verify that it works fine for you now.
It's not possible to verify this inside NetBeans IDE. You'd have to take the platform/modules/org-netbeans-swing-outline.jar and create some applet application, that uses the Outline.
I have not encountered any such exception during my 7.1.1 testing thus marking bug as verified.