Results 1 to 2 of 2
- 12-14-2012, 05:50 AM #1Member
- Join Date
- Dec 2012
- Rep Power
Why is my signed applet still running into permissions problems?
I have a signed applet that performs a JNDI lookup on a Weblogic 10.3.5 data source.
When I try to run the applet from the browser I get this exception:
java.lang.ExceptionInInitializerError at weblogic.security.service.SecurityManager.getKernelIdentity(SecurityManager.java:164) at weblogic.security.service.GetKernelIdentityAction.run(GetKernelIdentityAction.java:25) at java.security.AccessController.doPrivileged(Native Method) at weblogic.jndi.WLSJNDIEnvironmentImpl.<clinit>(WLSJNDIEnvironmentImpl.java:56) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at weblogic.jndi.internal.JNDIEnvironment.getJNDIEnvironment(JNDIEnvironment.java:33) at weblogic.jndi.Environment.<clinit>(Environment.java:89) at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.<init>(Unknown Source) at com.ericr.jndiApplet.Applet1.init(Applet1.java:54) at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown Source) 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" "com.bea.core.internal.client" "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 weblogic.security.subject.SubjectManager.<clinit>(SubjectManager.java:207) ... 17 more Ignored exception: java.lang.ExceptionInInitializerError
Any ideas on what this is? I thought that signing the applet would allow me to do things like this? I can perform the JNDI look up on a stand alone app so I am thinking that it is some sort of applet specific security setting. I just don't know what is causing this.
Environment: Win 7, JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM, Weblogic 10.3.5
Last edited by errodr; 12-14-2012 at 06:02 AM.
- 02-05-2013, 08:36 PM #2Member
- Join Date
- Jan 2013
- Rep Power
Re: Why is my signed applet still running into permissions problems?
I think it has to do with the fact that at some point you assign a new Security Manager.
When you run the applet from the IDE, or eclipse or whatever java editor compiler, you don't get the message because applets are not forbidden from anything.
But when you run the applet from an webpage, an html, then the security permissions come up.
For instance take a look at this page of what applets are allowed and are not allowed to do:
What Applets are allowed and are not allowed to do...
May be you can find an answer there...bye good luck!
- By anchitanc in forum Java AppletsReplies: 3Last Post: 03-26-2012, 04:26 PM
- By CodeGust in forum Java AppletsReplies: 0Last Post: 10-11-2011, 03:18 AM
- By katnyan in forum Java AppletsReplies: 1Last Post: 10-07-2011, 05:12 PM
- By menzow in forum Java AppletsReplies: 2Last Post: 02-21-2011, 12:19 PM
- By AXH in forum Java AppletsReplies: 2Last Post: 10-10-2008, 02:28 AM