logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-799) Log4j 2 throws ArrayIndexOutOfBoundsException
Date Sat, 27 Jun 2015 08:30:04 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604063#comment-14604063
] 

Gary Gregory commented on LOG4J2-799:
-------------------------------------

In 2.3? Ping [~ndkoval]?

> Log4j 2 throws ArrayIndexOutOfBoundsException
> ---------------------------------------------
>
>                 Key: LOG4J2-799
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-799
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-rc1, 2.0-rc2, 2.0.2
>            Reporter: Nikita Koval
>            Priority: Critical
>         Attachments: Log4j-799.diff, Log4j2_799Test.java, log4j2-799.xml, result.zip
>
>
> Sometimes, logging throws java.lang.ArrayIndexOutOfBoundsException: 
> {noformat}
> 2014-05-23 01:01:37,019 ERROR An exception occurred processing Appender Err java.lang.ArrayIndexOutOfBoundsException:
6
>         at org.apache.logging.log4j.core.impl.ThrowableProxy.formatElements(ThrowableProxy.java:269)
>         at org.apache.logging.log4j.core.impl.ThrowableProxy.getExtendedStackTrace(ThrowableProxy.java:232)
>         at org.apache.logging.log4j.core.pattern.ExtendedThrowablePatternConverter.format(ExtendedThrowablePatternConverter.java:72)
>         at org.apache.logging.log4j.core.pattern.PatternFormatter.format(PatternFormatter.java:36)
>         at org.apache.logging.log4j.core.layout.PatternLayout.toSerializable(PatternLayout.java:172)
>         at org.apache.logging.log4j.core.layout.PatternLayout.toSerializable(PatternLayout.java:52)
>         at org.apache.logging.log4j.core.layout.AbstractStringLayout.toByteArray(AbstractStringLayout.java:45)
>         at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:118)
>         at org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:85)
>         at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:97)
>         at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.callAppenders(AsyncAppender.java:276)
>         at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:239)
> {noformat}
> Here is configuration:
> {code}
> <Configuration status="warn">
> <Appenders>
>     <Async name="Async" bufferSize="2048" blocking="${BLOCKING_LOG}">
>         <appender-ref ref="A1"/>
>         <appender-ref ref="Err"/>
>     </Async>
>     <Async name="Async-profiler" bufferSize="2048" blocking="${BLOCKING_LOG}">
>         <appender-ref ref="Profiler"/>
>     </Async>
>     <RollingFile name="A1" fileName="${GFT_VAR}/log/${target}.log" filePattern="${GFT_VAR}/log/${target}.log.%i">
>         <PatternLayout pattern="[%d] [%t] %-5p %c - %m%n"/>
>         <DefaultRolloverStrategy max="3"/>
>         <Policies>
>             <SizeBasedTriggeringPolicy size="50Mb"/>
>         </Policies>
>     </RollingFile>
>     <RollingFile name="Err" fileName="${GFT_VAR}/log/${target}.err" filePattern="${GFT_VAR}/log/${target}.err.%i">
>         <ThresholdFilter level="WARN" onMatch="ACCEPT" onMismatch="DENY"/>
>         <PatternLayout pattern="[%d] [%t] %-5p %c - %m%n"/>
>         <DefaultRolloverStrategy max="2"/>
>         <Policies>
>             <SizeBasedTriggeringPolicy size="10MB"/>
>         </Policies>
>     </RollingFile>
>     <RollingFile name="Profiler" fileName="${GFT_VAR}/log/${target}.stat"
>                  filePattern="${GFT_VAR}/log/${target}.stat.%i">
>         <PatternLayout pattern="[%d] [%t] %-5p %c - %m%n"/>
>         <DefaultRolloverStrategy max="3"/>
>         <Policies>
>             <SizeBasedTriggeringPolicy size="10MB"/>
>         </Policies>
>     </RollingFile>
> </Appenders>
> <Loggers>
>     <Root level="debug">
>         <AppenderRef ref="Async"/>
>     </Root>
>     <Logger name="net.sf" level="info">
>         <AppenderRef ref="Async"/>
>     </Logger>
>     <Logger name="org.springframework.jdbc.core.JdbcTemplate" level="info">
>         <AppenderRef ref="Async"/>
>     </Logger>
>     <Logger name="gft.service.stats.PoolableMetrics" additivity="false" level="info">
>         <AppenderRef ref="Async"/>
>     </Logger>
>     <Logger name="gft.util.profiling.Profiler" additivity="false">
>         <AppenderRef ref="Async-profiler"/>
>     </Logger>
> </Loggers>
> </Configuration>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message