logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joern Huxhorn (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LOG4J2-142) Exception while deserializing event from SocketAppender
Date Fri, 11 Jan 2013 03:00:13 GMT

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

Joern Huxhorn closed LOG4J2-142.
--------------------------------


Works, thanks!
                
> Exception while deserializing event from SocketAppender
> -------------------------------------------------------
>
>                 Key: LOG4J2-142
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-142
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.0-beta3
>         Environment: ------------------------------------------------------------
> Gradle 1.3
> ------------------------------------------------------------
> Gradle build time: Dienstag, 20. November 2012 11:37 Uhr UTC
> Groovy: 1.8.6
> Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
> Ivy: 2.2.0
> JVM: 1.7.0_10 (Oracle Corporation 23.6-b04)
> OS: Mac OS X 10.8.2 x86_64
> ------------------------------------------------------------
> Gradle 1.3
> ------------------------------------------------------------
> Gradle build time: Tuesday, November 20, 2012 11:37:38 AM UTC
> Groovy: 1.8.6
> Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
> Ivy: 2.2.0
> JVM: 1.6.0_32 (Apple Inc. 20.7-b02-420)
> OS: Mac OS X 10.8.2 x86_64
>            Reporter: Joern Huxhorn
>            Assignee: Ralph Goers
>            Priority: Critical
>             Fix For: 2.0-beta4
>
>
> I get the following error message:
> java.lang.ClassCastException: cannot assign instance of java.lang.StackTraceElement to
field java.lang.Throwable.cause of type java.lang.Throwable in instance of org.apache.logging.log4j.core.impl.ThrowableProxy
> 	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2063)
~[na:1.7.0_10]
> 	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1241) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498) ~[na:1.7.0_10]
> 	at java.lang.Throwable.readObject(Throwable.java:913) ~[na:1.7.0_10]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_10]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_10]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0_10]
> 	at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_10]
> 	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) ~[na:1.7.0_10]
>        a.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) ~[na:1.7.0_10]
> 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) ~[na:1.7.0_10]
> 	at de.huxhorn.lilith.engine.impl.eventproducer.AbstractStreamEventProducer$ReceiverRunnable.run(AbstractStreamEventProducer.java:83)
~[de.huxhorn.lilith.engine-0.9.43-SNAPSHOT.jar:na]
> With 1.6:
> java.lang.ClassCastException: cannot assign instance of java.lang.StackTraceElement to
field java.lang.Throwable.cause of type java.lang.Throwable in instance of org.apache.logging.log4j.core.impl.ThrowableProxy
> 	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2034)
~[na:1.6.0_32]
> 	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1207) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1952) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) ~[na:1.6.0_32]
> 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) ~[na:1.6.0_32]
> 	at de.huxhorn.lilith.engine.impl.eventproducer.AbstractStreamEventProdceiverRunnable.run(AbstractStreamEventProducer.java:83)
~[de.huxhorn.lilith.engine-0.9.43-SNAPSHOT.jar:na]
> Tested with both 1.6 and 1.7 on either sending and receiving side, all combinations.
Always the same exception.
> I suspect there may be some serialVersionUID snafu somewhere.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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