[Geoserver-users] Import Data: Mosaic (Error)

Selecting the Mosaic Radio Button, then clicking the Browse link yields the following error message:

java.lang.ClassCastException: org.apache.commons.io.filefilter.DirectoryFileFilter cannot be cast to java.io.Serializable at org.opengeo.data.importer.web.MosaicPanel.initFileChooser(MosaicPanel.java:22) at org.opengeo.data.importer.web.SpatialFilePanel$1$1.getContents(SpatialFilePanel.java:79) at org.geoserver.web.wicket.GeoServerDialog$1.createPage(GeoServerDialog.java:111) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.createPage(ModalWindow.java:817) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.getWindowOpenJavascript(ModalWindow.java:1078) at org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.show(ModalWindow.java:354) at org.geoserver.web.wicket.GeoServerDialog.showOkCancel(GeoServerDialog.java:131) at org.opengeo.data.importer.web.SpatialFilePanel$1.onSubmit(SpatialFilePanel.java:54) 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:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159) 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.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 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.monitor.MonitorFilter.doFilter(MonitorFilter.java:88) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:70) 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.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146) 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.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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679)

Any suggestions?

Thanks, Geomatney

Ciao David,
are you using the new importer that's sitting in the community space
for GeoServer?
If so I would recommend for the moment to use the standard GeoServer
ImageMosaic store as the Importer has not been fully reviewed.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Ciao Simone,

Thanks. I was not aware that there is an importer for the integrated (non-Suite) version of GeoServer and GeoWebCache. The documentation says that the importer is under development. Maybe the documentation is not quite up to date?

Where is the “community space” for GeoServer?

Let me know and I’ll check out. Yeah.

David

···

On Wed, Sep 25, 2013 at 1:38 PM, Simone Giannecchini <simone.giannecchini@anonymised.com07…> wrote:

Ciao David,
are you using the new importer that’s sitting in the community space
for GeoServer?
If so I would recommend for the moment to use the standard GeoServer
ImageMosaic store as the Importer has not been fully reviewed.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Ciao Simone,

My apologies. I misunderstood. I am not using the new importer.

I was attempting to use the Image Mosaic store when I got the aforementioned error.

Thanks, in advance, if you have any suggestions.

David

···

On Wed, Sep 25, 2013 at 1:51 PM, David McKinney <geomatney@anonymised.com> wrote:

Ciao Simone,

Thanks. I was not aware that there is an importer for the integrated (non-Suite) version of GeoServer and GeoWebCache. The documentation says that the importer is under development. Maybe the documentation is not quite up to date?

Where is the “community space” for GeoServer?

Let me know and I’ll check out. Yeah.

David

On Wed, Sep 25, 2013 at 1:38 PM, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Ciao David,
are you using the new importer that’s sitting in the community space
for GeoServer?
If so I would recommend for the moment to use the standard GeoServer
ImageMosaic store as the Importer has not been fully reviewed.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Ciao David,
if you are not using the vanilla GeoServer you should probably direct
the previous email to the proper channels as this ML is only for
straight geoserver support.

From this line:

org.opengeo.data.importer.web.MosaicPanel.initFileChooser

in the error it looks like you are not using the vanilla GeoServer.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Wed, Sep 25, 2013 at 6:51 PM, David McKinney <geomatney@anonymised.com> wrote:

Ciao Simone,

Thanks. I was not aware that there is an importer for the integrated
(non-Suite) version of GeoServer and GeoWebCache. The documentation says
that the importer is under development. Maybe the documentation is not quite
up to date?
Where is the "community space" for GeoServer?

Let me know and I'll check out. Yeah.

David

On Wed, Sep 25, 2013 at 1:38 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Ciao David,
are you using the new importer that's sitting in the community space
for GeoServer?
If so I would recommend for the moment to use the standard GeoServer
ImageMosaic store as the Importer has not been fully reviewed.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Ciao Simone,

The previous long error is no longer displaying. Now, I’m getting the following error:

Could not list layers for this store, an error occurred retrieving them: Argument “value” should not be null.

The directory I’m browsing to has GeoTiffs

David

···

On Wed, Sep 25, 2013 at 1:38 PM, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Ciao David,
are you using the new importer that’s sitting in the community space
for GeoServer?
If so I would recommend for the moment to use the standard GeoServer
ImageMosaic store as the Importer has not been fully reviewed.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Ciao Simone,

I have two different configurations running. I’ve probably confused myself and consequently everyone else.

Configuration A is the “vanilla” version (the Suite).

  • 2.2-SNAPSHOT
  • a3a679e15fd5ced710e9e156f4fe7d4c5ecda88
  • 05-Jul-2013 16:57
  • 8-SNAPSHOT (rev ${build.commit.id})

I get the error:

…org.opengeo.data.importer.web.MosaicPanel.initFileChooser…

from the vanilla version, when trying to use the Import Data menu item.

Configuration B is the integrated (non Suite ) version of GeoServer and GeoWebCache.

  • 2.3.5
  • c188008c5c5ff428c39c78e41a244b4f8ef40f68
  • 18-Aug-2013 05:37
  • 9.5 (rev 67310bfba81183ea2fa6e083b90066012d7c9678)
  • 1.4-M20130509a (rev 05467ecca1592aa9b2dafc1f4aa5845650feea21)

With this version I attempt to create an ImageMosaic store of GeoTiffs.

When I select the browse link I get the following error:

“Could not list layers for this store, an error occurred retrieving them: Argument “value” should not be null.”

I hope this clarifies and clears up any confusion.

Best Regards,

David

···

On Wed, Sep 25, 2013 at 1:57 PM, Simone Giannecchini <simone.giannecchini@anonymised.com…> wrote:

Ciao David,
if you are not using the vanilla GeoServer you should probably direct
the previous email to the proper channels as this ML is only for
straight geoserver support.

From this line:

org.opengeo.data.importer.web.MosaicPanel.initFileChooser

in the error it looks like you are not using the vanilla GeoServer.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Wed, Sep 25, 2013 at 6:51 PM, David McKinney <geomatney@anonymised.com> wrote:

Ciao Simone,

Thanks. I was not aware that there is an importer for the integrated
(non-Suite) version of GeoServer and GeoWebCache. The documentation says
that the importer is under development. Maybe the documentation is not quite
up to date?
Where is the “community space” for GeoServer?

Let me know and I’ll check out. Yeah.

David

On Wed, Sep 25, 2013 at 1:38 PM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:

Ciao David,
are you using the new importer that’s sitting in the community space
for GeoServer?
If so I would recommend for the moment to use the standard GeoServer
ImageMosaic store as the Importer has not been fully reviewed.

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it