[OSM-dev] FYI: Error: starting josm two times with ywms activated

Ulf Lamping ulf.lamping at web.de
Sun Oct 28 17:44:19 GMT 2007


Joerg Ostertag (OSM Munich/Germany) schrieb:
> If I'm starting two instances of josm at the same time with ywms activated I 
> get the following:
>
> loading ywms
> java.net.BindException: Address already in use
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
>         at java.net.ServerSocket.bind(ServerSocket.java:319)
>         at java.net.ServerSocket.<init>(ServerSocket.java:185)
>         at java.net.ServerSocket.<init>(ServerSocket.java:141)
>         at 
> org.openstreetmap.josm.plugins.ywms.HTTPServer.<init>(HTTPServer.java:32)
>         at 
> org.openstreetmap.josm.plugins.ywms.YWMSPlugin.restartServer(YWMSPlugin.java:126)
>         at 
> org.openstreetmap.josm.plugins.ywms.YWMSPlugin.<init>(YWMSPlugin.java:90)
>         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:129)
>         at org.openstreetmap.josm.Main.loadPlugins(Main.java:241)
>         at 
> org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:149)
>
>   
The ywms plugin starts a WMS server instance at localhost port 8000. 
Only one program can start a server on a specific port, this cannot be 
done twice - therefore the error.

Regards, ULFL




More information about the dev mailing list