S
Storm
Dear Colleagues,
An advanced Java (i.e.: SUN Java Plugin 1.4.2_05) issue would require
your expertise. Inside a "JRE/1.4.2_05" environment (i.e.: version
prior to that latest installment are performing with an adequate
satisfaction) the execution of an "Applet", acquiring native methods
through a "JNI/Win32" interface and returning data using the
"jaws.jar", (i.e.: JSObject callback to "Javascript") hangs on the
"callback" invocation. (i.e.: it is happening in a "single threaded"
environment)
Please note that the invoked "Java" routine is not returning (i.e.:
the "JavaScript/Jdirect" call happens just before), as well as the
"JavaScript" callback is not being entered.
As remarkable as it could be, to unblock the "Java" runtime main
thread, one would right click on the "Internet Explorer" window (i.e.:
right in the task bar). Consequently the execution of the process
continues.
I have explored numerous options including "Thread" notifications,
garbage collections and method finalizations without success. Finally,
the option of duplication the "hWnd"
based "Win32" messaging flow stood as my ultimate option. I have
finally managed to retrieve the top level "hWnd" handle from my
"JDK1.4.2_05/Win32" environment, not to say easily…; and declared
method such as "SendMessage", "SetFocus", "SetEnabled" (i.e.: and so
on) to replicate the behavior of my "right click". Through the "Spy++"
delivered messaged I, unfortunately, had no chance to discover the
message (i.e.: or the sequence) that had unblocked my process.
Please note that these "JNI/Win32" calls are executed inside a
separate thread, which is not blocked by the "main/thread" freeze.
Finally, I am relying on your wisdom and experience to win that quite
complicated case, unless an upcoming release of the "SUN/JRE" would
correct that damned state of things.
Thank you for your time; and please do not hesitate to come back for
details.
An advanced Java (i.e.: SUN Java Plugin 1.4.2_05) issue would require
your expertise. Inside a "JRE/1.4.2_05" environment (i.e.: version
prior to that latest installment are performing with an adequate
satisfaction) the execution of an "Applet", acquiring native methods
through a "JNI/Win32" interface and returning data using the
"jaws.jar", (i.e.: JSObject callback to "Javascript") hangs on the
"callback" invocation. (i.e.: it is happening in a "single threaded"
environment)
Please note that the invoked "Java" routine is not returning (i.e.:
the "JavaScript/Jdirect" call happens just before), as well as the
"JavaScript" callback is not being entered.
As remarkable as it could be, to unblock the "Java" runtime main
thread, one would right click on the "Internet Explorer" window (i.e.:
right in the task bar). Consequently the execution of the process
continues.
I have explored numerous options including "Thread" notifications,
garbage collections and method finalizations without success. Finally,
the option of duplication the "hWnd"
based "Win32" messaging flow stood as my ultimate option. I have
finally managed to retrieve the top level "hWnd" handle from my
"JDK1.4.2_05/Win32" environment, not to say easily…; and declared
method such as "SendMessage", "SetFocus", "SetEnabled" (i.e.: and so
on) to replicate the behavior of my "right click". Through the "Spy++"
delivered messaged I, unfortunately, had no chance to discover the
message (i.e.: or the sequence) that had unblocked my process.
Please note that these "JNI/Win32" calls are executed inside a
separate thread, which is not blocked by the "main/thread" freeze.
Finally, I am relying on your wisdom and experience to win that quite
complicated case, unless an upcoming release of the "SUN/JRE" would
correct that damned state of things.
Thank you for your time; and please do not hesitate to come back for
details.