Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Problem to load applet Mac os X

Reply
Thread Tools

Problem to load applet Mac os X

 
 
sebos
Guest
Posts: n/a
 
      02-24-2006

Hi,

I have 3 applets in my application, on three different jsp pages.

On Mac os X,they work very well when java console is displayed. But,
when the console is hidden, the first applet is correctly executed but
the second can't be loaded and I have to kill Firefox.

On Windows, i have no problem, with or without java console.

I don't know if the problem is due to java configuration or into applet
code ... and my applets are very simple. They are certificated because
i have to read a directory on client computer.

Thanks,

Seb

 
Reply With Quote
 
 
 
 
Ike
Guest
Posts: n/a
 
      02-24-2006
Hi Seb,

Yes, I have exactly the same problem on Solaris -- this is a BUG in Java
since 1.4.2 ! See:

http://bugs.sun.com/bugdatabase/view...bug_id=4992509

In other words, if you have more than one applet on a page, forget about it
working on anything BUT Windows!

It sucks, I know. The promise of platform independence! -Ike


 
Reply With Quote
 
 
 
 
sebos
Guest
Posts: n/a
 
      02-25-2006
But, in my case, i have only 1 applet per page. In the first page
(login page), an applet reads a client directory and returns values
with JsObject to communicate with javascript. This one works well. But,
when i go on the second page after loging, my second applet doesn t
work (when java consoel is hidden, otherwise it's ok). It has to
display picture found in client directory.

I don t know how to resolve this bug ...

 
Reply With Quote
 
Ike
Guest
Posts: n/a
 
      02-25-2006
It may be a bug in the Sun database,though, as you point out, likely a
different bug than the one I quoted you (which I am wrestling with a
workaround for!).

If that is the case, perhaps you could do a workaround as follows:

JTextArea debugTxtConsole = new JTextArea();
PrintStream out = new PrintStream(new TextAreaOutputStream(
debugTxtConsole) );
System.setOut( out );
System.setErr( out );

//this would redirect the console output to a text area, which is not
displayed, perhaps an ugly workaround for this problem you are having -Ike



"sebos" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> But, in my case, i have only 1 applet per page. In the first page
> (login page), an applet reads a client directory and returns values
> with JsObject to communicate with javascript. This one works well. But,
> when i go on the second page after loging, my second applet doesn t
> work (when java consoel is hidden, otherwise it's ok). It has to
> display picture found in client directory.
>
> I don t know how to resolve this bug ...
>



 
Reply With Quote
 
sebos
Guest
Posts: n/a
 
      03-01-2006
thx for your help.

Thx for your solution. I tried it but my problem is another When I
load my jsp the first time, I have no problem, applet is correctly
executed but the second time, the applet can't be loaded .... and
firefox is blocked ...

do you have an idea ?

 
Reply With Quote
 
sebos
Guest
Posts: n/a
 
      03-01-2006
I add just Applet can't be loaded only when console is hidden. when it
s displayed, i have no problem

 
Reply With Quote
 
sebos
Guest
Posts: n/a
 
      03-02-2006
So ....

My problem is due to local network and only firefox 1.5.1 ...

When I put my applets on my web site, I have no problem... with or
without console.

Then, I put my applets on my first computer, and with my second i
connect to it. With open console -> no problem. With hidden console, i
can execute applet juste one time, and they fail the second time.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Applet Under Mac Leopard Roedy Green Java 7 06-19-2009 12:03 AM
Problem when using AJAX to load a Java applet J Y Java 4 06-29-2008 07:48 PM
Java applet failed when I try to load the avi file in my java applet Krista Java 3 09-15-2004 02:53 AM
Applet - server communication - edited code on the applet side - problem! Rune Andresen Java 2 09-17-2003 06:26 PM
applet vs. canvas in applet Rob Love Java 1 07-07-2003 10:07 PM



Advertisments