Bug similar to JBSER-118
Issue
-
I am experiencing this bug that seems similar to the this one JBSER-118.
ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:103) ERROR [STDERR] ... 49 more ERROR [STDERR] Caused by: org.jboss.serial.exception.SerializationException: Excepted to be int ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readInt(DataContainer.java:1048) ERROR [STDERR] at org.jboss.serial.persister.ObjectInputStreamProxy.readInt(ObjectInputStreamProxy.java:156) ERROR [STDERR] at org.jboss.serial.objectmetamodel.FieldsContainer.readMyself(FieldsContainer.java:214) ERROR [STDERR] at org.jboss.serial.persister.ObjectInputStreamProxy.readFields(ObjectInputStreamProxy.java:224) ERROR [STDERR] at java.io.File.readObject(File.java:1927) ERROR [STDERR] ... 54 more ERROR [STDERR] Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.jboss.serial.finalcontainers.IntegerContainer ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readInt(DataContainer.java:1044) ERROR [STDERR] ... 58 more
-
JBoss serialization of object results in class cast exception
- java.lang.String incompatible with org.jboss.serial.finalcontainers.IntegerContainer
Environment
- JBoss Enterprise Application Platform (EAP) 4.3.0 CP04
- Sun JDK 1.6.0_19 through Sun JDK 1.6.0_23 (latest)
- The issue will be in future releases unless the Sun JDK java.io.File class changes
- IBM JDK 1.6.0 SR9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.