Opened 15 years ago
Closed 15 years ago
#4185 closed defect (invalid)
Network access broken in JOSM
Reported by: | bilbo | Owned by: | team |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
JOSM (Revision: 2645) seems to be unable to conect to network, during startup MOTD loading fail and I see this message on console:
Warning: failed to read MOTD from 'http://josm.openstreetmap.de/wiki/StartupPage'. Exception was: java.net.SocketException: Network is unreachable
... and loading any data from server or tiles form slippy map fails
However, I can open http://josm.openstreetmap.de/wiki/StartupPage in my browser normally, and I can see the map tiles in map at openstreetmap.org, so my internet connection to OSM servers is working fine.
I guess there must be problem somewhere in JOSM (I have not changed anything in the JOSM configuration for quite a long time, several weeks at least).
Also, during loading, I see this:
loading remotecontrol
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.openstreetmap.josm.plugins.remotecontrol.HttpServer.<init>(HttpServer.java:37)
at org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin.restartServer(RemoteControlPlugin.java:42)
at org.openstreetmap.josm.plugins.remotecontrol.RemoteControlPlugin.<init>(RemoteControlPlugin.java:21)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:184)
at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:208)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:162)
As a result I can't donwload any data, MOTD or view the slippymap and the error messages are not very helful.
Attachments (0)
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Using the easiest workaround from the Debian bug report,
start josm from the command line with:
java -Djava.net.preferIPv4Stack=true -jar josm.jar
Works for me...
comment:3 by , 15 years ago
Because Openstreetmap also uses/will use donations and services from open-government-initiatives it should implement IPv6 access. Otherwise it might not meet the criteria for such services/aids. At least in Europe there are a lot of initiatives where IPv6 will be mandatory in near future
comment:4 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Looks like a plattform/java vm/network stack problem. Nothing JOSM could do about that.
Closing as invalid.
I found a cause of this bug, it is a setting introduced recently as default on debian sid:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044
Question is - can JOSM do somehing so it would also work with net.ipv6.bindv6only set to 1, or is it a general Java problem and JOSM can't do anything with it?