Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.0-beta3
-
None
-
None
-
------------------------------------------------------------
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------------------------------------------------------------ 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
Description
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.