Robert Gibson created RIVER-415:
-----------------------------------
Summary: Non-forward compatible code leads to RuntimeException
when accessing class com.sun.jini.logging.Levels
Key: RIVER-415
URL: https://issues.apache.org/jira/browse/RIVER-415
Project: River
Issue Type: Bug
Components: com_sun_jini_logging
Affects Versions: River_2.2.0, jtsk_2.1
Environment: Oracle JDK 1.6.0_38 or higher; 1.7.0_13 or higher
Reporter: Robert Gibson
With Oracle JDK 1.6.0_38 and JDK 1.7.0_13, Oracle added an extra field
(localizedLevelName) to java.util.logging.Level.
com.sun.jini.logging.Levels contains some code which depends on knowing the
serialization format of the JDK class and crashes with the below exception when
attempting to upgrade JDK version.
java.lang.RuntimeException: Unexpected exception
at com.sun.jini.logging.Levels.createLevel(Levels.java:142)
at com.sun.jini.logging.Levels.<clinit>(Levels.java:52)
... 20 more
Caused by: java.io.EOFException
at
java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2577)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1315)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at com.sun.jini.logging.Levels.createLevel(Levels.java:138)
... 21 more
--
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