I have a basic applet method timing problem with Firefox (and Chrome), not IE nor Opera. Works if JavaScript issues windows.alert() prior, fails otherwise.

I have an applet method, which is invoked from a JavaScript function, that is triggered by the window.onload event. The problem seems to center in the loading of the applet and its methods.
If I step through the 3 applet acceptance prompts (I chose to use a down-level Java), the applet method is never invoked, nor is an exception raised. How this happens is beyond my understanding.
As additional information, the Init(), start(), and "desired" Java methods all use the synchronized keyword. This is an attempt to minimize the exposure to a multi-thread environment.
If I issue a message from JavaScript (via window.alert()) PRIOR to invoking the method, I can get the desired results in special circumstances:
1) When the alert is presented, Firefox also prompts, SIMULTANEOUSLY, to block/continue the applet (the first of the 3 applet acceptance prompts). I can accept that these are separate threads.
2a) If I walk through the 3 applet acceptance prompts FIRST, and then hit the OK button on the alert message SECOND, I get the desired results, my applet method executes, and all is well (other than the fact that I would prefer not to have the alert in place at all).
2b) If I hit the OK button on the alert message FIRST, and then walk through the 3 applet acceptance prompts SECOND, I get the same results as when the page loads WITHOUT the alert, which is the applet method is never invoked, nor is an exception raised. Weird, huh?
The above problem only occurs when the browser and the applet's URL are loaded for the first time.
Subsequent invocations (after the page & applet has been loaded initially) do not have the failing symptoms.
It is my understanding that IE and Firefox (and Chrome and Opera, for that matter) each use the same implementation of JavaScript provided by Microsoft. Please correct me if this information is inaccurate.
The failing page and it's applet are proprietary; I cannot provide the Internet URL, nor the Java or JavaScript source, to aid in your analysis.

I can speak to the source code, but have no access to it.
The current process/thread that invokes an applet method must check to see that the applet is not currently being loaded by another process/thread. If it is being loaded, the current process/thread should block until the load is complete, THEN attempt to invoke the applet method.
Please forward my concern to a knowledgable developer. The nature of the problem, once identified, can be addressed in a very straightforward manner.

