logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahesh Dilhan <mail.mahesh...@gmail.com>
Subject beta9 to rc1
Date Thu, 20 Mar 2014 02:07:12 GMT
HI

I'm using AsyncLogger and it satisfied the what i need.
1 : Asysnc logger [tomcat is configured with the property
{Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
 }

2. I'm using  rolling random access appender

3. *Lookups *works as expected



Following is a part of log4j2.xml.



<Properties>
    <Property name="contextName">$${web:contextPath}</Property>
<Property name="catalinaHome">$${sys:catalina.home}</Property>
    <Property
name="filename">${catalinaHome}/logs/current/${contextName}.log</Property>
  </Properties>
  <Appenders>

    <RollingRandomAccessFile name="RollingFile-${web:contextPath}"
fileName="${filename}" immediateFlush="false" append="false"

 filePattern="${catalinaHome}/logs/archived/%d{yyyy-MM-dd}${contextName}-%d{yyyy-MM-dd}.log.gz">
      <PatternLayout>
        <Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
      </PatternLayout>
      <Policies>
        <TimeBasedTriggeringPolicy />
      </Policies>
    </RollingRandomAccessFile>




Everything was perfect before I change the version from *beta9 *to *rc1*

1. Exception occurred while initializing tomcat, *but this is not a show
stopper*.
2. File is created with a name AsyncLoggerContext.log.
3. *Lookup suddenly stop working , which is a show stopper for me*



So I had to rollback the version again.

are there any new configuration which comes with *rc1?*


SEVERE: IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: org.ap
ache.logging.log4j.core.Logger$PrivateConfig
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.logging.log4j.core.Logger$PrivateConfig
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at java.util.HashMap.readObject(HashMap.java:1030)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
        at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
        at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1597)
        at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1062)
        at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284)
        at
org.apache.catalina.session.StandardManager.load(StandardManager.java:204)
        at
org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5443)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)








-- 
Mahesh Dilhan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message