[jboss-jira] [JBoss JIRA] Updated: (JBCOMMON-25) MarshalledValueInputStream and MarshalledValueOutputStream breaks when used with JDK 6
Jason T. Greene (JIRA)
jira-events at lists.jboss.org
Tue Jun 12 23:39:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBCOMMON-25?page=all ]
Jason T. Greene updated JBCOMMON-25:
------------------------------------
Workaround Description: Start Java with -Dsun.lang.ClassLoader.allowArraySyntax=true
Workaround: [Workaround Exists]
This was a behavior change in Java 6 (see workaround).
I will have a patch shortly.
> MarshalledValueInputStream and MarshalledValueOutputStream breaks when used with JDK 6
> --------------------------------------------------------------------------------------
>
> Key: JBCOMMON-25
> URL: http://jira.jboss.com/jira/browse/JBCOMMON-25
> Project: JBoss Common
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: core
> Affects Versions: 2.0.4.GA
> Reporter: Manik Surtani
> Assigned To: Jason T. Greene
>
> Trying to serialize and deserialize a custom Map implementation using o.j.util.stream.MarshalledValue{Input | Output}Stream when using JDK 6 causes failures trying to find Map.Entry
> See org.jboss.cache.util.MapCopyTest#testSerializableWithMarshalledValueStream()
> Test available here:
> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jboss/JBossCache/tests/functional/org/jboss/cache/util/MapCopyTest.java?view=co
> MapCopy srcs avbl here:
> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jboss/JBossCache/src/org/jboss/cache/util/MapCopy.java?view=co
> Stack trace when running test:
> java.lang.ClassNotFoundException: [Ljava.util.Map$Entry;
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:287)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at org.jboss.util.stream.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:58)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
> at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1624)
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
> at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
> at org.jboss.cache.util.MapCopy.readObject(MapCopy.java:103)
> 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.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
> 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.jboss.cache.util.MapCopyTest.testSerializableWithMarshalledValueStream(MapCopyTest.java:44)
> Note that this does not happen when using JDK 5 - only JDK 6.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list