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

Applet errors when loading from high-ascii folder

0 views
Skip to first unread message

California Paladin

unread,
Nov 1, 2004, 11:49:42 AM11/1/04
to
All:
I wrote an applet that runs fine except when the web-page is launched
from a folder containing high-ascii characters (actually german
characters). I get the following error:

java.lang.StringIndexOutOfBoundsException: String index out of range:
65
at java.lang.String.substring(Unknown Source)
at sun.net.www.ParseUtil.unescape(Unknown Source)
at sun.net.www.ParseUtil.decode(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.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.WNetscapePluginObject$Initer.run(Unknown Source)

I find that the applet's constructor is not even called. This appears
to be happening even before my code starts to run. Any suggestions?

Thanks
California_Paladin

Andrew Thompson

unread,
Nov 1, 2004, 11:09:07 PM11/1/04
to
On 1 Nov 2004 08:49:42 -0800, California Paladin wrote:

> I wrote an applet

URL?

>...that runs fine except when the web-page is launched


> from a folder containing high-ascii characters (actually german
> characters).

...


> I find that the applet's constructor is not even called. This appears
> to be happening even before my code starts to run. Any suggestions?

Supplies two URL's pointing to the same applet, one in
a directory with the high-ascii chars. one not)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane

Thomas Weidenfeller

unread,
Nov 2, 2004, 4:31:35 AM11/2/04
to
California Paladin wrote:
> I wrote an applet that runs fine except when the web-page is launched
> from a folder containing high-ascii characters

Just for the record: There is no such thing as high-ascii characters.
ASCII is a seven bit code. If your characters use higher codes they are
not ASCII.

> I find that the applet's constructor is not even called. This appears
> to be happening even before my code starts to run. Any suggestions?

Rename the directory. The applet's URL is formed from the path, and
non-ASCII characters are not valid characters in a URL.


/Thomas

California Paladin

unread,
Nov 2, 2004, 9:30:21 AM11/2/04
to
Andrew Thompson <SeeMy...@www.invalid> wrote in message news:<jyygojssg94.yo3bmf4durpa$.d...@40tude.net>...

> On 1 Nov 2004 08:49:42 -0800, California Paladin wrote:
>
> > I wrote an applet
>
> URL?
>
> >...that runs fine except when the web-page is launched
> > from a folder containing high-ascii characters (actually german
> > characters).
> ...
> > I find that the applet's constructor is not even called. This appears
> > to be happening even before my code starts to run. Any suggestions?
>
> Supplies two URL's pointing to the same applet, one in
> a directory with the high-ascii chars. one not)

What supplies two URL's? Do you mean that the Webpage should be in
two places? Because that is not really an acceptable answer, since
this is a commercial applet, and the user should be able to put it
anywhere.

Does JAVA have a bug related to launching applets from folders that
contain high ascii characters? If so, is there a work-around?

Thanks
California_Paladin

Andrew Thompson

unread,
Nov 2, 2004, 4:21:18 PM11/2/04
to
On 2 Nov 2004 06:30:21 -0800, California Paladin wrote:

> Andrew Thompson <SeeMy...@www.invalid> wrote in message news:<jyygojssg94.yo3bmf4durpa$.d...@40tude.net>...
>> On 1 Nov 2004 08:49:42 -0800, California Paladin wrote:
>>
>>> I wrote an applet
>>
>> URL?

That is a (one word) question. Where is your applet, what is the URL?

(SheeeeEEEeesh!)

>> ...
>>> I find that the applet's constructor is not even called. This appears
>>> to be happening even before my code starts to run. Any suggestions?
>>
>> Supplies two URL's pointing to the same applet, one in
>> a directory with the high-ascii chars. one not)
>
> What supplies two URL's?

Typo. I meant 'Supply two URL's (to us for further testing)'

But I think Thomas' answer actually answers the question.
(shrugs) I was prepared to 'look into it' if you supplied two
URL's, whereas his answer indicates a good deal more experience
with the problem.

California Paladin

unread,
Nov 5, 2004, 9:29:05 AM11/5/04
to
Thomas Weidenfeller <nob...@ericsson.invalid> wrote in message news:<cm7jv1$2uv$1...@newstree.wise.edt.ericsson.se>...

Thomas:
Thanks for the help. Can I ask another question about URLs and ASCII?
Does this mean that no Java applet can be run from a website that has
German characters that contain umlauts?

Thanks again,
California_Paladin

California Paladin

unread,
Nov 5, 2004, 9:32:23 AM11/5/04
to
Andrew Thompson <SeeMy...@www.invalid> wrote in message news:<vejr7i7gcnxt$.i7ryz785bmfi$.d...@40tude.net>...

> On 2 Nov 2004 06:30:21 -0800, California Paladin wrote:
>
> > Andrew Thompson <SeeMy...@www.invalid> wrote in message news:<jyygojssg94.yo3bmf4durpa$.d...@40tude.net>...
> >> On 1 Nov 2004 08:49:42 -0800, California Paladin wrote:
> >>
> >>> I wrote an applet
> >>
> >> URL?
>
> That is a (one word) question. Where is your applet, what is the URL?
>
> (SheeeeEEEeesh!)
>
> >> ...
> >>> I find that the applet's constructor is not even called. This appears
> >>> to be happening even before my code starts to run. Any suggestions?
> >>
> >> Supplies two URL's pointing to the same applet, one in
> >> a directory with the high-ascii chars. one not)
> >
> > What supplies two URL's?
>
> Typo. I meant 'Supply two URL's (to us for further testing)'
>
> But I think Thomas' answer actually answers the question.
> (shrugs) I was prepared to 'look into it' if you supplied two
> URL's, whereas his answer indicates a good deal more experience
> with the problem.

Andrew:
I appreciate the help. Sorry I misunderstood your original answer.
Unfortunately, I cannot publish the URL, since it is still under
construction and my company does not allow pre-release access.

California_Paladin

0 new messages