Changes between Initial Version and Version 27 of Ticket #22160


Ignore:
Timestamp:
2022-06-23T22:47:16+02:00 (3 years ago)
Author:
taylor.smock
Comment:

Even though I still feel like the original report by MichaelFS was due to a possibly flaky OSM server, I'm going to reopen this since a good chunk of discussion for a separate issue has occurred here.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22160

    • Property Status newreopened
    • Property Milestone22.07
    • Property Summary Upload of changes works only after several attempts[PATCH] Retry on `SocketException: Unexpected end of file from server`
  • Ticket #22160 – Description

    initial v27  
    5252+ https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
    5353}}}
     54
     55----
     56Note: The below stack traces may not be related to the above issue (was closed as `othersoftware`, see comment:1 )
     57From comment:12/comment:24
     58{{{
     592022-06-23 21:48:55.554 INFO: PUT https://api.openstreetmap.org/api/0.6/changeset/create (229 B) ...
     602022-06-23 21:48:55.558 INFO: PUT https://api.openstreetmap.org/api/0.6/changeset/create -> !!! (1 ms)
     612022-06-23 21:48:55.559 WARNING: java.net.SocketException: Unexpected end of file from server. Cause: java.net.SocketException: Unexpected end of file from server
     62java.net.SocketException: Unexpected end of file from server
     63        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     64        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
     65        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
     66        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
     67        at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1974)
     68        at java.base/sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1969)
     69        at java.base/java.security.AccessController.doPrivileged(Native Method)
     70        at java.base/sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1968)
     71        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536)
     72        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
     73        at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
     74        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
     75        at org.openstreetmap.josm.tools.Http1Client$1.getResponseCode(Http1Client.java:94)
     76        at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:161)
     77        at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:124)
     78        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:729)
     79        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:673)
     80        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:668)
     81        at org.openstreetmap.josm.io.OsmApi.sendPutRequest(OsmApi.java:663)
     82        at org.openstreetmap.josm.io.OsmApi.openChangeset(OsmApi.java:463)
     83        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:202)
     84        at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:266)
     85        at org.openstreetmap.josm.gui.io.AsynchronousUploadPrimitivesTask.realRun(AsynchronousUploadPrimitivesTask.java:129)
     86        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
     87        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
     88        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
     89        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
     90        at java.base/java.lang.Thread.run(Thread.java:829)
     91Caused by: java.net.SocketException: Unexpected end of file from server
     92        at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
     93        at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
     94        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
     95        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
     96        at java.base/sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3135)
     97        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderField(HttpsURLConnectionImpl.java:295)
     98        at org.openstreetmap.josm.tools.Http1Client$1.getResponseVersion(Http1Client.java:85)
     99        ... 15 more
     100
     1012022-06-23 21:48:55.560 INFO: PUT https://api.openstreetmap.org/api/0.6/changeset/create (229 B) ...
     1022022-06-23 21:48:55.684 INFO: PUT https://api.openstreetmap.org/api/0.6/changeset/create -> HTTP/1.1 200 (74 ms; 9 B)
     1032022-06-23 21:48:55.684 INFO: OK
     104}}}