Apache error at 99% Upload

Post Reply
DaveT9713
Posts: 1
Joined: Sat Aug 24, 2013 1:05 am

Apache error at 99% Upload

Post by DaveT9713 » Sat Aug 24, 2013 1:41 am

OS: Windows 7 x64
Java: Version 7 Update 25 (build 1.7.0_25-b17)

The WoL client seems to plug along fairly well, there's an occasionally hiccup in the Java log

Aug 23, 2013 7:07:04 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
Aug 23, 2013 7:07:04 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request

The upload then continues until the progress bar reaches 99%. The client then displays an Apache HTTP error and the upload aborts.

org.apache.http.NoHttpResponseException: The target server failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:95)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:62)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at com.wol3.client.comm.HttpConnector.createReport(HttpConnector.java:103)
at com.wol3.client.forms.LogFileWindow$5.run(LogFileWindow.java:347)
at java.lang.Thread.run(Unknown Source)


The client then prompts if I want to zip and split the file (note the file is only 70MB to begin with) and this does produce a .ZIP file of about 7MB and (after prompt) deletes the original .txt file.

The upload of the ZIP then runs and again aborts at 99% with a slightly different Apache error

java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:169)
at org.apache.http.impl.io.ContentLengthOutputStream.write(ContentLengthOutputStream.java:119)
at com.wol3.client.comm.ByteBufferProgressBody$ProgressOutputStream.write(ByteBufferProgressBody.java:53)
at org.apache.http.entity.mime.content.InputStreamBody.writeTo(InputStreamBody.java:70)
at com.wol3.client.comm.ByteBufferProgressBody.writeTo(ByteBufferProgressBody.java:23)
at org.apache.http.entity.mime.HttpMultipart.doWriteTo(HttpMultipart.java:206)
at org.apache.http.entity.mime.HttpMultipart.writeTo(HttpMultipart.java:224)
at org.apache.http.entity.mime.MultipartEntity.writeTo(MultipartEntity.java:183)
at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:98)
at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:122)
at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:271)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:197)
at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:257)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at com.wol3.client.comm.HttpConnector.createReport(HttpConnector.java:103)
at com.wol3.client.forms.LogFileWindow$5.run(LogFileWindow.java:347)
at java.lang.Thread.run(Unknown Source)

I've made a dozen or so attempts spread across several hours in case it was some sort of transient problem but I get the same result every time. I've deleted the downloaded .jnlp file and switched browsers from IE to Chrome, and deleted the cached application from Java, all with no improvement. Note that is seems that .TXT uploads always blow up with the NoHttpResponse timeout error and the ZIPs always seem to blow up with the at java.net.SocketOutputStream.socketWrite0(Native Method) error. I presume this is because the server is handling ZIP's differently from raw text files on receive.

There is a bizarre coincidence that's too weird to disregard. Despite the file going from 70MB .txt to 7MB .zip there still seems to be the same number of socket write errors (3) and they are occurring at the same percent completion, roughly 25% through (1st at 26%, 2nd at 52%, 3rd at 75%) during the upload before the abort comes at 99% for txt files or 98% for zip files. This doesn't make sense. If 25% of the 70MB file is uploading without throwing the socket error (that's about 17Mb) then the tiny 7MB ZIP should have blown through with no issue whatsoever.

I tried selecting a smaller activity range (roughly 1/4 of the file, 108k lines) and I still get the 99% abort with the timeout error. The bar goes almost instantly to 75% upload, then I get the socket write error and retry, then the 99% (one time an abort showing 100% on the progress bar). The complete log of this last attempt (108,884 lines) is below

Fri Aug 23 19:28:10 EDT 2013 doUpload()
Fri Aug 23 19:28:10 EDT 2013 started thread
Fri Aug 23 19:28:10 EDT 2013 started upload
Aug 23, 2013 7:30:27 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
Aug 23, 2013 7:30:27 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
org.apache.http.NoHttpResponseException: The target server failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:95)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:62)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:712)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at com.wol3.client.comm.HttpConnector.createReport(HttpConnector.java:103)
at com.wol3.client.forms.LogFileWindow$5.run(LogFileWindow.java:347)
at java.lang.Thread.run(Unknown Source)

Sansil
Posts: 1
Joined: Fri Sep 06, 2013 10:42 pm

Re: Apache error at 99% Upload

Post by Sansil » Fri Sep 06, 2013 10:43 pm

Same problem here

zysoby
Posts: 1
Joined: Fri Feb 08, 2019 9:05 am

Re: Apache error at 99% Upload

Post by zysoby » Fri Feb 08, 2019 9:08 am

For the players which will be play the all kind of the formats in the one click we require for such searching of the features. That player will be use in the feature to get best essays online from the performance of the guild characters.

Post Reply