Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Problem to load applet Mac os X

Thread view: 
sebos - 24 Feb 2006 10:55 GMT
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
Ike - 24 Feb 2006 13:16 GMT
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.do?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
sebos - 25 Feb 2006 08:14 GMT
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 ...
Ike - 25 Feb 2006 14:35 GMT
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

> 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
[quoted text clipped - 4 lines]
>
> I don t know how to resolve this bug ...
sebos - 01 Mar 2006 09:14 GMT
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 ?
sebos - 01 Mar 2006 09:34 GMT
I add just Applet can't be loaded only when console is hidden. when it
s displayed, i have no problem
sebos - 02 Mar 2006 09:07 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.