Uploaded image for project: 'GeoServer'
  1. GEOS-7699

NPE when accessing caching defaults with an empty quota store

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Platform- windows 7 Professional, Geoserver - 2.9.0, Spatial database-None

      Description

      Following error message is displayed when tried to access Çaching Defaults' link

      org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [OddEvenItem [Component id = 1]]
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1580)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:143)
      at org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:115)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.geoserver.gwc.web.DefaultGridsetsEditor.onBeforeRender(DefaultGridsetsEditor.java:194)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.markup.html.form.Form.onBeforeRender(Form.java:1807)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      at org.apache.wicket.Component.onBeforeRender(Component.java:3877)
      at org.apache.wicket.Page.onBeforeRender(Page.java:801)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.Component.internalPrepareForRender(Component.java:2215)
      at org.apache.wicket.Page.internalPrepareForRender(Page.java:242)
      at org.apache.wicket.Component.render(Component.java:2304)
      at org.apache.wicket.Page.renderPage(Page.java:1018)
      at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:124)
      at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:236)
      at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
      at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
      at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158)
      at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
      at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
      at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
      at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
      at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
      at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
      at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
      at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
      at org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:116)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
      at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:157)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
      at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
      at org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
      at org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
      at org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
      at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
      at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
      at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:152)
      at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      at org.eclipse.jetty.server.Server.handle(Server.java:499)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NullPointerException
      at org.geowebcache.diskquota.storage.Quota.add(Quota.java:145)
      at org.geoserver.gwc.GWC$2.visit(GWC.java:1167)
      at org.geowebcache.diskquota.jdbc.JDBCQuotaStore$8.processRow(JDBCQuotaStore.java:375)
      at org.springframework.jdbc.core.JdbcTemplate$RowCallbackHandlerResultSetExtractor.extractData(JdbcTemplate.java:1566)
      at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:693)
      at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629)
      at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680)
      at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707)
      at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:732)
      at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:173)
      at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:185)
      at org.geowebcache.diskquota.jdbc.JDBCQuotaStore.accept(JDBCQuotaStore.java:370)
      at org.geoserver.gwc.ConfigurableQuotaStore.accept(ConfigurableQuotaStore.java:84)
      at org.geoserver.gwc.GWC.getUsedQuotaByGridSet(GWC.java:1174)
      at org.geoserver.gwc.web.gridset.GridSetTableProvider$4.getPropertyValue(GridSetTableProvider.java:58)
      at org.geoserver.gwc.web.gridset.GridSetTableProvider$4.getPropertyValue(GridSetTableProvider.java:52)
      at org.geoserver.web.wicket.GeoServerDataProvider$AbstractProperty.getModel(GeoServerDataProvider.java:472)
      at org.geoserver.web.wicket.GeoServerTablePanel$4.populateItem(GeoServerTablePanel.java:224)
      at org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:523)
      at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:124)
      at org.apache.wicket.Component.internalBeforeRender(Component.java:949)
      at org.apache.wicket.Component.beforeRender(Component.java:1017)
      at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1568)
      ... 149 more

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              Ashu Ashutosh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: