You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Jonatan Sanchez Loya (Jira)" <ji...@apache.org> on 2020/08/27 14:20:00 UTC

[jira] [Updated] (LOG4J2-2917) Getting ArrayIndexOutOfBoundsException related to PropertySource.containsProperty(PropertySource.java:80)

     [ https://issues.apache.org/jira/browse/LOG4J2-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonatan Sanchez Loya updated LOG4J2-2917:
-----------------------------------------
    Summary: Getting ArrayIndexOutOfBoundsException related to PropertySource.containsProperty(PropertySource.java:80)  (was: Getting ArrayIndexOutOfBoundsException relatred to PropertySource.containsProperty(PropertySource.java:80))

> Getting ArrayIndexOutOfBoundsException related to PropertySource.containsProperty(PropertySource.java:80)
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2917
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2917
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.13.3
>            Reporter: Jonatan Sanchez Loya
>            Priority: Major
>
> 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
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)