Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-760

Failed to instantiate LoggerContext

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.7
    • Fix Version/s: 1.1.0
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      AppEngine

      Description

      Unable to initialize logback, because of SecurityException

      java.lang.ExceptionInInitializerError
      at ch.qos.logback.classic.util.ContextInitializer.findURLOfDefaultConfigurationFile(ContextInitializer.java:117)
      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:146)
      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
      ...
      Caused by: java.lang.SecurityException: AccessController.checkPermission is unsupported.
      at com.google.appengine.runtime.Request.process-fe564e5ab0d14625(Request.java)
      at ch.qos.logback.core.util.Loader$1.run(Loader.java:51)
      at ch.qos.logback.core.util.Loader$1.run(Loader.java:48)
      at java.security.AccessController.doPrivileged(AccessController.java:34)
      at ch.qos.logback.core.util.Loader.<clinit>(Loader.java:47)
      at ch.qos.logback.classic.util.ContextInitializer.findURLOfDefaultConfigurationFile(ContextInitializer.java:117)
      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:146)
      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54)
      at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
      at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
      at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
      at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)

        Attachments

          Activity

            People

            • Assignee:
              tony19 Tony Trinh
              Reporter:
              strawik@gmail.com Jaroslav Holubec
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: