[ https://issues.apache.org/jira/browse/LOG4J2-1229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15067169#comment-15067169 ]
Gary Gregory commented on LOG4J2-1229: -------------------------------------- If you enable the status logger, you should see an ERROR message from the failure in the {{RollingFileManagerFactory}}. For example: {code:xml} <Configuration status="DEBUG"> ... {code} > Error creating logger > --------------------- > > Key: LOG4J2-1229 > URL: https://issues.apache.org/jira/browse/LOG4J2-1229 > Project: Log4j 2 > Issue Type: Bug > Components: Appenders > Affects Versions: 2.4.1, 2.5 > Environment: Ubuntu 14.04 > Reporter: Dmitriy Dumanskiy > Fix For: 2.5.1 > > > I have a lot of VMs where everything is fine. But on some of them I get > below stack trace. I have a feeling it somehow related with access rights. > Here is stack trace : > {code} > 2015-12-21 08:05:06,036 AsyncLogger-1 ERROR Unable to invoke factory method > in class class org.apache.logging.log4j.core.appender.RollingFileAppender for > element RollingFile. java.lang.reflect.InvocationTargetException > at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at > org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:136) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:813) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:753) > at > org.apache.logging.log4j.core.appender.routing.RoutingAppender.createAppender(RoutingAppender.java:152) > at > org.apache.logging.log4j.core.appender.routing.RoutingAppender.getControl(RoutingAppender.java:136) > at > org.apache.logging.log4j.core.appender.routing.RoutingAppender.append(RoutingAppender.java:110) > at > org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:152) > at > org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:125) > at > org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:116) > at > org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84) > at > org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:390) > at > org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:378) > at > org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:362) > at > org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:79) > at > org.apache.logging.log4j.core.async.AsyncLogger.actualAsyncLog(AsyncLogger.java:385) > at > org.apache.logging.log4j.core.async.RingBufferLogEvent.execute(RingBufferLogEvent.java:103) > at > org.apache.logging.log4j.core.async.RingBufferLogEventHandler.onEvent(RingBufferLogEventHandler.java:43) > at > org.apache.logging.log4j.core.async.RingBufferLogEventHandler.onEvent(RingBufferLogEventHandler.java:28) > at > com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.IllegalStateException: ManagerFactory > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory@346629f5] > unable to create manager for [/data/<email address here>/1_v4.csv] with data > [org.apache.logging.log4j.core.appender.rolling.RollingFileManager$FactoryData@6d48f4b0] > at > org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:73) > at > org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:61) > at > org.apache.logging.log4j.core.appender.rolling.RollingFileManager.getFileManager(RollingFileManager.java:79) > at > org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(RollingFileAppender.java:193) > ... 25 more > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org