been doing that. i get the can not deserialize long (see junit report and ant output below). it does this when compiled and run from windoze xp and 1.3.1_09-b03 or deadrat 7.2 and 1.3.1_04-b02. but when i compile with 1.3 and run using a 1.4.2_03, then all of the tests pass.
thanks
testPersistCollections Error could not deserialize
net.sf.hibernate.type.SerializationException: could not deserialize
at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:194)
at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:220)
at org.hibernate.test.FooBarTest.testPersistCollections(FooBarTest.java:2429)
at org.hibernate.test.TestCase.runTest(TestCase.java:82)
Caused by: java.lang.ClassNotFoundException: long
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:649)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:913)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1137)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at java.util.HashMap.readObject(HashMap.java:835)
at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2209)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1406)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
at net.sf.hibernate.impl.SessionImpl.readObject(SessionImpl.java:449)
at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2209)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1406)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:190)
... 14 more
[taskdef] Could not load definitions from resource clovertasks. It could not be found.
splash:
cleantestdb:
init:
[echo] Build Hibernate-2.1 (2004-03-08 02:03:38)
[mkdir] Created dir: /Z/Users/ray/java/unpacked/hibernate-2.1/build
[copy] Copying 9 files to /Z/Users/ray/java/unpacked/hibernate-2.1/build
compile:
[javac] Compiling 463 source files to /Z/Users/ray/java/unpacked/hibernate-2.1/build
compiletest:
[javac] Compiling 107 source files to /Z/Users/ray/java/unpacked/hibernate-2.1/build
junit:
[mkdir] Created dir: /Z/Users/ray/java/unpacked/hibernate-2.1/testout
[junit] Running org.hibernate.test.ABCProxyTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 5.568 sec
[junit] Running org.hibernate.test.ABCTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4.551 sec
[junit] Running org.hibernate.test.CacheTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.385 sec
[junit] Running org.hibernate.test.FooBarTest
[junit] Tests run: 99, Failures: 0, Errors: 1, Time elapsed: 51.429 sec
[junit] TEST org.hibernate.test.FooBarTest FAILED
[junit] Running org.hibernate.test.FumTest
[junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 22.484 sec
[junit] Running org.hibernate.test.MasterDetailTest
[junit] Tests run: 27, Failures: 0, Errors: 0, Time elapsed: 8.251 sec
[junit] Running org.hibernate.test.MultiTableTest
[junit] Tests run: 13, Failures: 0, Errors: 0, Time elapsed: 7.601 sec
[junit] Running org.hibernate.test.ODMGTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 19.524 sec
[junit] Running org.hibernate.test.ParentChildTest
[junit] Tests run: 16, Failures: 0, Errors: 0, Time elapsed: 21.887 sec
[junit] Running org.hibernate.test.QueryByExampleTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 4.57 sec
[junit] Running org.hibernate.test.SQLFunctionsTest
[junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 5.341 sec
[junit] Running org.hibernate.test.SQLLoaderTest
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 5.904 sec
junitreport:
[junitreport] Using Xalan version: Xalan Java 2.4.0
[junitreport] Transform time: 2931ms
BUILD SUCCESSFUL
Total time: 3 minutes 12 seconds
_________________ <http://tayek.com/>, co-chair <http://www.ocjug.org/>, actively
seeking telecommuting work. hate spam?
<https://www1.ietf.org/mailman/listinfo/asrg>
|