Closed Bug 46518 Opened 24 years ago Closed 23 years ago

Javascript call Java and Java callback to Javascript fails

Categories

(Core Graveyard :: Java: OJI, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rpallath, Assigned: stanley.ho)

References

Details

(Keywords: crash, Whiteboard: oji_escalation, jpibug)

Attachments

(1 file)

This particular Test when invoked on Mozilla (7/25/2000 nighlty build).
using latest XPinstall Java Plugin (to be shipped with Netscape 6 PR2).
would throw an Exception and throw a java Plugin Exception Dialog box and hangs
the browser.

java.security.PriveledgedActionException:java.lang.reflectInvocationTargetException
at JavaToJS.doCallTest(javaToJs.java:146)
at  JavaToJS.CallTest(javaToJs.java:113)
at java.lang.refelct.Method.invoke (Native Method)
at sun.plugin.liveconnect.PriviledgedCallMethodAction.run (Secure..
at java.security.AccessController.doPrivleged(Native Method)
at  sun.plugin.liveconnect.Secureinvocation.CallMethod(


The test is faulty as it catches theException but then does not return.
It continues and that 's when it fails.

But then this could be very common in many of the pages out there, and 
it should not  hang the browser.

It does prompt the dilaog correctly but should not hang.


See Attchmt for the Tar (contains HTML , .class file and .java file).
jeff.dyer@compilercompany.com
Assignee: drapeau → jeff.dyer
Status: NEW → ASSIGNED
Keywords: crash
Revised summary, not a security bug.
Summary: LiveCOnnect Test throws Security Exception and fails. → Object passed through Liveconnect is collected twice.
Verified with nighlty build of mozilla (10/20/2000) with FCs bits of JRE 
(1.3.0_01) on WinNT/98


It no longer hangs the browser
Raju, can you please re-verify this so we can perhaps close it?
 added avm to CC list
Reassigning to Joe. May not be a bug.
Assignee: jeff.dyer → joe.chou
Status: ASSIGNED → NEW
*** Bug 84082 has been marked as a duplicate of this bug. ***
 This is the bug we now needs to solve!
Assignee: joe.chou → xiaobin.lu
*** Bug 59447 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Testcase executes on win32, then crashes.
Shouldn't this be a P1 or P2 at least?
Adding appropriate status to the Status Whiteboard.
Whiteboard: oji_escalation
We(Stanley and me) figured out a fix in Plugin side and the bug will be fixed in 
Java plugin 1.4.
Is there any coding work to be done in the Mozilla code base on this bug?  If
not, please re-assign to Stanley or close this as not-a-Mozilla bug, please with
the appropriate justification.
Whiteboard: oji_escalation → oji_escalation, jpibug
Stanley:
    Would you mind to own this bug? 
I filed a bugtraq bug against this. The number is 4475438. Reassign this to you.
Assignee: xiaobin.lu → stanley.ho
Status: ASSIGNED → NEW
*** Bug 65250 has been marked as a duplicate of this bug. ***
Summary: Object passed through Liveconnect is collected twice. → Javascript call Java and Java callback to Javascript fails
The fix will be intergrated with JRE1.4 Beta2 release. Bugtraq 4475438 has been
fixed by Stanley Ho.
Status: NEW → ASSIGNED
Blocks: 66372
SPAM: reassigning all OJI bugs to new OJI QA, pmac ( 227 bugs)
QA Contact: shrir → pmac
*** Bug 95930 has been marked as a duplicate of this bug. ***
Just another test case: http://www.highscore.de/mozilla/socket.html 
The error described in bug 95930 also happens when trying to create a 
java.net.Socket object (again access denied). 
http://www.highscore.de/mozilla/socket.html 
does work (no exception) with mozilla 0.9.5 and jdk 1.4 beta2 on win2k
;-)


output:

Here we go!
Trying new Socket() ... OK!
Trying new DataOutputStream() ... OK!
Trying new DataInputStream() ... OK!
Trying new BufferedReader(new InputStreamReader()) ... OK!
Let's notify the thread to wait for input ... 
Now we send HTTP request to get robots.txt of www.highscore.de
Here is the thread: Now we are waiting for input!
HTTP/1.1 200 OK
Date: Sun, 21 Oct 2001 11:49:57 GMT
Server: Apache/1.3.12 (Unix) PHP/3.0.14
Last-Modified: Sun, 22 Jul 2001 18:54:49 GMT
ETag: "653bd-19-3b5b2179"
Accept-Ranges: bytes
Content-Length: 25
Content-Type: text/plain

User-agent: *
Disallow:


connection closed
This bug has been fixed by Stanley Ho (fixed in Sun internal bug 4475438), and
the last comment seemed to confirm the fix. Mark fixed.
This bug has been fixed by Stanley Ho (fixed in Sun internal bug 4475438), and
the last comment seemed to confirm the fix. Mark fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: