greetings GeoServer community,

i am experimenting with the direct integration GWC setup and having
trouble when trying to access cached layers using the GeoServer WMS
endpoint.  i am running GeoServer 2.2-RC on JBoss 5.1.0 and have enabled
the direct integration via gwc-gs.xml:

<GeoServerGWCConfig>
  <version>1.0.0</version>
  <directWMSIntegrationEnabled>true</directWMSIntegrationEnabled>
  <WMSCEnabled>true</WMSCEnabled>
  <WMTSEnabled>true</WMTSEnabled>
  <TMSEnabled>true</TMSEnabled>
  <cacheLayersByDefault>false</cacheLayersByDefault>
  <cacheNonDefaultStyles>true</cacheNonDefaultStyles>
  <metaTilingX>4</metaTilingX>
  <metaTilingY>4</metaTilingY>
  <gutter>0</gutter>
  <defaultCachingGridSetIds>
    <string>EPSG:4326</string>
    <string>EPSG:900913</string>
  </defaultCachingGridSetIds>
  <defaultCoverageCacheFormats>
    <string>image/jpeg</string>
    <string>image/png</string>
  </defaultCoverageCacheFormats>
  <defaultVectorCacheFormats>
    <string>image/jpeg</string>
    <string>image/png</string>
  </defaultVectorCacheFormats>
  <defaultOtherCacheFormats>
    <string>image/jpeg</string>
    <string>image/png</string>
  </defaultOtherCacheFormats>
</GeoServerGWCConfig>


i am caching my layer using the following configuration in
geowebcache.xml:

    <wmsLayer>
      <enabled>true</enabled>
      <name>My_Raster_Layer</name>
      <mimeFormats><string>image/png</string></mimeFormats>
      <metaWidthHeight><int>3</int><int>3</int></metaWidthHeight>
      <wmsUrl><string>http://localhost:8080/geoserver/wms</string></wmsUrl>
    </wmsLayer>

and testing with an OpenLayers client that uses:

   myLayer = new OpenLayers.Layer.WMS(
      "myLayer",
      "http://XXX.XXX.XXX.XXX:8080/geoserver/gwc/service/wms";,
//      "http://XXX.XXX.XXX.XXX:8080/geoserver/wms";,
      { layers: 'My_Raster_Layer', 
        transparent: 'true', 
        format: 'image/png',
        tiled: 'true' },
//      tiled: 'false' },
      { tileSize: new OpenLayers.Size(256,256)});

when i use the gwc/service/wms endpoint with tiled = true, everything
works as advertised: cached tiles get delivered, new tiles get built and
cached.

when i use the geoserver/wms endpoint with tiled = false, everything
works as advertised: no caching is performed, WMS request is satisfied
and map displays data.

but, when i use the geoserver/wms endpoint with tiled = true, i get the
exception at the end of this message for each requested tile.  it is my
assumption from the documentation, that this 3rd request should perform
like the 1st.  if anybody can offer any help, guidance or direction, i
would be very appreciative.  thanks!

brian

Request: getServiceInfo
2012-09-25 10:31:43,194 ERROR [org.geoserver.ows] (http-0.0.0.0-8080-8) 
java.lang.IllegalStateException
        at
        com.google.common.base.Preconditions.checkState(Preconditions.java:129)
        at
        
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:88)
        at
        
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:50)
        at
        
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
        
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:54)
        at
        
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at
        
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy179.getMap(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)
        at
        
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:772)
        at
        org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:272)
        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:923)
        at
        
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
        at
        
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
        at
        
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:23)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74)
        at
        
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
        at
        
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
        at
        
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
        at
        
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
        at
        
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
        at
        
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at
        
org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:53)
        at
        
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
        at
        
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
        at
        
org.geoserver.security.filter.GeoServerBasicAuthenticationFilter.doFilter(GeoServerBasicAuthenticationFilter.java:82)
        at
        
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
        at
        
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
        at
        
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:91)
        at
        
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at
        
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
        at
        
org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:97)

        at
        
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
        at
        
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at
        
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
        
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
        
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
        at
        
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
        
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
        at
        
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
        at
        
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
        at
        
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
        at
        
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
        
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
        at
        
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
        at
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
        at
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
        at
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:662)
--
  peace,

  b

-- 
http://www.fastmail.fm - Does exactly what it says on the tin


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to