IE Browser hangs after opening a file dialog. Workaround?
This is a registered bug (Bug ID: 6515708) but does anyone have a workaround for it?
Scenario
- javascript calls OpenDialog() method in applet
- applet starts new thread which opens the AWT FileDialog
- on completion, the file name is read and the javascript method OnDialogComplete is called
- At this point the dialog is disposed and (on some browsers only) the browser hangs.
We have a mixture of XP with IE6/7 and Vista with IE7 but unfortunately the bug appears randomly on any of them.
Ideas anyone?
Asked by: Kimberly900 | Posted: 21-01-2022
Answer 1
The bug report suggests it only happens when two FileDialogs are open at once. Perhaps you could detect when the Java implementation is affected (pre-1.6.2), and in that case use an inter-applet-communication method such as a static variable on a class, to implement a mutex preventing OpenDialog() from working when there is already a FileDialog in progress?
Answered by: Vivian527 | Posted: 22-02-2022Similar questions
object - Java variable aliasing workaround
I've recently moved to Java, but I've had some problems with variable aliasing. I've searched everywhere, but I can't seem to find the proper way to copy the contents of one object to another object without just referencing to the same object. Does anyone have any suggestions?
Edit: What if it is an int that I am having aliasing problems with? Should I be avoiding situations like this in the first place? If so, how...
rest - Java interface static method workaround?
We have a given REST interface:
POST /calculation
<data>abc</data>
This calculation can be implemented by different logical "calculators" depending on the server config.
We are now designing the Java interface that each calculator must implement. The interface will have a method for each REST service.
Given that all REST (and HTTP) calls are stateless, each...
Java workaround for BigInteger
I was working on a scenario wherein i had to implement BODMAS in Java and the operands could have as many as 1000 digits. So i chose to implement it in the following manner -
I converted the infix expression (expression on which BODMAS was to be implemented) to postfix
And then i evaluated the postfix expression by parsing every BigInteger that it had.
I was successful in this implementation.
Now i get to know th...
java - Workaround for running tomcat with IntelliJ, maybe a script to push to tomcat?
what kind of workarounds would you guys suggest if I want to run a spring mvc project in intellij (free version) and run it on tomcat?
How about a script to push compiled files to a running instance of tomcat?
how would this work?
java - Hibernate bug, how to workaround?
I use Hibernate 3.5.3, and Oracle 10g database
I have bean with following relation
@OneToMany
@JoinTable(name="dispenser_accounts",
joinColumns=@JoinColumn(name="terminal_id"),
inverseJoinColumns=@JoinColumn(name="dispenser_section_id"))
@MapKey(name="dispenserNumber")
private Map<Integer, DispenserAccount> activeDispensers = new HashMap<Integer, DispenserAccount>();
java - JAXB workaround for Chameleon XSD imports?
this is my first question, so please be gentle ;)
I'm stuck with a weird problem. Essentially i get three XSD definitions like the following:
PartA.xsd
targetNameSpace="PartA"
include="PartB.xsd"
PartB.xsd
<!-- no namespace definition!!! -->
PartC.xsd
targetNameSpace="PartC"
inlude="PartB.xsd"
import="PartA.xsd"
The error pops up, when binding PartC via JAXB to Jav...
java - Array element set pointcut. Is there a workaround?
I just read that it is not possible to define a pointcut on a single array element (bug link). Considering I really need to detect an array element modification, I would like to know if there is any workaround for this kind of problem (a pattern or something).
Something like what is described in
java - Workaround for the missing NVL() in JPA 1.0
is there a workaround for the missing NVL() function in JPA 1.0 (Eclipselink 1.1.x)?
Thank you and best regards
Java bug in sleep() when changing OS time : any workaround?
The bug that annoys me is the same than this ticket. Basically, if you change the OS clock to a date in the past, all the thread that were sleeping at the time of the change won't wake up.
The application I am developping is meant to be running 24/24, and we would like t...
java - How to workaround this JDK limitation?
I'm looking for a class from the Java Collection Framework that would not allow null elements.
Do you know one?
Still can't find your answer? Check out these amazing Java communities for help...
Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)