[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: JBVFS 2.0.0.Beta10/2.0.0.CR1 releases
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Mar 5 15:38:59 EST 2008
I fixed the writing of the more deeply nested jars, but this fails to deserialize because the underlying sun.net.www.protocol.jar.JarURLConnection does not understand nested jars:
| java.io.FileNotFoundException: JAR entry level2.zip!/level3.zip not found in C:\home\svn\JBossMC\VFS\trunk\target\classes\vfs\test\level1.zip
| at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:114)
| at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
| at org.jboss.virtual.plugins.context.jar.AbstractJarHandler.readObject(AbstractJarHandler.java:213)
| 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.lang.reflect.Method.invoke(Method.java:585)
| at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
| at org.jboss.test.AbstractTestCase.deserialize(AbstractTestCase.java:352)
| at org.jboss.test.AbstractTestCase.serializeDeserialize(AbstractTestCase.java:367)
| at org.jboss.test.virtual.test.NoCopyJarsUnitTestCase.testLevelZips(NoCopyJarsUnitTestCase.java:179)
|
To properly serialize jar files we have to provide our own jar: protocol implementation, or not rely on the jar file JarURLConnection.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134400#4134400
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134400
More information about the jboss-dev-forums
mailing list