While load testing MyServlet
Using-
Solaris 7/sparc
java version "1.2" Solaris VM (build Solaris_JDK_1.2_01_dev06_fcsV, native
threads, sunwjit)
Apache Jserv 0.9.12 (experimental thread pool not enabled)
Apache 1.3.4
I am getting the following (skip to jserv_errors.log) sporadic errors. The
server stays useable until I get
java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.String.<init>(Compiled Code)
at java.lang.StringBuffer.toString(Compiled Code)
at java.lang.Thread.<init>(Compiled Code)
at org.apache.jserv.JServHandler.run(Compiled Code)
Then I need to manually kill jserv and restart. I implemented a work around
in JServHandler (see diff below) but I would like to fix what ever is
causing
the problem. Does anyone have any ideas?
FYI MyServlet runs fine with the jsdk2.0 servletrunner
FYI2 I have recompiled Jserv 0.9.12 with jsdk2.0
jserv_errors.log
[28/02/1999 14:03:41 CST]: JServ Startup complete. Listening for
connections on port 8007
[28/02/1999 14:03:42 CST]: Received SIGTERM : shutting JServ down.
[28/02/1999 14:03:44 CST]: JServ Startup complete. Listening for
connections on port 8007
java.lang.IllegalMonitorStateException: current thread not owner
at java.io.OutputStreamWriter.flush(Compiled Code)
at java.io.BufferedWriter.flush(Compiled Code)
at java.io.PrintWriter.flush(Compiled Code)
at org.apache.jserv.JServConnection.sendHttpHeaders(Compiled Code)
at org.apache.jserv.io.JServOutputStream.write(Compiled Code)
at javax.servlet.ServletOutputStream.print(Compiled Code)
at MyServlet.doPost(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.ref.ReferenceQueue.enqueue(Compiled Code)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:121)
java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.String.<init>(Compiled Code)
at java.lang.StringBuffer.toString(Compiled Code)
at javax.servlet.http.HttpUtils.parseName(Compiled Code)
at javax.servlet.http.HttpUtils.parseQueryString(Compiled Code)
at javax.servlet.http.HttpUtils.parsePostData(Compiled Code)
at org.apache.jserv.JServConnection.parseParams(Compiled Code)
at org.apache.jserv.JServConnection.getParameterValues(Compiled Code)
at MyServlet.doPost(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
java.lang.IllegalMonitorStateException: current thread not owner
at java.io.OutputStreamWriter.write(Compiled Code)
at java.io.BufferedWriter.flushBuffer(Compiled Code)
at java.io.BufferedWriter.flush(Compiled Code)
at java.io.PrintWriter.flush(Compiled Code)
at org.apache.jserv.JServConnection.sendHttpHeaders(Compiled Code)
at org.apache.jserv.io.JServOutputStream.write(Compiled Code)
at javax.servlet.ServletOutputStream.print(Compiled Code)
at MyServlet.doPost(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.String.<init>(Compiled Code)
at java.lang.StringBuffer.toString(Compiled Code)
at MyServlet.doPost(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
java.lang.IllegalMonitorStateException: current thread not owner
at java.lang.String.<init>(Compiled Code)
at java.lang.StringBuffer.toString(Compiled Code)
at java.lang.Thread.<init>(Compiled Code)
at org.apache.jserv.JServHandler.run(Compiled Code)
----------------------------------------------------------------
$ diff -b JServHandler.java JServHandler.original
461d460
< try {
474,475d472
< } catch (IllegalMonitorStateException imse) {
< fail(imse, "Exception while listening for connections");
477d473
< }
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]