This discussion is archived
0 Replies Latest reply: Jul 1, 2010 3:24 AM by 843811 RSS

Automatic rejection even if already signed?

843811 Newbie
Currently Being Moderated
Hi,

First off I should say that I am not a developer - I am a tester with limited Java knowledge :)

We have our own Java application that is hanging and the Java console outputs errors which are mostly AccessControlExceptions (see snippet below). This hang only occurs because of JVMHook environment variables that are added by a test tool (QTP). When these are removed everything works fine. I have tried deleting all sorts of caches (including the Java security ones) and Java 1.6 versions but they don't help. Removing the variables isn't a valid workaround as they are necessary for QTP to recognise Java.

What has pointed me to this forum is the fact that when the application is working as normal, if a user clicks 'Cancel' in the signing dialog the exact same errors below appear in the Java console. To me this intimates that the variables are having a conflict with the applet signing code, and that it causing the same outcome as if the applet is being automatically rejected.

So my questions are:
1) Am I sniffing in the correct area of security and signatures based on the output below?
2) Is it possible for an applet to be automatically rejected without the dialog appearing, even if it already has a valid signed certificate?

Thanks


JAVA console output snippet
----------------------------------------------------------------------------------------------------------------------------------------
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet initLogging
WARNING: Unable to read logging configuration from http://localhost:32502/xxxxxxxxx/Client/logging.properties: using default.
     Reason was java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet createAndInitChild
INFO: Starting RelationsBrowserApplet
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet globalStartup
INFO: xxxxxxContainerApplet: global startup
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet createAndInitChild
INFO: Starting ResourceBrowserApplet
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet createAndInitChild
SEVERE: Failed to load applet
java.security.AccessControlException: access denied (java.util.PropertyPermission swing.metalTheme write)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.System.setProperty(Unknown Source)
     at com.xxxxxx.core.boot.xxxxxxContainerApplet.globalStartup(xxxxxxContainerApplet.java:185)
     at com.xxxxxx.core.boot.xxxxxxContainerApplet.createAndInitChild(xxxxxxContainerApplet.java:696)
     at com.xxxxxx.core.boot.xxxxxxContainerApplet.init(xxxxxxContainerApplet.java:598)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet globalStartup
INFO: xxxxxxContainerApplet: global startup
01-Jul-2010 10:38:07 com.xxxxxx.core.boot.xxxxxxContainerApplet createAndInitChild
SEVERE: Failed to load applet
java.security.AccessControlException: access denied (java.util.PropertyPermission swing.metalTheme write)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.System.setProperty(Unknown Source)
     at com.xxxxxx.core.boot.xxxxxxContainerApplet.globalStartup(xxxxxxContainerApplet.java:185)
     at com.xxxxxx.core.boot.xxxxxxContainerApplet.createAndInitChild(xxxxxxContainerApplet.java:696)
     at com.xxxxxx.core.boot.xxxxxxContainerApplet.init(xxxxxxContainerApplet.java:598)
     at sun.applet.AppletPanel.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)