Opened 9 years ago
Last modified 8 years ago
#12455 new enhancement
Auto-detect network loss and enable `--offline=all` at start
Reported by: | malenki | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | slow, network, offline | Cc: | Klumbumbus, stoecker, Hufkratzer |
Description (last modified by )
When starting JOSM without having a connection to the Internet it needs more than 90 seconds until it is ready. The main delay is that JOSM looks for map styles online (see screenshot – "Kartenstile" means "map styles").
It would be helpful if JOSM would check in the beginning if there is a connection or not – and if the latter refrain from all kinds of downloads during startup.
INFO: GET https://josm.openstreetmap.de/wiki/TestedVersion?format=txt -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.tools.WikiReader.read(WikiReader.java:55) at org.openstreetmap.josm.tools.BugReportExceptionHandler$BugReporterThread$BugReporterWorker.run(BugReportExceptionHandler.java:72) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:697) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) WARNUNG: Unable to detect latest version of JOSM: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" INFO: GET https://api.openstreetmap.org/api/capabilities -> !!! WARNUNG: java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) at java.io.BufferedInputStream.read(BufferedInputStream.java:345) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647) at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2001) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:660) at org.openstreetmap.josm.io.OsmApi$CapabilitiesCache.updateData(OsmApi.java:178) at org.openstreetmap.josm.io.CacheCustomContent.updateForce(CacheCustomContent.java:135) at org.openstreetmap.josm.io.CacheCustomContent.updateForceString(CacheCustomContent.java:147) at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:125) at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:208) at org.openstreetmap.josm.Main$3.initialize(Main.java:594) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:717) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:701) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) WARNUNG: Already here java.net.SocketTimeoutException: Read timed out WARNUNG: java.net.SocketTimeoutException: Read timed out INFO: GET https://josm.openstreetmap.de/maps -> !!! WARNUNG: java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read1(BufferedInputStream.java:286) at java.io.BufferedInputStream.read(BufferedInputStream.java:345) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647) at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2001) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:448) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:246) at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:199) at org.openstreetmap.josm.io.CachedFile.getContentReader(CachedFile.java:224) at org.openstreetmap.josm.io.imagery.ImageryReader.parse(ImageryReader.java:60) at org.openstreetmap.josm.data.imagery.ImageryLayerInfo$DefaultEntryLoader.loadSource(ImageryLayerInfo.java:154) at org.openstreetmap.josm.data.imagery.ImageryLayerInfo$DefaultEntryLoader.realRun(ImageryLayerInfo.java:136) at org.openstreetmap.josm.data.imagery.ImageryLayerInfo.loadDefaults(ImageryLayerInfo.java:100) at org.openstreetmap.josm.data.imagery.ImageryLayerInfo.load(ImageryLayerInfo.java:83) at org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference.initialize(ImageryPreference.java:948) at org.openstreetmap.josm.Main$7.initialize(Main.java:630) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:717) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:701) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Fehler: java.net.SocketTimeoutException: Read timed out Fehler: Id 'openpt_map' is not unique - used by 'OpenPT-Karte (Einblendung)' and 'OpenPT-Karte (Einblendung)'! INFO: GET https://josm.openstreetmap.de/wiki/De:StartupPage -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.tools.WikiReader.readLang(WikiReader.java:100) at org.openstreetmap.josm.tools.WikiReader.readLang(WikiReader.java:75) at org.openstreetmap.josm.gui.GettingStarted$MotdContent.updateData(GettingStarted.java:89) at org.openstreetmap.josm.io.CacheCustomContent.updateForce(CacheCustomContent.java:135) at org.openstreetmap.josm.io.CacheCustomContent.updateForceString(CacheCustomContent.java:147) at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:125) at org.openstreetmap.josm.gui.GettingStarted$1.run(GettingStarted.java:146) at java.lang.Thread.run(Thread.java:745) WARNUNG: Lesen von MOTD fehlgeschlagen. Fehler: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&style&zip=1 -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:448) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:246) at org.openstreetmap.josm.io.CachedFile.findZipEntryImpl(CachedFile.java:302) at org.openstreetmap.josm.io.CachedFile.findZipEntryPath(CachedFile.java:279) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.fromSourceEntry(MapPaintStyles.java:288) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(MapPaintStyles.java:249) at org.openstreetmap.josm.gui.preferences.map.MapPaintPreference.initialize(MapPaintPreference.java:208) at org.openstreetmap.josm.Main$6.initialize(Main.java:622) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:717) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:701) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) WARNUNG: Fehler beim Laden von https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&style&zip=1, zwischengespeicherte Datei wird bis zum nächsten Versuch verwendet: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" INFO: GET http://hikebikemap.org/hikebike16x16.png -> 404 (7,47 kB) Fehler: Fehler beim Laden des Bildes 'http://hikebikemap.org/hikebike16x16.png' INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1 -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:448) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:246) at org.openstreetmap.josm.io.CachedFile.findZipEntryImpl(CachedFile.java:302) at org.openstreetmap.josm.io.CachedFile.findZipEntryPath(CachedFile.java:279) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.fromSourceEntry(MapPaintStyles.java:288) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(MapPaintStyles.java:249) at org.openstreetmap.josm.gui.preferences.map.MapPaintPreference.initialize(MapPaintPreference.java:208) at org.openstreetmap.josm.Main$6.initialize(Main.java:622) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:717) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:701) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) WARNUNG: Fehler beim Laden von https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1, zwischengespeicherte Datei wird bis zum nächsten Versuch verwendet: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" INFO: GET http://openptmap.de/favicon_pt.png -> 404 (7,45 kB) Fehler: Fehler beim Laden des Bildes 'http://openptmap.de/favicon_pt.png' Fehler: Fehler beim Laden des Bildes 'http://openptmap.de/favicon_pt.png' INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&style&zip=1 -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:448) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:246) at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.getSourceInputStream(MapCSSStyleSource.java:491) at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.loadStyleSource(MapCSSStyleSource.java:398) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.loadStyleForFirstTime(MapPaintStyles.java:262) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(MapPaintStyles.java:255) at org.openstreetmap.josm.gui.preferences.map.MapPaintPreference.initialize(MapPaintPreference.java:208) at org.openstreetmap.josm.Main$6.initialize(Main.java:622) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:717) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:701) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) WARNUNG: Already here java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" WARNUNG: Fehler beim Laden von https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&style&zip=1, zwischengespeicherte Datei wird bis zum nächsten Versuch verwendet: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" INFO: GET https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1 -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:448) at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:246) at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.getSourceInputStream(MapCSSStyleSource.java:491) at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.loadStyleSource(MapCSSStyleSource.java:398) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.loadStyleForFirstTime(MapPaintStyles.java:262) at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.readFromPreferences(MapPaintStyles.java:255) at org.openstreetmap.josm.gui.preferences.map.MapPaintPreference.initialize(MapPaintPreference.java:208) at org.openstreetmap.josm.Main$6.initialize(Main.java:622) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:717) at org.openstreetmap.josm.Main$InitializationTask.call(Main.java:701) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) WARNUNG: Already here java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" WARNUNG: Fehler beim Laden von https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1, zwischengespeicherte Datei wird bis zum nächsten Versuch verwendet: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" INFO: Could not load tool definition <!-empty-!> INFO: Plugin 'reverter' wird geladen (Version 32005) INFO: RemoteControl: adding command "revert_changeset" (handled by RevertChangesetHandler) INFO: Plugin 'reltoolbox' wird geladen (Version 31895) INFO: Plugin 'jts' wird geladen (Version 31772) INFO: Plugin 'utilsplugin2' wird geladen (Version 31895) INFO: Plugin 'conflation' wird geladen (Version 0.1.9) INFO: Plugin 'tageditor' wird geladen (Version 31772) INFO: Plugin 'tag2link' wird geladen (Version 31910) INFO: Plugin 'FixAddresses' wird geladen (Version 31772) INFO: Plugin 'measurement' wird geladen (Version 31895) INFO: Plugin 'FastDraw' wird geladen (Version 31895) INFO: Plugin 'ext_tools' wird geladen (Version 31772) INFO: Plugin 'todo' wird geladen (Version 29154) INFO: Plugin 'editgpx' wird geladen (Version 31772) INFO: Plugin 'openvisible' wird geladen (Version 31772) INFO: Plugin 'OpeningHoursEditor' wird geladen (Version 31772) INFO: Plugin 'undelete' wird geladen (Version 31895) INFO: Plugin 'buildings_tools' wird geladen (Version 31895) INFO: Plugin 'terracer' wird geladen (Version 31895) INFO: Plugin 'turnrestrictions' wird geladen (Version 31895) INFO: Plugin 'download_along' wird geladen (Version 31772) INFO: Plugin 'waydownloader' wird geladen (Version 31772) INFO: Plugin 'PicLayer' wird geladen (Version 31895) INFO: Plugin 'contourmerge' wird geladen (Version 1014) INFO: Werkzeugleistenaktion mapmode/empty überschrieben: ext_tools.ExtToolAction wird ext_tools.ExtToolAction INFO: Could not load tool definition <!-empty-!> INFO: RemoteControl::Accepting remote connections on /127.0.0.1:8111 INFO: RemoteControl::Accepting remote connections on /0:0:0:0:0:0:0:1:8111 INFO: RemoteControl::Accepting secure remote connections on /127.0.0.1:8112 INFO: RemoteControl::Accepting secure remote connections on /0:0:0:0:0:0:0:1:8112 INFO: Open file: /mnt/data/urlaub_2014/gpx/gpx_tage/Tag_03/appended.gpx (3364948 bytes) [INFO] CompositeCacheManager - Instance is null, returning unconfigured instance [INFO] ThreadPoolManager - thread_pool.default PoolConfiguration = useBoundary = [false] boundarySize = [2000] maximumPoolSize = [150] minimumPoolSize = [4] keepAliveTime = [300000] whenBlockedPolicy = [RUN] startUpSize = [4] [INFO] CompositeCacheConfigurator - Setting default auxiliaries to null [INFO] CompositeCacheConfigurator - setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000, maxSpoolPerRun = -1, diskUsagePattern = UPDATE, spoolChunkSize = 2 ] [INFO] CompositeCacheConfigurator - setting defaultElementAttributes to [ IS_LATERAL = true, IS_SPOOL = true, IS_REMOTE = true, IS_ETERNAL = false, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1453717035273, LastAccessTime = 1453717035273, getTimeToLiveSeconds() = -1, createTime = 1453717035273 ] [INFO] CompositeCacheConfigurator - Parsed regions [] [INFO] CompositeCacheConfigurator - Finished configuration in 615 ms. [INFO] CompositeCacheConfigurator - No special ElementAttribute class defined for key [jcs.region.TMS.elementattributes], using default class. [INFO] AbstractDoubleLinkedListMemoryCache - initialized MemoryCache for TMS [INFO] CompositeCache - Constructed cache with name [TMS] and cache attributes [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 0, maxSpoolPerRun = -1, diskUsagePattern = UPDATE, spoolChunkSize = 2 ] [INFO] IndexedDiskCache - Region [TMS] Cache file root directory: /home/nadar/.josm/cache/tiles [INFO] IndexedDiskCache - Region [TMS] Set maxKeySize to: '524288' [INFO] IndexedDiskCache - Region [TMS] Loaded keys from [TMS], key count: 1362; up to 524288 will be available. [INFO] IndexedDiskCache - Region [TMS] Finished inital consistency check, isOk = true in 4ms. [INFO] IndexedDiskCache - Region [TMS] Indexed Disk Cache is alive. INFO: Reassigning shortcut 'reltoolbox:addremove' from null to 576 because of conflict with Entspricht INFO: Tastenkürzelkonflikt: 'reltoolbox:addremove' wurde von 'view:zoominter' auf 'Alt+Umschalt+F1' verschoben. INFO: Reassigning shortcut 'conflation:replace' from null to 576 because of conflict with Strg+Alt+F INFO: Tastenkürzelkonflikt: 'conflation:replace' wurde von 'reltoolbox:find' auf 'Alt+Umschalt+F2' verschoben. INFO: Reassigning shortcut 'subwindow:todo' from null to 576 because of conflict with Strg+Umschalt+T INFO: Tastenkürzelkonflikt: 'subwindow:todo' wurde von 'tool:revert' auf 'Alt+Umschalt+F3' verschoben. INFO: GET https://api.openstreetmap.org/api/capabilities -> !!! WARNUNG: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:660) at org.openstreetmap.josm.io.OsmApi$CapabilitiesCache.updateData(OsmApi.java:178) at org.openstreetmap.josm.io.CacheCustomContent.updateForce(CacheCustomContent.java:135) at org.openstreetmap.josm.io.CacheCustomContent.updateForceString(CacheCustomContent.java:147) at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:125) at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:208) at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:190) at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:58) at org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:173) at org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:158) at org.openstreetmap.josm.gui.JosmUserIdentityManager.initFromOAuth(JosmUserIdentityManager.java:227) at org.openstreetmap.josm.gui.JosmUserIdentityManager.getInstance(JosmUserIdentityManager.java:67) at org.openstreetmap.josm.io.MessageNotifier.isUserEnoughIdentified(MessageNotifier.java:128) at org.openstreetmap.josm.io.MessageNotifier.start(MessageNotifier.java:97) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:510) WARNUNG: Already here java.net.SocketTimeoutException: Read timed out WARNUNG: Already here java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" Fehler: org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmTransferException: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain". Ursache: org.openstreetmap.josm.io.OsmTransferException: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain". Ursache: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmTransferException: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:264) at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:190) at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:58) at org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:173) at org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:158) at org.openstreetmap.josm.gui.JosmUserIdentityManager.initFromOAuth(JosmUserIdentityManager.java:227) at org.openstreetmap.josm.gui.JosmUserIdentityManager.getInstance(JosmUserIdentityManager.java:67) at org.openstreetmap.josm.io.MessageNotifier.isUserEnoughIdentified(MessageNotifier.java:128) at org.openstreetmap.josm.io.MessageNotifier.start(MessageNotifier.java:97) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:510) Caused by: org.openstreetmap.josm.io.OsmTransferException: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:709) at org.openstreetmap.josm.io.OsmApi$CapabilitiesCache.updateData(OsmApi.java:178) at org.openstreetmap.josm.io.CacheCustomContent.updateForce(CacheCustomContent.java:135) at org.openstreetmap.josm.io.CacheCustomContent.updateForceString(CacheCustomContent.java:147) at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:125) at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:208) ... 9 more Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 404 No such domain" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:660) ... 14 more INFO: Message notifier active (checks every 5 minutes)
Attachments (1)
Change History (12)
by , 9 years ago
Attachment: | 2016-01-27_094528_scrot_JOSM_offline_start_map_styles_90_seconds.png added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Cc: | added |
---|
comment:3 by , 9 years ago
comment:4 by , 9 years ago
With --offline-all JOSM needs only the usual time to start when no network is attached. I had forgotten about that switch.
I am not sure if the ticket should be closed as invalid or change it to "enhancement" asking to add a auto-detection for being offline…
comment:5 by , 9 years ago
Summary: | slow start without network → Auto-detect network loss and enable `--offline=all` at start |
---|---|
Type: | defect → enhancement |
auto-detection is a good idea.
comment:6 by , 9 years ago
Cc: | added |
---|
@stoecker: I think we can "ping" JOSM website and OSM website to deduce if internet access is there. The probability to have both of them down at the same time is low.
comment:7 by , 9 years ago
That's not so easy as you think. For the IPv6 check I did need to switch to TCP connect as ping was unreliable. And there I only do fallback to IPv4 in case of an error. Reliable detecting a working network connection also requires TCP connects, as PING may be disabled. TCP connects may not work without a proxy.
I don't think such an auto-detection is easy or reliable.
Rather than that I'd suggest to improve the current network connection error message. It should less prominently talk about proxy issues and maybe offer the option to continue in offline mode. As we try to load the message of the day for nearly every start in offline case (except your switch from online to offline).
Or we can add an offline mode button to the start splash screen.
P.S. I wonder why style loading should take 90 seconds. All of these should use the Cached loader which should not cause delays.
follow-up: 9 comment:8 by , 9 years ago
With network turned off, I don't have significant delay but with a different stack trace:
INFO: GET https://josm.openstreetmap.de/wiki/StartupPage -> !!! WARNING: java.net.UnknownHostException: josm.openstreetmap.de java.net.UnknownHostException: josm.openstreetmap.de at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:637) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:934) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:115) at org.openstreetmap.josm.tools.HttpClient.connect(HttpClient.java:64) at org.openstreetmap.josm.tools.WikiReader.readLang(WikiReader.java:100) at org.openstreetmap.josm.tools.WikiReader.readLang(WikiReader.java:88) at org.openstreetmap.josm.gui.GettingStarted$MotdContent.updateData(GettingStarted.java:89) at org.openstreetmap.josm.io.CacheCustomContent.updateForce(CacheCustomContent.java:135) at org.openstreetmap.josm.io.CacheCustomContent.updateForceString(CacheCustomContent.java:147) at org.openstreetmap.josm.io.CacheCustomContent.updateIfRequiredString(CacheCustomContent.java:125) at org.openstreetmap.josm.gui.GettingStarted$1.run(GettingStarted.java:146) at java.lang.Thread.run(Thread.java:745) WARNING: Failed to read MOTD. Exception was: java.net.UnknownHostException: josm.openstreetmap.de
However I experienced a start time of several minutes with bad and unstable internet connection. I suspect that when the connection to the server is established, but the server sends data at a very low rate (or no data at all), then there is no timeout to stop the download process.
comment:9 by , 9 years ago
Replying to bastiK:
However I experienced a start time of several minutes with bad and unstable internet connection. I suspect that when the connection to the server is established, but the server sends data at a very low rate (or no data at all), then there is no timeout to stop the download process.
JOSM server has much to do at the moment with the build checks. I hope the coming server upgrade will reduce such issues, as we have faster disk I/O and more memory then. Let's see what happens after the next two weeks :-)
For slow connections of cached files: Maybe we could move loading into background and deliver old file when it takes too long? So the file is updated for next start only?
comment:11 by , 8 years ago
Cc: | added |
---|
Have you tried to start JOSM with
--offline=all
?