leider werden bei mir seit kurzen keine applets mehr ausgeführt.
Habe kleinere Applets selbst geschrieben, und auf einmal kann ich sie
mir nicht mir im
Browser angucken! Was kann da falsch sein?
Die Fehlermeldung aus der Konsole lautet:
Exception in thread "Thread-2" java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(Unknown Source)
at sun.net.www.protocol.file.Handler.openConnection(Unknown Source)
at sun.net.www.protocol.file.Handler.openConnection(Unknown Source)
at java.net.URL.openConnection(Unknown Source)
at sun.applet.AppletPanel.getAccessControlContext(Unknown Source)
at sun.applet.AppletPanel.getClassLoader(Unknown Source)
at sun.applet.AppletPanel.createAppletThread(Unknown Source)
at sun.applet.AppletPanel.init(Unknown Source)
at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.WNetscapePluginObject$Initer.run(Unknown Source)
---
Ich verwende das JDK1.5_06
Danke im Voraus
Markus
and come back if u still got problems with it.
Andree Yang
ps.It seems a MS VM problem.
When using applet tag, Sun JRE is impersonating the MS VM by resetting
applet(an activex control) control's "Treatas" to Sun's applet control.
When loading applet from local filesystem with no explicit codebase
setting, the applet control will get a "codebase" attribute with the
value as "file:///x:/somedirectory".
The problem is that the default value is SOMETIMES encoded by
"ISO-8859-1", not by "UTF-8". For instance, when the applet's directory
is "có".
It can't be fixed on Sun's JRE side, since we can't tell if the
codebase value is explictly set by developers when using applet tag.
We have many workarounds for this problem. See "Work Around".
Besides, when accessing from web, the applet tag works fine.