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

EnvTool.isGrooveyAvailable causes NullPointerException

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.10
    • logback-classic
    • None
    • Windows 7, Oracle Java 7 JDK, Glassfish 3.2.1.1

    Description

      When using logback with glassfish, a NullPointerException exception is thrown, since glassfish seems to have a different classloader not always available via class.getClassLoader().

      So the bug seem to be in ch.qos.logback.classic.util.EnvUtil in line 25. Here the classloader is used, without checking for a null value first, hence the NullPointerException.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            genix Alexander Brakowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: