Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2917

Getting ArrayIndexOutOfBoundsException related to PropertySource.containsProperty(PropertySource.java:80)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.13.3
    • None
    • API
    • None

    Description

      Getting this error when looking for the properties, Version 2.12.1 works fine.

      PropertySource.java line 80

      The key trying to get is: "log4j.ignoreTCL"

      com.prosrm.context.DefaultWorkContextTest > checkpointWithStringDoesNotThrowException FAILED
      java.lang.ExceptionInInitializerError
      at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:60)
      at com.prosrm.context.AbstractWorkContext.<clinit>(Unknown Source)
      at com.prosrm.context.DefaultWorkContextTest.setUp(DefaultWorkContextTest.java:39)

      Caused by:
      java.lang.ArrayIndexOutOfBoundsException: 3
      at org.apache.logging.log4j.util.PropertySource.containsProperty(PropertySource.java:80)
      at org.apache.logging.log4j.util.PropertiesUtil$Environment.get(PropertiesUtil.java:501)
      at org.apache.logging.log4j.util.PropertiesUtil$Environment.access$200(PropertiesUtil.java:422)
      at org.apache.logging.log4j.util.PropertiesUtil.getStringProperty(PropertiesUtil.java:370)
      at org.apache.logging.log4j.util.PropertiesUtil.getIntegerProperty(PropertiesUtil.java:244)
      at org.apache.logging.log4j.status.StatusLogger.<clinit>(StatusLogger.java:80)
      ... 3 more

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jonatanloya Jonatan Sanchez Loya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: