Closed Bug 117968 Opened 23 years ago Closed 23 years ago

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

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: pmml, Assigned: joe.chou)

References

Details

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>
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
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.
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
Closed: 23 years ago
Resolution: --- → WORKSFORME
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
*** Bug 113122 has been marked as a duplicate of this bug. ***
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.