Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java Applets plötzlich nicht mehr ausführbar!

0 views
Skip to first unread message

Markus

unread,
Jun 5, 2006, 1:47:37 PM6/5/06
to
Hallo,

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

berlinh...@yahoo.de

unread,
Jun 6, 2006, 9:40:12 PM6/6/06
to
try
1.Change file folder "có" to "co" or other name.
2.Use "Object" tag instead of "Applet"
3.Explicitly set "CodeBase=../c%c3%b3" (It's "có",UTF-8 encoding.) if
using "applet" tag.

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.

0 new messages