Similar Messages

  • Problem with firefox and chrome

    Hi guys,
    i've a problem with chrome. When i download something with google chrome and at the bottom i press on the file or show all downloads,  i'm redirected to firefox :0
    Tried also to uninstall firefox. No way, nothing happen if i press show all downloads or press on the downloaded file.
    Any advice?
    Thanks guys.

    Perhaps Mate isn't as gnome-like as I thought.  I just found this which looks to be a solution.
    Or, my solution to all xdg-open related problems: replace it.  I've writen a tiny script like below that I replace /usr/bin/xdg-open with so I can stay in control of what it is doing.
    #!/bin/bash
    # replacement for /usr/bin/xdg-open
    for f in $@; do mime=`file -b --mime-type "$f"`; case "$mime" in
    #MIME-TYPE) APPLICATION <END LINE WITH ;;>
    audio/*) mplayer "$f" ;;
    video/*) mplayer "$f" ;;
    */pdf) mupdf "$f" ;;
    esac; done > /dev/null 2>&1 &
      I would not recommend this script if you are not comfortable editting scripts as it does need customizing.  However, the alternate solution is to edit a much longer and much more confusing script.
    Edit: cleaned up my ugly script, as it is a work in progress.
    Last edited by Trilby (2012-05-14 15:46:54)

  • Still problems with firefox and chrome on the slideshows.

    Hello, I've been struggling with this problem for several days now. I can't get firefox 3.06 or chrome to load the slideshow created on iweb 3.03. Chrome would not even load the albums.
    Works fine on Safari.
    I reinstalled iweb. Nothing changed.
    Some of my friands could create sites that work fine without any particular patch, but some other people seem to have my problem as well. Any idea anyone?
    Thx for a much needed help.
    Message was edited by: melmdb

    What's the URL of your site so we can examine it first hand?
    OT

  • Whatsnew page for 3.6.17 has formatting problems with Firefox and I.E.

    I just updated from 3.6.16 to 3.6.17n and the whatsnew page, displayed after Firefox restarted, has formatting problems in the lower right hand corner.
    I checked it with I.E. 8 and it also shows the formatting problem.
    Why wasn't this caught before the page was put into "production"?
    The URL is http://www.mozilla.com/en-US/firefox/3.6.17/whatsnew/
    There is a line with the text "Release Notes » Firefox Features » Firefox Help »" that is being displayed on top of other material.
    I wonder what a new Firefox user or an inexperienced user would think of this? They might think that they did something wrong or, worse, they might consider Firefox had problems and they won't use it.
    This reflects badly on Firefox.
    One more thing, could someone make this textarea taller and wider. It is so small as to cause problems typing and proofing the material.
    The URL is https://support.mozilla.com/en-US/questions/new?product=desktop&category=d6&search=whatsnew+page+for+3.6.17+has+formatting+problems+with+Firefox+and+I.E.&showform=1
    How about upping the cols and rows values? They are currently rows="10" cols="40"

    As you have a Power Mac you also have a alternative option to consider which is a third-party build from http://tenfourfox.blogspot.com/2011/08/601-now-available.html

  • Cookie(?) problem on Firefox AND Chrome in xfce4

    So, this is a weird one:
    Firefox and chrome refuse to let me log-in to the majority of forums.  I enter my login details, get the 'please wait, redirecting...' then it takes me back to the login screen.  This is across multiple, unconnected forums.  opera doesn't seem to have this problem, although I do get 'invalid session, please resubmit form' occasionally when making posts using opera.
    I'm at a bit of a loss as to how to solve this problem.
    Obviously I've tried clearing my cache multiple times in both browsers, clearing down all my cookies and saved passwords / sessions etc  but the problem refuses to go away.  Help!

    Which Firefox/Chrome do you use ? Which site is that you mentioned ? Is there any output if you start these from console? Could you compare the output in terminal when you run opera and firefox e.g.?

  • How can I fix a problem between Firefox and my printer? When I try to print a window appears Save as ,then another saying Firefox not responding and printing does not work

    I used to be able to print correctly using Firefox as my browser,but something changed in the last month or so,possibly after a Firefox update. I`m not really sure how it happened but there seems to be a problem between Firefox and my printer. So I have been using Internet Explorer as my default so I can print. I would prefer to use Firefox again since that is where my bookmarks are. Is there a way to get the connection between Firefox and my printer back?

    '''Save as''' = sounds like you don't have your printer selected, or you have ''Print to file'' selected
    http://kb.mozillazine.org/Problems_printing_web_pages

  • Zzxc: I am having problems with Firefox and a Google gadget score board on my Google home page. Every time I go to my Google homepage, a file called "scores.htm" downloads into my Firefox download. I can have at least 50 of those files downloaded over t

    You have chosen to open “scores.htm”
    What should Firefox do with this file?
    -Open with: Firefox (default), or other
    -Save file?
    Do this automatically for the files like this one.
    I chose cancel and when I rebooted the Google page the same window came up.
    I don’t want to open with or it will open with something every time I come back to Google.
    The best option until this is resolved is to “Save File” and that continues to down load into the “Download Firefox” folder.

    When I go to my Google page with the sport scores gadget on, Firefox download, in the downloads window a file "scores.htm" everytime. Consequently I have 10's if not 100's over time of scores(1), (2)(3).htm respectively. How do I stop it?

  • I can't get into my yahoo bookmarks. I have spent time with AT&T and the conclusion they came to is that it may be a problem with Firefox and yahoo. Help please

    I am using a HP Laptop NOT mobile device. Every time I try to go into my YAHOO bookmarks it asks me to sign in which I do to no avail. AT&T came to the conclusion it may be that Firefox and Yahoo are not working together. I just downloaded both the latest versions of Firefox and the yahoo toolbar again to no avail. Is there something with Firefox that is preventing me from getting into my yahoo bookmarks??

    It's really up to you how often you want to clear history. If you have a large hard drive, Firefox may save history for a year or more...

  • Problem with Firefox and very heavy memory usage

    For several releases now, Firefox has been particularly heavy on memory usage. With its most recent version, with a single browser instance and only one tab, Firefox consumes more memory that any other application running on my Windows PC. The memory footprint grows significantly as I open additional tabs, getting to almost 1GB when there are 7 or 8 tabs open. This is as true with no extensions or pluggins, and with the usual set, (firebug, fire cookie, fireshot, XMarks). Right now, with 2 tabs, the memory is at 217,128K and climbing, CPU is between 0.2 and 1.5%.
    I have read dozens of threads providing "helpful" suggestions, and tried any that seem reasonable. But like most others who experience Firebug's memory problems, none address the issue.
    Firefox is an excellent tool for web developers, and I rely on it heavily, but have now resorted to using Chrome as the default and only open Firefox when I must, in order to test or debug a page.
    Is there no hope of resolving this problem? So far, from responses to other similar threads, the response has been to deny any responsibility and blame extensions and/or pluggins. This is not helpful and not accurate. Will Firefox accept ownership for this problem and try to address it properly, or must we continue to suffer for your failings?

    55%, it's still 1.6Gb....there shouldn't be a problem scanning something that it says will take up 300Mb, then actually only takes up 70Mb.
    And not wrong, it obviously isn't releasing the memory when other applications need it because it doesn't, I have to close PS before it will release it. Yes, it probably is supposed to release it, but it isn't.
    Thank you for your answer (even if it did appear to me to be a bit rude/shouty, perhaps something more polite than "Wrong!" next time) but I'm sitting at my computer, and I can see what is using how much memory and when, you can't.

  • Problem with firefox and gtk applications in KDE!

    Hi there, i have my arch installed and it's great, i use kdemod that is quite perfect but i have a problem: all the gtk applications like firefox, eclipse, emesene and so on are terrible looking expecially the fonts. Here what I've done:
    1) installed kdemod-gtk-qt-engine and configured to use qt theme and it's better
    2) enabled fonts with antialiasing and hinting
    3) installed fonts for lcd like cairo-lcd
    4) installed microsoft fonts
    But stille it's ugly and it's impossible to use the apps, here's a screenshot:
    The point is that i can't use konqueror because i need some plugins like googlebrowsersync that doesn't exist for konqueror. And in other distros like n00buntu it works.
    Thanks for your help!

    pelle.k wrote:
    I can relate to what borzo is saying, because i have exactly the same problem.
    See, i have installed libxft-lcd and enabled antialiasing and sub-pixel hinting in kde font properties. All kde fonts look great. Now, i usually the exactly the same in gnome "Appearance" font settings (when i use gnome).
    The thing is when you have KDE installed you can't set antialiasing and sub-pixel hinting for *GTK* apps, even if you can set a theme and font size with gtk-chtheme/.gtkrc
    This has nothing to do with how firefox renders fonts, really, but how GTK fonts a drawn in KDE since gnome-settings-manager isn't running, and thus GTK apps get crappy fonts (including firefox html rendering).
    So, how can i enable antialiasing and sub-pixel rendering specifically for GTK apps in KDE without running gnome-settings-manager?
    I know this is an old thread, but I'm still having exactly the same problem. I've been fiddling with fonts for a whole week now. Fonts in KDE apps look great, but crappy in GTK-apps like Thunderbird and Firefox. Like Pelle asked: how can I set aintialiasing and sub-pixel redndering for GTK apps? When running Gnome the fonts in GTK-apps look so much better. I wanna use my shiny new KDE 4 desktop, though.

  • Problem with firefox and menus

    I have an intermittent problem in Firefox with menus.  I click on a menu or a drop down button and, as soon as I move my mouse over the menu, it disappears.  The only way to select something on the menu is to leave my mouse where it is and use the arrow keys and enter to select an item.
    Not sure if it's relevant, but I'm using fluxbox as my window manager.

    There has been a bugreport about this, I can't find it right now, but this seems to be a bigger issue. I had this behavior with i3. The behavior was a bit different than you described, but it also affected the menus, so it's related. And yes, this made me very angry as well

  • Ebay - cannot copy and paste or type in 'decribe your item' box. Ebay support said it may be a problem with firefox and java and to contact you.

    I had the same problem with IE9. Ebay said try Mozilla as browser so I downloaded that but same problem.
    the 'Sell your item' page allows me to type in all relevant info except for the box where you have to provide a description. Using copy and paste, it can take several hours to paste into the box! Now with Mozilla the same is happening and I haven't yet been able to paste - or even type - anything after several hours wauting for the spinning thing to stop.

    See also:
    *https://support.mozilla.org/kb/firefox-opens-transparent-or-blank-window

  • 10.4.10 image problem with Firefox and Photoshop on Intel and OD AFP server

    We are working on a new client image (perfect client image to deploy with Netboot) and our Intel machines, new and old, are throwing errors in CS2 Photoshop and refusing to launch Firefox when we log in to home folders from the OSXserver, local accounts run OK. The Intel Mac Pros we got last year ran Photoshop fine using last years image. Power Macs are running OK logged in on the server and local. The biggest variable is we are now running 10.4.10, the last image was 10.4.9. Anyone seen this, any thoughts, I have tried everything I can think of.
    Thanks!

    I haven't had any problems with 10.4 and solaris 10. At some point Apple upgraded to some version of OpenSSH that required the addition of the -Y switch to make things work well.

  • Audio problems with Firefox and IE

    k I am running windows xp sp3 pro.
    A fww days ago Audio just stopped working in flash files. just upped and started working for me. it worked then stopped. sooo I uninstalled, reinstalled. turned my speakers to the poitn of that if sound came out Id be able to hear it. made sure that flash volumn button was also turned to max. My windows plays sound JUST fine cause winamp works with no issues whatsoever.
    I dont have google voice/chat installed OTHER then whats included in trillian astra build 103 but i had audio working after i installed it.
    i have adblock plus in fireox and imacros installed and for IE i have zero plugin running on it at all. i honestly dont even use it. i did an install for flash for ie the first time today to see if it work there and I got nothing still. video works fine btu not gettign ny audio whatsoever.
    I was wondering if there is another thing I could try to get it working. thanks
    and yes I know this is a really common problem but i couldn't find any actual fixes on google thanks!

    so anything? Is there any more information that is needed or anything I could try?

  • Publishing problems with Firefox and Explorer

    My webpage, www.jcohen.org, works reasonably well in Safari, but formatting and links fall apart in other browsers. I uploaded the Site folder and index.html to my host with Fetch, and I did not have a proxy. I created my own navbar in iWeb, which may be part of the problem? Any thoughts welcome.

    You need to increase the navigation text box in length and center it on the page.
    The fact that the navigation menu is being forced to cause a "return" in IE means that it is being partially covered by the image.
    You could also move the image down the page a bit.
    Make sure you are using a web safe font...
    http://www.iwebformusicians.com/WebMusic/FontsandColors.html

Maybe you are looking for

  • How do I download video from my Panasonic SDR H85 to my Macbook Pro running 10.8.3?

    I connect the camera to my macbook pro and iphoto recognizes and downloads a snapshot but only says downloding video. It does not progress past that point. Am I missing something? It shouldnt be this tricky!!

  • How to get list of docs for particulat billing type on plant wise

    very urgent is there any t-code, report to look thi how to get list of billing docs grnerated  for particulat billing type and if possible  on plant wise also very urgetnt points to be rewarded eagerly waitng from sap gurus

  • How To make program to use rtf template to show excel output

    Hi I have created template in rtf and have created data definations and registerd template on application R12 Now when i run report using submit process it didn't show the template in layout field when we are submitting report request tell me about t

  • Exception error when args[ ] count exceeds 7

    Hello world! I keep getting this error when I try to pull more than seven args from a command line: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7 My main looks like this: public class LocalPrintTA_SI { static String triadver,

  • Active-active vs Active-pasive topology

    We are trying to install soa-suite in High Availability Environment. I understand that active-active more scalable and better performance. Is any body know on how much more work to install active-active topology? Is it a lot more difficult to maintai