logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LOG4J2-1335) java.lang.IndexOutOfBoundsException when using LogManager with Google AppEngine
Date Mon, 28 Mar 2016 14:52:25 GMT

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

Lukasz Lenart closed LOG4J2-1335.
---------------------------------

> java.lang.IndexOutOfBoundsException when using LogManager with Google AppEngine
> -------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1335
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1335
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.6
>            Reporter: Lukasz Lenart
>              Labels: Exception, GAE
>
> The latest 2.6-SNAPSHOT was working fine for last few days, but today it suddenly started
throwing the following exception:
> {noformat}
> [INFO] WARNING: failed JettyContainerService$ApiProxyHandler@605ea2a1: java.lang.ExceptionInInitializerError
> [INFO] Mar 28, 2016 4:23:50 PM com.google.apphosting.utils.jetty.JettyLogger warn
> [INFO] WARNING: Error starting handlers
> [INFO] java.lang.ExceptionInInitializerError
> [INFO] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [INFO] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> [INFO] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> [INFO] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> [INFO] 	at java.lang.Class.newInstance(Class.java:374)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
> [INFO] 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247)
> [INFO] 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> [INFO] 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> [INFO] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> [INFO] 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> [INFO] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> [INFO] 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> [INFO] 	at org.mortbay.jetty.Server.doStart(Server.java:224)
> [INFO] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> [INFO] 	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:273)
> [INFO] 	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:283)
> [INFO] 	at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
> [INFO] 	at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
> [INFO] 	at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
> [INFO] 	at java.security.AccessController.doPrivileged(Native Method)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
> [INFO] 	at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:225)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:216)
> [INFO] Caused by: java.lang.IndexOutOfBoundsException: start 30, end 0, s.length() 30
> [INFO] 	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:476)
> [INFO] 	at java.lang.StringBuilder.append(StringBuilder.java:191)
> [INFO] 	at org.apache.logging.log4j.message.ParameterFormatter.formatMessage2(ParameterFormatter.java:186)
> [INFO] 	at org.apache.logging.log4j.message.ParameterizedMessage.formatTo(ParameterizedMessage.java:216)
> [INFO] 	at org.apache.logging.log4j.message.ParameterizedMessage.getFormattedMessage(ParameterizedMessage.java:191)
> [INFO] 	at org.apache.logging.log4j.message.ParameterizedNoReferenceMessageFactory.newMessage(ParameterizedNoReferenceMessageFactory.java:61)
> [INFO] 	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1216)
> [INFO] 	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1175)
> [INFO] 	at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:574)
> [INFO] 	at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:68)
> [INFO] 	at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:447)
> [INFO] 	at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:199)
> [INFO] 	at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:211)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:491)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:561)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:577)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:212)
> [INFO] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:148)
> [INFO] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41)
> [INFO] 	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
> [INFO] 	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
> [INFO] 	at org.apache.struts2.tiles.StrutsTilesListener.<clinit>(StrutsTilesListener.java:34)
> [INFO] 	... 35 more
> [INFO]
> [INFO] Mar 28, 2016 4:23:50 PM com.google.apphosting.utils.jetty.JettyLogger warn
> [INFO] WARNING: Nested in java.lang.ExceptionInInitializerError:
> [INFO] java.lang.IndexOutOfBoundsException: start 30, end 0, s.length() 30
> [INFO] 	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:476)
> [INFO] 	at java.lang.StringBuilder.append(StringBuilder.java:191)
> [INFO] 	at org.apache.logging.log4j.message.ParameterFormatter.formatMessage2(ParameterFormatter.java:186)
> [INFO] 	at org.apache.logging.log4j.message.ParameterizedMessage.formatTo(ParameterizedMessage.java:216)
> [INFO] 	at org.apache.logging.log4j.message.ParameterizedMessage.getFormattedMessage(ParameterizedMessage.java:191)
> [INFO] 	at org.apache.logging.log4j.message.ParameterizedNoReferenceMessageFactory.newMessage(ParameterizedNoReferenceMessageFactory.java:61)
> [INFO] 	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1216)
> [INFO] 	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1175)
> [INFO] 	at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:574)
> [INFO] 	at org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:68)
> [INFO] 	at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:447)
> [INFO] 	at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:199)
> [INFO] 	at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:211)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:491)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:561)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:577)
> [INFO] 	at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:212)
> [INFO] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:148)
> [INFO] 	at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41)
> [INFO] 	at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
> [INFO] 	at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
> [INFO] 	at org.apache.struts2.tiles.StrutsTilesListener.<clinit>(StrutsTilesListener.java:34)
> [INFO] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> [INFO] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> [INFO] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> [INFO] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> [INFO] 	at java.lang.Class.newInstance(Class.java:374)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.newListenerInstance(WebXmlConfiguration.java:650)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:631)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:368)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:289)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:222)
> [INFO] 	at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:180)
> [INFO] 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1247)
> [INFO] 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
> [INFO] 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
> [INFO] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> [INFO] 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> [INFO] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> [INFO] 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> [INFO] 	at org.mortbay.jetty.Server.doStart(Server.java:224)
> [INFO] 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> [INFO] 	at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:273)
> [INFO] 	at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:283)
> [INFO] 	at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
> [INFO] 	at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:87)
> [INFO] 	at com.google.appengine.tools.development.Modules.startup(Modules.java:105)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl.doStart(DevAppServerImpl.java:258)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl.access$000(DevAppServerImpl.java:47)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:213)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl$1.run(DevAppServerImpl.java:211)
> [INFO] 	at java.security.AccessController.doPrivileged(Native Method)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:277)
> [INFO] 	at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerMain.run(DevAppServerMain.java:225)
> [INFO] 	at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:216)
> {noformat}
> Here is the starting point for the exception
> https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesListener.java#L34



--
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