我正在使用GeoServer 2.6.2。
我将GeoFence jar文件添加到〜/ geoserver / WEB-INF / lib。
jar文件:gs-geofence-2.6-SNAPSHOT.jar
,geofence-services-api-2.2-SNAPSHOT.jar
和geofence-model-2.2-SNAPSHOT.jar
。
现在,当我想创建新的 LayerGroup 剂量不起作用时。
详细说明:
org.apache.wicket.WicketRuntimeException:无法使用实例化页面 构造函数public org.geoserver.web.demo.MapPreviewPage()at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212) 在 org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) 在 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) 在 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) 在 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) 在 org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) 在 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) 在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) 在 org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:617)at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)at at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159) 在 org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) 在 org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) 在 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) 在 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) 在 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 在 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:617)at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)at at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.geoserver.filters.SpringDelegatingFilter $ Chain.doFilter(SpringDelegatingFilter.java:75) 在 org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71) 在 org.geoserver.filters.SpringDelegatingFilter $ Chain.doFilter(SpringDelegatingFilter.java:71) 在 org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:311) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) 在 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116) 在 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) 在 org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:323) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) 在 org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) 在 org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:323) 在 org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.doFilter(GeoServerAnonymousAuthenticationFilter.java:54) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:323) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) 在 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) 在 org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) 在 org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationFilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:116) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:323) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) 在 org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) 在 org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:323) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69) 在 org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) 在 org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter $ 1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53) 在 org.geoserver.security.filter.GeoServerCompositeFilter $ NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73) 在 org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92) 在 org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:323) 在 org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173) 在 org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:135) 在 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) 在 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:76) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) 在 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 在 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 在 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 在 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 在 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 在 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) 在 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 在 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) 在 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) 在 org.apache.coyote.http11.Http11Protocol $ Http11ConnectionHandler.process(Http11Protocol.java:606) 在 org.apache.tomcat.util.net.JIoEndpoint $ Worker.run(JIoEndpoint.java:489) 在java.lang.Thread.run(Thread.java:745)引起: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法) 在 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 在 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 在java.lang.reflect.Constructor.newInstance(Constructor.java:526)at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) ... 98更多引起:java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1124) 在 org.geoserver.catalog.impl.ModificationProxyCloner.getDeepestCatalogInfoInterface(ModificationProxyCloner.java:173) 在 org.geoserver.catalog.impl.ModificationProxyCloner.clone(ModificationProxyCloner.java:77) 在 org.geoserver.catalog.impl.ModificationProxyCloner.cloneCollection(ModificationProxyCloner.java:200) 在 org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:110) 在com.sun.proxy。$ Proxy31.getLayers(未知来源)at org.geoserver.security.SecureCatalogImpl.checkAccess(SecureCatalogImpl.java:630) 在 org.geoserver.security.SecureCatalogImpl.filterGroups(SecureCatalogImpl.java:963) 在 org.geoserver.security.SecureCatalogImpl.getLayerGroups(SecureCatalogImpl.java:312) 在 org.geoserver.catalog.impl.AbstractFilteredCatalog.getLayerGroups(AbstractFilteredCatalog.java:250) 在 org.geoserver.catalog.impl.AbstractCatalogDecorator.getLayerGroups(AbstractCatalogDecorator.java:458) 在 org.geoserver.catalog.impl.LocalWorkspaceCatalog.getLayerGroups(LocalWorkspaceCatalog.java:199) 在 org.geoserver.web.demo.PreviewLayerProvider.getItems(PreviewLayerProvider.java:70) 在 org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:237) 在 org.geoserver.web.wicket.GeoServerTablePanel $ PagerDelegate.updateMatched(GeoServerTablePanel.java:566) 在 org.geoserver.web.wicket.GeoServerTablePanel $ PagerDelegate。(GeoServerTablePanel.java:559) 在 org.geoserver.web.wicket.GeoServerTablePanel。(GeoServerTablePanel.java:171) 在 org.geoserver.web.wicket.GeoServerTablePanel。(GeoServerTablePanel.java:96) 在 org.geoserver.web.demo.MapPreviewPage $ 1(MapPreviewPage.java:64) 在 org.geoserver.web.demo.MapPreviewPage。(MapPreviewPage.java:64) ... 103更多
答案 0 :(得分:2)
是的,这是一个错误,可以修复GeofenceAccessManager.java中的一行更改
github提交链接: https://github.com/esmailzadeh/geoserver/commit/863528e26f301a6f1f6b41e6c0912af008e7ff27