If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Exception when using an applet to connect to the remote server using a HTTP POST

RESOLVED WORKSFORME

Status

Core Graveyard
Java: OJI
--
major
RESOLVED WORKSFORME
16 years ago
7 years ago

People

(Reporter: Paulo Lopes, Assigned: Joe Chou)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7+)
Gecko/20020102
BuildID:    20020102

I have an applet that calls a jsp using a HTTP POST instead of traditional HTTP
GET. Also have a JavaScript that connects to the
Applet and then passes information to send using the HTTP POST.

The received data is pre processed on the applet and then is passed
back to the script.

This was working quite well on previous versions of Mozilla <= 0.9.6 and MS
Internet Explorer >= 5, now all i get is:

java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException:
java.security.AccessControlException: access denied (java.net.SocketPermission
shadow resolve)

at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.connectStep1(Unknown Source)
at sun.plugin.protocol.jdk12.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at Request.runDownload(Request.java)
at JRSProxy.JRSCall(JRSProxy.java)
at java.lang.reflect.Method.invoke(Native Method)
at sun.plugin.liveconnect.PrivilegedCallMethodAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)

NOTE: shadow is the name of my local computer.

Reproducible: Always
Steps to Reproduce:
1. open mozilla
2. goto url: http://shadow/www/index.jsp
3. click on "Ok" button to call my javascript to connect to applet

Actual Results:  on the java plug-in window, i get an exception on browser,
nothing happens

Expected Results:  run the applet as in previous versions

my applet tag is:

<applet name="jrsproxy" code="JRSProxy.class" width="0" height="0" MAYSCRIPT
codebase="/www/applets" cabbase="Applets.cab"></applet>

Comment 1

16 years ago
Reassigning to OJI component, cc'ing Mitch for Security aspect -
Assignee: rogerl → joe.chou
Component: Live Connect → OJI
QA Contact: pschwartau → pmac
Summary: exception when using an applet to connect to the remote server using a HTTP POST → Exception when using an applet to connect to the remote server using a HTTP POST

Comment 2

16 years ago
Looks very similar to bug 113122:

"When I am trying to make a connecton to an URL the following error occurs
Error: uncaught exception: java.security.PrivilegedActionException"

                         etc.
(Reporter)

Comment 3

16 years ago
I think i've found some solution for this bug.

1st, uninstall java plug-in.
2nd, download SUN's Java Plug-in 1.3.1_02-win_i and installed it.
3rd, replace all the DLL's from the default java plug-in by the
ones provided from SUN's Java Plug-in. And now it works fine!
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME

Comment 4

15 years ago
Chris Petersen is a new QA contact for oji component. His email is:
petersen@netscape.com
Assignee: joe.chou → petersen
fixing small error for pmac@netscape.com (filter with : SPAMMAILSUCKS)
Assignee: petersen → joe.chou
QA Contact: pmac → petersen

Comment 6

15 years ago
*** Bug 113122 has been marked as a duplicate of this bug. ***

Updated

7 years ago
Component: Java: OJI → Java: OJI
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.