This is with JDK 1.2 beta-3 build "I".
When I try to run two copies of the same applet on one page,
I consistently get failures with "java.lang.ClassFormatError: Duplicate name"
See a typical stack trace below.
It looks like the classloaders are trying to load the same JAR classes at
the same time and getting conflicts internally.
There is a test case online at http://zebadee/test/12A
Do "appletviewer http://zebadee/test/12A" to reproduce the problem
zebadee[486]> appletviewer http://zebadee/test/12A
java.lang.ClassFormatError: Duplicate name
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:360)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
at sun.applet.AppletClassLoader.defineClass(AppletClassLoader.java:155)
at sun.applet.AppletClassLoader.findLocalClass(AppletClassLoader.java:94)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at java.lang.ClassLoader.loadClass(ClassLoader.java:185)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:255)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:459)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:395)
at sun.applet.AppletPanel.run(AppletPanel.java:234)
at java.lang.Thread.run(Thread.java:490)
KGH 3/1/98
- relates to
-
JDK-4239496 (1.1) java.lang.ClassFormatError: Duplicate name
-
- Closed
-