Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet on mac hangs

Alex Durum
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm currently working on applet that is running well in a windows environment (using different versions of the Sun JRE). Now, I'd like to have this applet also being available to mac users (safari browser - sun jre for mac).
The applet is relatively simple : it is running in the background and pops up when called by the javascript when the application needs the password from the user (it's pki app, signed for filesystem access).
The applet loads correctly but it seems to have a problem to display the AWT dialog box and more precisely it seems to freeze when the showDialog method that afterwards creates the awt frame and draws it, is called.
To get rid of it, the browser must be closed.

It looks like a deadlock or a thread priority problem, as if the awt thread can't go on...

Did anyone experience the problem once ?

For your info, when my applet starts, I'm starting another thread (say t2) to make my methods callable from the javascript. It's a signed applet, and Sun recently changed the policy regarding applet-javascript communication (briefly stated, threads in applet initiated by a javascript call, don't have the privileges to perform sensitive operations (among others, file acces...) anymore. So my main thread actually delegates its work to the second thread I created (t2) (more info somewhere on the sun java forum)

Could that be linked to the problem ? It's working correctly on windows, however.

Thanks for your help.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic