An unreachable cascaded WMS server prevents startup of GeoServer

Description

This is new after the latest style cascading related work, the data dir in question used to start up fine before it:


"main" #1 prio=5 os_prio=0 tid=0x00007fe4b0024000 nid=0x4e9f runnable [0x00007fe4b972a000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

locked <0x000000074ad9e680> (a java.net.SocksSocketImpl)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at org.geotools.ows.wms.MultithreadedHttpClient.executeMethod(MultithreadedHttpClient.java:196)
at org.geotools.ows.wms.MultithreadedHttpClient.get(MultithreadedHttpClient.java:207)
at org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:436)
at org.geotools.ows.wms.WebMapServer.issueRequest(WebMapServer.java:443)
at org.geotools.data.ows.AbstractOpenWebService.negotiateVersion(AbstractOpenWebService.java:260)
at org.geotools.data.ows.AbstractOpenWebService.<init>(AbstractOpenWebService.java:102)
at org.geotools.ows.wms.WebMapServer.<init>(WebMapServer.java:401)
at org.geoserver.catalog.ResourcePool.getWebMapServer(ResourcePool.java:1855)

locked <0x00000007214780d8> (a org.geoserver.catalog.ResourcePool$WMSCache)
at org.geoserver.catalog.impl.WMSStoreInfoImpl.getWebMapServer(WMSStoreInfoImpl.java:100)
at org.geoserver.catalog.ResourcePool.getWMSLayer(ResourcePool.java:1979)
at org.geoserver.catalog.impl.WMSLayerInfoImpl.getWMSLayer(WMSLayerInfoImpl.java:45)
at org.geoserver.catalog.impl.WMSLayerInfoImpl.getRemoteStyleInfos(WMSLayerInfoImpl.java:173)
at org.geoserver.catalog.impl.WMSLayerInfoImpl.getStyles(WMSLayerInfoImpl.java:143)
at org.geoserver.catalog.impl.LayerInfoImpl.getStyles(LayerInfoImpl.java:177)
at org.geoserver.catalog.impl.AbstractCatalogFacade.resolve(AbstractCatalogFacade.java:84)
at org.geoserver.catalog.impl.DefaultCatalogFacade.add(DefaultCatalogFacade.java:395)
at org.geoserver.catalog.impl.IsolatedCatalogFacade.add(IsolatedCatalogFacade.java:169)
at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.geoserver.catalog.LockingCatalogFacade.invoke(LockingCatalogFacade.java:36)
at com.sun.proxy.$Proxy24.add(Unknown Source)
at org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:673)
at org.geoserver.config.GeoServerLoader$LayerLoader.accept(GeoServerLoader.java:207)
at org.geoserver.config.GeoServerLoader.loadWmsStore(GeoServerLoader.java:648)
at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:583)
at org.geoserver.config.GeoServerLoader.readCatalog(GeoServerLoader.java:397)
at org.geoserver.config.DefaultGeoServerLoader.loadCatalog(DefaultGeoServerLoader.java:34)
at org.geoserver.config.GeoServerLoader.postProcessBeforeInitialization(GeoServerLoader.java:261)
at org.geoserver.config.GeoServerLoaderProxy.postProcessBeforeInitialization(GeoServerLoaderProxy.java:57)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:419)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1737)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576)

this seems like a blocker to me, of course a non responsive WMS server cannot "work", but blocking the startup solid seems a bit too much.

Environment

None

Status

Assignee

Imran Rajjad

Reporter

Andrea Aime

Triage

None

Priority

Highest
Configure