BUG: java.lang.LinkageError When You Refresh URL That Contains an Applet (270860)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q270860 SYMPTOMS
When you try to refresh a URL that contains an applet, you may receive the following error:
Error loading class: pack1/test/TestApplet
java.lang.LinkageError: Class already defined in the context of this loader: pack1/test/TestApplet
java.lang.ClassNotFoundException: foo/bar/TestApplet
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
This exception is thrown out of the ClassLoader when you reload the page (either explicitly or by browsing away and coming back), or when you load multiple instances of an applet on the same page.
This problem occurs when you use the Microsoft virtual machine (Microsoft VM) version 33 xx.
CAUSE
The problem occurs when the <APPLET=code> tag on the HTML page refers to a packaged class name that is separated by a forward slash (/) instead of a period (.) (for example, pack1/test/TestApplet instead of pack1.test.TestApplet).
RESOLUTION
To work around this problem, use a period to define the packaged class name in your <APPLET=code> tag on the HTML page.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbBug kbFAQ kbpending KB270860 |
---|
|