tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Sifuentes" <ben.sifuen...@intechpro.com>
Subject receiving java.net.SocketException
Date Thu, 01 Nov 2001 02:52:41 GMT
Can someone please tell me what is happening here:

2001-10-31 21:39:46 - Ctx() : IOException in R( /) -
java.net.SocketException: C
onnection aborted by peer: socket write error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
        at org.apache.tomcat.modules.server.Http10.doWrite(Unknown Source)
        at org.apache.tomcat.modules.server.HttpResponse.doWrite(Unknown
Source)

        at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown
Source)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(Unknown Source)
        at org.apache.tomcat.core.OutputBuffer.flush(Unknown Source)
        at org.apache.tomcat.core.OutputBuffer.close(Unknown Source)
        at org.apache.tomcat.core.Response.finish(Unknown Source)
        at org.apache.tomcat.core.ContextManager.service(Unknown Source)
        at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Unknown Source)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
        at java.lang.Thread.run(Thread.java:484)

2001-10-31 21:39:46 - ErrorHandler: Error loop for R( /) error
java.net.SocketEx
ception: Connection aborted by peer: socket write error


I have a jsp that brings up a popup window and then closes it once the user
hits the submit button to send the data.

It looks like the error happens when the call self.close() happens.

The jsp is list below:

<script language="JavaScript">

function windowOpen() {
    WinId =
window.open('','newwin','toolbar=no,location=no,directories=no,status=no,men
ubar=no,resizable=no,copyhistory=no,scrollbars=no,width=300,height=150,top=2
00,left=300');
    if (!WinId.opener) WinId.opener = self;
    Text = '<form ';
    Text += 'onSubmit="opener.location=\'/bce/servlet/PurchReq?userID=\' +
userID.value + \'&passwd=\' + passwd.value;self.close()">';
    Text += '<div
align="center"><center><p><strong>UserID<\/strong>&nbsp;&nbsp
 :<input
type="text" name="userID" size="20"><\/p><\/center><\/div>';
    Text += '<div align="center"><center><p><strong>Password<\/strong>
:<input type="password" name="passwd" size="20"><\/p><\/center><\/div>';
    Text += '<div align="center"><center><p>';
    Text += '<input type="submit" value="Submit" name="B1">&nbsp;';
    Text += '<input type="reset" value="Reset" name="B2">';
    Text += '<\/p><\/center><\/div>';
    Text += '<\/form>';
    WinId.document.open();
    WinId.document.write(Text);
    WinId.document.close();

}

windowOpen();



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message