AccessControlException - Mac OSX Snow Leopard

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

AccessControlException - Mac OSX Snow Leopard

Postby smiller » Tue Aug 09, 2011 10:24 am

I am trying to call com.jidesoft.plaf.LookAndFeelFactory.installDefaultLookAndFeelAndExtension in order to ensure the proper look and feel extensions are in place. This was all working fine in earlier Mac OSX versions but Apple has deprecated and removed the old look and feel (apple.laf) from the platform and instead changed to a package com.apple.laf. The JIDE call to set the default look and feel appears to still always try the old apple.laf so I get the following exception. I have tried several things to work around this but nothing gives me the desired behaviour. I was able to get it to work if I call UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()) first before the install method but everything looks like the default Metal look and feel then which I don't want here. I am trying to get native looking Mac styles.

Any thoughts?

Stack Trace:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.apple.laf)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:266)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:141)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.jidesoft.plaf.LookAndFeelFactory.loadLnfClass(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.isAssignableFrom(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.isLnfInUse(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installDefaultLookAndFeelAndExtension(Unknown Source)
smiller
 
Posts: 2
Joined: Tue Aug 09, 2011 10:17 am

Re: AccessControlException - Mac OSX Snow Leopard

Postby JIDE Support » Tue Aug 09, 2011 10:31 am

We updated our code to support newer version Java a while ago. Did you update JIDE release to the latest?
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: AccessControlException - Mac OSX Snow Leopard

Postby smiller » Tue Aug 09, 2011 10:39 am

I am running against Jide version 2.7.4. Do you know what version that fix was made in?
smiller
 
Posts: 2
Joined: Tue Aug 09, 2011 10:17 am

Re: AccessControlException - Mac OSX Snow Leopard

Postby JIDE Support » Wed Aug 17, 2011 7:27 am

Sorry for late response. It's fixed since 2.10.2. Please give the latest release a try and check if it works for you.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 17 guests

cron