[mucode-users] Mucode-1.03 and JDK-1.4.1_01
Brought to you by:
gpietro
|
From: Stefanos Z. <s.z...@cs...> - 2003-01-20 13:37:14
|
Hello, I recently downloaded mucode 1.03 and am having trouble getting (some of) the examples to work. This is on a intel Linux system, running redhat 7.3 and Sun jdk 1.4.1_01. The behaviour is reproducable each time, on examples Mobile Agent and CopyThread. The error is always the same, java.lang.NoClassDefFoundError: sun/reflect/SerializationConstructorAccessorImpl. Searching google for this error produces the following links: http://www.mail-archive.com/tom...@ja.../msg36875.html http://groups.google.com/groups?q=java.lang.NoClassDefFoundError:+sun/reflect/SerializationConstructorAccessorImpl&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=dae481f5.0212110631.1be30da4%40posting.google.com&rnum=2 I'm running mucode with a clean classpath (only rt.jar,mucode.jar and . are included). I can, however get the examples to run properly using jdk-1.3.1_06. I have also tried using jdk-1.4.0 from blackdown, but to no avail (same error occurs). Please find attached the log from CopyThread. Thanks from your time, Stefanos Log from Launcher: szachari@mousakas:~/dload/mucode/examples/Provider$ export CLASSPATH=/usr/java/j2sdk1.4.1_01/jre/lib/rt.jar:/home/szachari/dload/mucode/jar/mucode.jar:. szachari@mousakas:~/dload/mucode/examples/Provider$ java mucode.util.Launcher -port 2000 -- listing properties -- compression=false debug=false port=2000 ubiclasses= messages=true timeout=30000 ubipackages=java.* javax.* mucode.* errors=true mucode: MuServer activated on port 2000 java.lang.NoClassDefFoundError: sun/reflect/SerializationConstructorAccessorImpl at sun.misc.Unsafe.defineClass(Native Method) at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377) at sun.reflect.MethodAccessorGenerator.generateSerializationConstructor(MethodAccessorGenerator.java:95) at sun.reflect.ReflectionFactory.newConstructorForSerialization(ReflectionFactory.java:301) at java.io.ObjectStreamClass.getSerializableConstructor(ObjectStreamClass.java:1177) at java.io.ObjectStreamClass.access$1100(ObjectStreamClass.java:45) at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:343) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:329) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:249) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:449) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at java.util.Hashtable.readObject(Hashtable.java:837) 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:324) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) at mucode.Group.<init>(source/mucode/Group.java:220) at mucode.MuServer.run(source/mucode/MuServer.java:488) Log from CopyThread (before pressing Ctrl-C): szachari@mousakas:~/dload/mucode/examples/CopyThread$ export CLASSPATH=/usr/java/j2sdk1.4.1_01/jre/lib/rt.jar:/home/szachari/dload/mucode/jar/mucode.jar:. szachari@mousakas:~/dload/mucode/examples/CopyThread$ java Cloner localhost:2000 Cloner active, i = 0 About to clone the Cloner... Cloner active, i = 1 Cloner active, i = 2 Cloner active, i = 3 Cloner active, i = 4 Cloner active, i = 5 Done. Cloner active, i = 6 Cloner active, i = 7 Cloner active, i = 8 Cloner active, i = 9 Cloner active, i = 10 Cloner active, i = 11 Cloner active, i = 12 Cloner active, i = 13 Cloner active, i = 14 Cloner active, i = 15 Cloner active, i = 16 Cloner active, i = 17 Cloner active, i = 18 Cloner active, i = 19 Cloner active, i = 20 Cloner active, i = 21 Cloner active, i = 22 Cloner active, i = 23 Cloner active, i = 24 -- Stefanos Zachariadis Dept. of Computer Science, University College London Gower Street, London, WC1E 6BT, United Kingdom WWW: http://www.cs.ucl.ac.uk/staff/s.zachariadis Public Key: On Webpage } ad astra per aspera - a rough road leads to the stars { |