Closed
Bug 366778
Opened 18 years ago
Closed 15 years ago
no/bad error/exception propagation from java to javascript/liveconnect: raises PrivilegedActionException and InvocationTargetException
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: kostmo, Unassigned)
Details
(Whiteboard: [CLOSEME 5-15-2010])
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)
Exception handling from JAVA to JavaScript (LiveConnect) does not work. The examples on MDC about "Handling Java Exceptions in JavaScript" fail.
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:LiveConnect_Overview:JavaScript_to_Java_Communication#Handling_Java_Exceptions_in_JavaScript
Behavior is the same in Firefox 2.0.0.1 in Linux and Firefox 1.5.0.9 in Windows XP.
Reproducible: Always
Steps to Reproduce:
<script>
try {
var theClass = java.lang.Class.forName("blah");
} catch (e) {
alert("The Java exception is:\n" + e);
}
</script>
Actual Results:
(In an alert box):
The Java exception is:
java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
This also happens whenever a compiled (.class) Java applet throws an exception.
Expected Results:
(In an alert box):
The Java exception is:
java.lang.ClassNotFoundException: blah
The error message from the Java console should be propagated to JavaScript in Firefox. However, there seems to be some kind of communication barrier between the Java plugin and JavaScript.
Comment 1•15 years ago
|
||
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 5-15-2010]
Version: unspecified → 2.0 Branch
Comment 2•15 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.x or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•