I was able to connect and load the Countries layer on the layer
preview page, so perhaps it's something with the proxy set up?

aside, it looks like the store works better if you use WMS 1.1.1
rather than 1.0.0 as your getcaps indicates.

This URL worked well for me:
http://www2.demis.nl/WMS/wms.asp?WMS=WorldMap&VERSION=1.1.1&request=getcapabilities

On Tue, Nov 8, 2011 at 2:51 PM, Rahkonen Jukka
<[email protected]> wrote:
> Hi,
>
> Have you checked a contents of the returning data also? WMS error message has 
> status 200 too so it does not guarantee that everything is OK. However, 
> perhaps this is not your case.  Install some logging proxy like Fiddler in 
> between so you can see the messages going out and coming in. Or perhaps you 
> have already done that.
>
> -Jukka Rahkonen-
> ________________________________________
> Lähettäjä: Norm [[email protected]]
> Lähetetty: 8. marraskuuta 2011 13:37
> Vastaanottaja: [email protected]
> Aihe: [Geoserver-users] AuthenticatedCascading WMS
>
> Hi All,
>
> I am having trouble using the cascading remote WMS feature in GeoServer.
> I am aware that the basic authentication feature was only recently added, so
> I have downloaded a nightly build which has this feature, as I don't belive
> it's part of a stable release as of yet.
> We currently consume an external authenticated WMS using open layers. This
> works fine. However, for various reasons I would like to use the cascasing
> feature, to try something out. The build of the version of GeoServer is
> below.
>
> The problem I get, when adding a new cascasding WMS (I have tried it with an
> "open" non authenticated WMS too, which shows the same issue) a message
> returned in the UI "Could not list layers for this store, an error occurred
> retrieving them: The host did not accept the connection within timeout of
> 30000 ms".
>
>
> The open WMS I am testing with is
>
> http://www2.demis.nl/WMS/wms.asp?WMS=WorldMap&WMTVER=1.0.0&request=capabilities
>
> This is probably slightly consfused by the fact that geoserver is configured
> to go through a proxy to get to the internet. I can see the request to
> getCapabilities going through successfully and returning a 200. However I
> still get the below exeptions in the log. Does anyone have any ideas why? I
> can't see any time outs/invalid http requests in the proxy output, unless of
> course, geoserver doesn't use the JVM command line parameters in some
> situations (which I doubt).
>
> Many thanks in advance.
>
> Norm
> 08 Nov 11:33:14 INFO [org.geoserver.web] - Getting list of layers for the
> WMS store
> http://www2.demis.nl/WMS/wms.asp?WMS=WorldMap&WMTVER=1.0.0&request=capabilities
> java.lang.RuntimeException: Could not list layers for this store, an error
> occurred retrieving them: The host did not accept the connection within
> timeout of 30000 ms
>        at
> org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:115)
>        at
> org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:225)
>        at
> org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:509)
>        at
> org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.<init>(GeoServerTablePanel.java:502)
>        at
> org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:200)
>        at
> org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:91)
>        at
> org.geoserver.web.data.layer.NewLayerPage$1.<init>(NewLayerPage.java:107)
>        at
> org.geoserver.web.data.layer.NewLayerPage.<init>(NewLayerPage.java:104)
>        at
> org.geoserver.web.data.store.WMSStoreNewPage.onSave(WMSStoreNewPage.java:63)
>        at
> org.geoserver.web.data.store.AbstractWMSStorePage$1.onSubmit(AbstractWMSStorePage.java:132)
>        at
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68)
>        at
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)
>        at
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
>        at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
>        at
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
>        at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
>        at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
>        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
>        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
>        at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
>        at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
>        at
> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:160)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>        at
> org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158)
>        at
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
>        at
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
>        at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
>        at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
>        at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
>        at
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>        at
> com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
>        at
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:23)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
>        at
> org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
>        at
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at
> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at
> org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394)
>        at
> org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
>        at
> org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
>        at
> org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
>        at
> org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185)
>        at
> org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at
> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at
> org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
>        at
> com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
>        at
> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46)
>        at
> com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
>        at
> com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
>        at
> com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
>        at
> com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
>        at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
>        at
> com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
>        at
> oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
>        at
> com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.commons.httpclient.ConnectTimeoutException: The host
> did not accept the connection within timeout of 30000 ms
>        at
> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155)
>        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.data.ows.MultithreadedHttpClient.get(MultithreadedHttpClient.java:96)
>        at
> org.geotools.data.ows.AbstractOpenWebService.internalIssueRequest(AbstractOpenWebService.java:420)
>        at
> org.geotools.data.wms.WebMapServer.issueRequest(WebMapServer.java:419)
>        at
> org.geotools.data.ows.AbstractOpenWebService.negotiateVersion(AbstractOpenWebService.java:256)
>        at
> org.geotools.data.ows.AbstractOpenWebService.<init>(AbstractOpenWebService.java:115)
>        at org.geotools.data.wms.WebMapServer.<init>(WebMapServer.java:382)
>        at
> org.geoserver.catalog.ResourcePool.getWebMapServer(ResourcePool.java:1164)
>        at
> org.geoserver.catalog.impl.WMSStoreInfoImpl.getWebMapServer(WMSStoreInfoImpl.java:94)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:144)
>        at $Proxy80.getWebMapServer(Unknown Source)
>        at
> org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:90)
>        ... 86 more
> Caused by: java.net.SocketTimeoutException: connect timed out
>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>        at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>        at java.net.Socket.connect(Socket.java:507)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
>        ... 108 more
>
>
> Build Information
> Version
>  2.1-SNAPSHOT
> Subversion Revision
>  16547
> Build Date
>  06-Nov-2011 05:04
> GeoTools Version
>  2.7-SNAPSHOT (rev 38318)
>
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/AuthenticatedCascading-WMS-tp6973991p6973991.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to