Problem with HTTPConnection to a servlet

RESOLVED WORKSFORME

Status

Core Graveyard
Java: OJI
--
critical
RESOLVED WORKSFORME
17 years ago
8 years ago

People

(Reporter: Vasile Hanzu, Assigned: Joe Chou)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
I have a problem using the Http URLConnection and DataOutputStream classes in 
an applet running in the Java Plugin built into Mozilla 0.9.7

The applet is supposed to communicate with a servlet over HTTP. I send a POST 
request to the server with a query and read the response. The code is :

      URL servletURL = new URL(serv);
      con = servletURL.openConnection();
      con.setDoOutput(true);
      con.setDoInput(true);
      con.setUseCaches(false);
      con.setRequestProperty("REQUEST_METHOD", "POST");
...
      pst = new PrintStream(con.getOutputStream());
// write the query
      pst.print( querry );
      pst.flush();
      pst.close();

InputStream in = con.getInputStream();
....

The problem occurs when I write the query (a String). The follow messages 
occur:


OJIPlugin acq Spontaneous pipe=10
Trying to enter spont monitor: 0
 OJIPlugin release 
for:Thread[Thread-15,1,http://vasi.sec.co.ro:8080/voh-ui/-threadGroup]
OJIPlugin releasePipe - exiting spont monitor
Current thread:Thread[Finalizer,8,system]
OJIPlugin: No AThread

OJIPlugin acq Spontaneous pipe=10

This message appears several times and Mozilla blocks all the interface.
It should connect to servlet and a message should apper on Tomcat's console.

Comment 1

17 years ago
Reporter: Please always specify which "Build ID" you are using,
as found in the title bar of the Mozilla window.

Comment 2

17 years ago
I am having this same problem see my but 113957 it has build and examples
Blocks: 113957

Comment 3

16 years ago
Please  specify java version you're using and attach java console verbose output
(level 5) to the bug
wfm, as nobody can reproduce it. reopen if you can.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME

Updated

16 years ago
QA Contact: pmac → petersen

Updated

8 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.