Author:Ian
Email:ianhendry at yahoo.com
Subject:java.net.SocketException
Category:Development
Message:

Hi,

I'm running Domino 6.0.3 on a Win 2003 server with Puakma ENTERPRISE SERVER v3.13 Build:508

I have a multipart form that I use to upload a text file to the server via a Java servlet hosted on the Domino server. When executing the code via HTTP everything is fine - I'm getting a 100% sucess rate. When executing via HTTPS I can only upload a text file of 1 small line of text and always have to recycle my browser (IE6) before each load (under HTTP I do not need to do this).

Now, I'm fairly sure that the reason for this is java.net.SocketException. My log file (Puakma) is full of the following line

16/11/2005 21:05:04: (E) 12 java.net.SocketException: Software caused connection abort: socket write error  (10.14.2.29 - BOOSTERreq (443))

So I figure whats happening is that before the request has been fully processed by the servlet the multipart has been droped from the request and the servlet can't get at it any more.

I have included 2 extracts from the log. The 1st is through HTTPS where it fails. The 2nd through HTTP where it passes.

So, I guess my question is..... what causes the java.net.SocketException and how do I fix it?

Many thanks in advance for any help received, Ian.

THIS FAILS

16/11/2005 21:05:04: (D) 12 POST /servlet/UploadFileToOctopus?userid=CN=Andy%20Harris/OU=GB/O=ABNAMRO/C=NL HTTP/1.1  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 12 Header read. content=4431 bytes connection=Keep-Alive  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 12 processDataPackage()  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 12 Sending headers. ToClient=true  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 12 Sending standard output. client=true len=4431  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (E) 12 java.net.SocketException: Software caused connection abort: socket write error  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 11 POST /servlet/UploadFileToOctopus?userid=CN=Andy%20Harris/OU=GB/O=ABNAMRO/C=NL HTTP/1.1  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 11 Header read. content=4431 bytes connection=Keep-Alive  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 11 processDataPackage()  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 11 Sending headers. ToClient=true  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:04: (D) 11 Sending standard output. client=true len=4431  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:05:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:06:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:07:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:08:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:09:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:10:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:11:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:12:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:13:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:14:45: (D) Checking: http://gblond088sb9/  (SYSTEM - puakma.addin.booster.BOOSTERAvailabilityThread)
16/11/2005 21:15:04: (E) 11 SocketTimeout: java.net.SocketTimeoutException: Read timed out  (10.14.2.29 - BOOSTERreq (443))

THIS IS OK

16/11/2005 21:21:06: (D) 6 POST /servlet/UploadFileToOctopus?userid=CN=Andy%20Harris/OU=GB/O=ABNAMRO/C=NL HTTP/1.1  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Header read. content=932 bytes connection=Keep-Alive  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 processDataPackage()  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Sending headers. ToClient=true  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Sending standard output. client=true len=932  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Content sent: 932 bytes  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Reading server headers  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 HTTP/1.1 200 OK  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Header read. content=262 bytes connection=null  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 processDataPackage()  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Reading server content ready for gzip 262  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 GZIP Output: text/xml 262/220 16.03%  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Sending headers. ToClient=false  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 6 Reading client headers  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 5 GET /Applications/G-L/gceg_mn.nsf$FILES/uploadDataTransform.xml HTTP/1.1  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 5 Header read. content=0 bytes connection=Keep-Alive  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 5 processDataPackage()  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 5 Sending headers. ToClient=true  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 5 Sending standard output. client=true len=0  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:06: (D) 5 Reading server headers  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:07: (D) 5 HTTP/1.1 304 Not Modified  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:07: (D) 5 Header read. content=0 bytes connection=null  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:07: (D) 5 processDataPackage()  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:07: (D) 5 Sending headers. ToClient=false  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:07: (D) 5 Sending standard output. client=false len=0  (10.14.2.29 - BOOSTERreq (443))
16/11/2005 21:21:07: (D) 5 Reading client headers  (10.14.2.29 - BOOSTERreq (443))


Threads:
java.net.SocketException   Ian 17.Nov.05
    RE: java.net.SocketException   Brendon Upson 18.Nov.05