yueming created Bug SLF4J-322
Issue Type: Bug Bug
Affects Versions: 1.7.x
Assignee: SLF4J developers list
Components: Core API
Created: 28/Mar/15 9:28 AM
Description:

cannot init class LoggerFactory in applet

Proposal change like:

static boolean DETECT_LOGGER_NAME_MISMATCH
static {
try

{ DETECT_LOGGER_NAME_MISMATCH = Boolean.getBoolean(DETECT_LOGGER_NAME_MISMATCH_PROPERTY); }

catch(Exception e)

{ DETECT_LOGGER_NAME_MISMATCH=false; }

}

Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "slf4j.detectLoggerNameMismatch" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:88)

Environment:

jdk 1.7

Project: SLF4J
Priority: Major Major
Reporter: yueming
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
slf4j-dev mailing list
slf4j-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-dev

Reply via email to