Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7905

wicket error on store panel with store uploaded through REST

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.11-beta
    • Fix Version/s: 2.11-beta
    • Component/s: Wicket UI
    • Labels:
      None

      Description

      I uploaded the standard road shapefile using REST API:

      $ curl -v -u admin:geoserver -XPUT -H "Content-type: application/zip" --data-binary @/home/bradh/geoserver/doc/en/user/source/gettingstarted/shapefile-quickstart/roads.zip http://localhost:8083/geoserver/rest/workspaces/topp/datastores/roads/file.shp
      *   Trying 127.0.0.1...
      * Connected to localhost (127.0.0.1) port 8083 (#0)
      * Server auth using Basic with user 'admin'
      > PUT /geoserver/rest/workspaces/topp/datastores/roads/file.shp HTTP/1.1
      > Host: localhost:8083
      > Authorization: Basic YWRtaW46Z2Vvc2VydmVy
      > User-Agent: curl/7.47.0
      > Accept: */*
      > Content-type: application/zip
      > Content-Length: 1801391
      > Expect: 100-continue
      > 
      < HTTP/1.1 100 Continue
      * We are completely uploaded and fine
      < HTTP/1.1 201 Created
      < Date: Fri, 16 Dec 2016 00:03:43 GMT
      < Date: Fri, 16 Dec 2016 00:03:45 GMT
      < Server: Noelios-Restlet-Engine/1.0..8
      < Transfer-Encoding: chunked
      < 
      * Connection #0 to host localhost left intact
      

      When trying to view the store in the admin UI, I get a wicket error:

      Oops, something went wrong...
      
      Sorry, something unexpected happened on the server.
      
      Here's an error report you can include in a JIRA bug report about this issue:
      org.apache.wicket.WicketRuntimeException: Exception in rendering component: [BorderBodyContainer [Component id = border_body]]
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2589)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.markup.html.border.Border$BorderBodyContainer.onRender(Border.java:458)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:703)
      	at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
      	at org.apache.wicket.markup.html.panel.BorderMarkupSourcingStrategy.onComponentTagBody(BorderMarkupSourcingStrategy.java:46)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:703)
      	at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
      	at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:703)
      	at org.apache.wicket.markup.html.panel.AssociatedMarkupSourcingStrategy.renderAssociatedMarkup(AssociatedMarkupSourcingStrategy.java:77)
      	at org.apache.wicket.markup.html.panel.PanelMarkupSourcingStrategy.onComponentTagBody(PanelMarkupSourcingStrategy.java:112)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1357)
      	at org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1705)
      	at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1357)
      	at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1357)
      	at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.Page.onRender(Page.java:879)
      	at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:141)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	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.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(Thread.java:745)
      Caused by: java.lang.RuntimeException: An error occurred while getting the model object for Component: [TextField [Component id = paramValue, page = org.geoserver.web.data.store.DataAccessEditPage, path = 8:dataStoreForm:parametersPanel:url:border:border_body:paramValue.TextField, isVisible = true, isVersioned = false, markup = [markup = file:/home/bradh/geoserver/src/web/core/target/classes/org/geoserver/web/data/store/panel/FileParamPanel.html
      <input class="text" wicket:id="paramValue" type="text"/>, index = 0, current =  '<input class="text" wicket:id="paramValue" type="text"/>' (line 0, column 0)]]]
      	at org.apache.wicket.Component.getDefaultModelObject(Component.java:1631)
      	at org.apache.wicket.Component.getDefaultModelObjectAsString(Component.java:1654)
      	at org.apache.wicket.markup.html.form.FormComponent.getModelValue(FormComponent.java:1287)
      	at org.apache.wicket.markup.html.form.FormComponent.getValue(FormComponent.java:871)
      	at org.apache.wicket.markup.html.form.TextField.onComponentTag(TextField.java:108)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2521)
      	at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1398)
      	at org.apache.wicket.Component.internalRender(Component.java:2380)
      	at org.apache.wicket.Component.render(Component.java:2308)
      	at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1262)
      	at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1459)
      	at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1434)
      	at org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1357)
      	at org.apache.wicket.markup.html.border.Border$BorderBodyContainer.onComponentTagBody(Border.java:448)
      	at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:70)
      	at org.apache.wicket.Component.internalRenderComponent(Component.java:2565)
      	... 168 more
      Caused by: java.lang.ClassCastException: java.net.URL cannot be cast to java.lang.String
      	at org.geoserver.web.data.store.panel.FileModel.getObject(FileModel.java:54)
      	at org.geoserver.web.data.store.panel.FileModel.getObject(FileModel.java:26)
      	at org.apache.wicket.Component.getDefaultModelObject(Component.java:1626)
      	... 183 more
      
      

        Attachments

          Activity

            People

            • Assignee:
              bradh Brad Hards
              Reporter:
              bradh Brad Hards
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: