Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4116389

java.lang.ClassFormatError: Duplicate name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • 1.2.0
    • hotspot
    • None
    • 1.2beta3
    • sparc
    • solaris_2.5.1
    • Not verified


      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

            brenaudsunw Benjamin Renaud (Inactive)
            ghamiltosunw Graham Hamilton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: