Modify

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#11931 closed defect (irreproducible)

Problem with closed sockets

Reported by: hopet@… Owned by: hopet@…
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

I have problem with JOSM reporting closed sockets on Windows 7 64b

ERROR: java.net.SocketException: socket closed
java.net.SocketException: socket closed

at java.net.TwoStacksPlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at sun.security.ssl.SSLServerSocketImpl.accept(Unknown Source)
at org.openstreetmap.josm.io.remotecontrol.RemoteControlHttpsServer.run(

RemoteControlHttpsServer.java:418)

This keeps on scrolling forever, effectively also blocking sockets used by WMS/TMS.

I'm using
java -Djava.net.preferIPv4Stack=true -Xmx2000m -jar josm-tested.jar
Java 1.8.0_51, direct network connection configuration of Java, and JOSM is version 8800

Change History (4)

comment:1 by anonymous, 10 years ago

After turning off the remote control interface of JOSM, I am getting a different problem:

ERROR: java.net.SocketException: Successful WSAStartup not yet performed: create

java.net.SocketException: Successful WSAStartup not yet performed: create
        at java.net.Socket.createImpl(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
        at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:158)
        at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:104)
        at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:68)
        at org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:173)
        at org.openstreetmap.josm.io.MessageNotifier$Worker.run(MessageNotifier.java:63)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
WARNING: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketException: Successful WSAStartup not yet performed: create
org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.
        at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:161)
        at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:104)
        at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:68)
        at org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:173)
        at org.openstreetmap.josm.io.MessageNotifier$Worker.run(MessageNotifier.java:63)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Successful WSAStartup not yet performed: create
        at java.net.Socket.createImpl(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
        at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
        at org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:158)
        ... 11 more
Last edited 10 years ago by Don-vip (previous) (diff)

comment:2 by Don-vip, 10 years ago

Owner: changed from team to hopet@…
Status: newneedinfo

Can you please test with latest Java (8u66) and latest JOSM too? Thanks.

comment:3 by stoecker, 10 years ago

Resolution: irreproducible
Status: needinfoclosed

By mail:

Can you please test with latest Java (8u66) and latest JOSM too? Thanks.

Yes and I am no longer able to reproduce the problem. So please close
the report and I will reopen it in case if it re-occurs. Thank you!

With best regards,
Petr

comment:4 by anonymous, 9 years ago

The problem re-occurs with the latest stable JOSM (9060) and also devel (9086), making it almost useless for me with WMS services, since the connection problem occurs within approx. 3 minutes of work. To test if this is not a problem with my Java install, I have tried to use an old build of JOSM (5946) and this one works perfectly fine.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.