----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


I need help with running servlets with :
  WinNT 4.0 with Service Pack 4
  Apache 1.3.12
  Jserv 1.1.2
  JDK 1.3
  JSDK 2.0
  protocol : ajpv12
  port     : 8007
I was trying to switch from JavaWebServer 1.3 to Jserv1.1.2.
Jserv is up and running , the servlet is responding correctly on all
requests from a browser :
  ie.  <form action="http://atlasdev.fame.com/servlets/Atlas" method=get>
In the servlet we are using the service( HttpRequest req, HttpRespond resp)
method.
The problem starts when I try to serialize object on a client side and
send it to the servlet.
The request calls the servlet service method, but when I try to get an
InputSream from the request object and reproduce the ObjectInputStream I am
getting the following exception
:
  java.net.SocketException: Socket closed
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:86)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:225)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:280)
        at
org.apache.jserv.JServConnection$JServInputStream.read(JServConnection.java:
1721)
        at java.io.ObjectInputStream.readFullyInternal(ObjectInputStream.java:1780)
        at java.io.ObjectInputStream.bufferData(ObjectInputStream.java:1750)
        at java.io.ObjectInputStream.readShort(ObjectInputStream.java:1935)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:842)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:168)
        at Atlas.service(Atlas.java:665)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
        at org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java:484)

This is the line of code in which the exception occurs:
 try {
   ObjectInputStream in = new ObjectInputStream( req.getInputStream() );
 }
 catch (Exception ex)

Can somebody help me with this error?
Can an incorrect JSERV configuration cause this problem?

Thanks
--------------------------------------
Arnold Rozenblum
Fame Information Services
354 Eisenhower Parkway
Eisenhower Plaza 1 , 2nd Floor
Livingston , NJ 07039
Phone : (973)-5973236
email : [EMAIL PROTECTED]
--------------------------------------



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to