Imagemosaic not creating .properties file

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Imagemosaic not creating .properties file

Simon Nyvlt
Hi,

I am having problems with creating mosaics and pyramids on a new server setup (Ubuntu 12.4). On my local computer everything works fine, so the cause is probably some sort of server misconfiguration, but after searching for 3 days I still have not been able to find the cause...
When trying to add a new mosaic-store with geoserver there comes the error "Could not list layers for this store, an error occurred retrieving them: Unable to acquire a reader for this coverage with format: ImageMosaic". The cause is that geotools seems to be unable to create the .properties file for the mosaic. All other files (.dbf, .fix, .prj, .qix, .shp, .shx and sample_image) are being created though. When creating and filling the .properties file by hand I can afterwards add the store to geoserver, but no matter what I tried I cannot make imagemosaic create the file. I tried setting the permissions of the folder to 777 (I don't think it's a matter of permissions as all other files can be written) and I also tried several Tomcat (latest Tomcat 6 and 7), Java (latest Java6 and Java7) and geoserver (2.1.3 and 2.1.4) versions but all in vain. I know that probably nobody will be able to reproduce that error (even I cannot reproduce it on my local computer) but any idea what might cause this error is highly appreciated.
I attached the relevant output of geoserver.log below. It begins at the very line where on my local computer comes the output "[imagemosaic.catalogbuilder] - Creating final properties file".

Best regards,
Simon

2012-09-05 17:14:48,383 WARN [imagemosaic.ImageMosaicFormat] - This plugin accepts File, URL or String. The string may describe a File or an URL
org.geotools.data.DataSourceException: This plugin accepts File, URL or String. The string may describe a File or an URL
    at org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:232)
    at org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:194)
    at org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:436)
    at org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:104)
    at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:988)
    at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:808)
    at org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:82)
    at org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:225)
    at org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:509)
    at org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.<init>(GeoServerTablePanel.java:502)
    at org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:200)
    at org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:91)
    at org.geoserver.web.data.layer.NewLayerPage$1.<init>(NewLayerPage.java:107)
    at org.geoserver.web.data.layer.NewLayerPage.<init>(NewLayerPage.java:104)
    at org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:71)
    at org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:114)
    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:158)
    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:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    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.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.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394)
    at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185)
    at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
    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.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)
    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:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:662)
2012-09-05 17:14:48,383 INFO [geoserver.web] - Getting list of coverages for saved store file:/home/xyz
java.lang.RuntimeException: Could not list layers for this store, an error occurred retrieving them: Unable to acquire a reader for this coverage with format: ImageMosaic
    at org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:115)
    at org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:225)
    at org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:509)
    at org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.<init>(GeoServerTablePanel.java:502)
    at org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:200)
    at org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:91)
    at org.geoserver.web.data.layer.NewLayerPage$1.<init>(NewLayerPage.java:107)
    at org.geoserver.web.data.layer.NewLayerPage.<init>(NewLayerPage.java:104)
    at org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:71)
    at org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:114)
    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:158)
    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:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
    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.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.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394)
    at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406)
    at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185)
    at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
    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.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183)
    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:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: Unable to acquire a reader for this coverage with format: ImageMosaic
    at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:812)
    at org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:82)
    ... 98 more


------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Reply | Threaded
Open this post in threaded view
|

Re: Imagemosaic not creating .properties file

Brett Walker

Hi Simon,

A simple question, does the relevant file path contain spaces?

Spaces can cause problems.

Brett

On 06/09/2012, at 2:07 AM, "Simon Nyvlt" <[hidden email]> wrote:

> Hi,
>
> I am having problems with creating mosaics and pyramids on a new server setup (Ubuntu 12.4). On my local computer everything works fine, so the cause is probably some sort of server misconfiguration, but after searching for 3 days I still have not been able to find the cause...
> When trying to add a new mosaic-store with geoserver there comes the error "Could not list layers for this store, an error occurred retrieving them: Unable to acquire a reader for this coverage with format: ImageMosaic". The cause is that geotools seems to be unable to create the .properties file for the mosaic. All other files (.dbf, .fix, .prj, .qix, .shp, .shx and sample_image) are being created though. When creating and filling the .properties file by hand I can afterwards add the store to geoserver, but no matter what I tried I cannot make imagemosaic create the file. I tried setting the permissions of the folder to 777 (I don't think it's a matter of permissions as all other files can be written) and I also tried several Tomcat (latest Tomcat 6 and 7), Java (latest Java6 and Java7) and geoserver (2.1.3 and 2.1.4) versions but all in vain. I know that probably nobody will be able to reproduce that error (even I cannot reproduce it on my local computer) but any idea what might cause this error is highly appreciated.
> I attached the relevant output of geoserver.log below. It begins at the very line where on my local computer comes the output "[imagemosaic.catalogbuilder] - Creating final properties file".
>
> Best regards,
> Simon

------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Reply | Threaded
Open this post in threaded view
|

Re: Imagemosaic not creating .properties file

Simon Nyvlt
In reply to this post by Simon Nyvlt
Hi,

thank you for looking into this.
Neither the path nor the filenames contain any spaces or irregular
characters.
Adding any of the files as a single GeoTIFF-store works perfectly well.
The directory content looks like this (after trying to generate the
mosaic):

    /home/maps1/test # ls -lah
    total 58M
    drwxrwxrwx 2 root root 4.0K Sep  6 09:46 .
    drwxr-xr-x 7 root root 4.0K Sep  6 09:10 ..
    -rwxrwxrwx 1 root root 9.6M Sep  6 09:15 bm_vdg_0101.tif
    -rwxrwxrwx 1 root root  13M Sep  6 09:16 bm_vdg_0102.tif
    -rwxrwxrwx 1 root root  16M Sep  6 09:18 bm_vdg_0201.tif
    -rwxrwxrwx 1 root root  20M Sep  6 09:17 bm_vdg_0202.tif
    -rw-r--r-- 1 root root    4 Sep  6 09:46 sample_image
    -rw-r--r-- 1 root root 1.1K Sep  6 09:46 test.dbf
    -rw-r--r-- 1 root root   61 Sep  6 09:46 test.fix
    -rw-r--r-- 1 root root  631 Sep  6 09:46 test.prj
    -rw-r--r-- 1 root root   76 Sep  6 09:46 test.qix
    -rw-r--r-- 1 root root  644 Sep  6 09:46 test.shp
    -rw-r--r-- 1 root root  132 Sep  6 09:46 test.shx

Before trying to generate the mosaic, the directory only contained the 4
tiffs. All files except the .properties are generated, so basically
writing in that directory works. I already set the permissions of the
directory to 777 and run tomcat as root because my first guess was also
a permission problem, but that did not help at all.

The shape file looks fine, too:

    /home/maps1/test # ogrinfo -al test.shp
    INFO: Open of `test.shp'
           using driver `ESRI Shapefile' successful.

    Layer name: test
    Geometry: Polygon
    Feature Count: 4
    Extent: (-25600000.000000, -25600000.000000) - (25600000.000000,
    25600000.000000)
    Layer SRS WKT:
    PROJCS["unnamed",
         GEOGCS["GCS Name = WGS 84|Datum = unknown|Ellipsoid =
    WGS84|Primem = Greenwich|",
             DATUM["GCS Name = WGS 84|Datum = unknown|Ellipsoid =
    WGS84|Primem = Greenwich|",
                 SPHEROID["GCS Name = WGS 84|Datum = unknown|Ellipsoid =
    WGS84|Primem = Greenwich|",6378137.0,298.257223563]],
             PRIMEM["Greenwich",0.0],
             UNIT["degree",0.017453292519943295],
             AXIS["Geodetic longitude",EAST],
             AXIS["Geodetic latitude",NORTH]],
         PROJECTION["World_Van_der_Grinten_I"],
         PARAMETER["central_meridian",0.0],
         PARAMETER["false_easting",0.0],
         PARAMETER["false_northing",0.0],
         UNIT["m",1.0],
         AXIS["Easting",EAST],
         AXIS["Northing",NORTH]]
    location: String (254.0)
    OGRFeature(test):0
       location (String) = bm_vdg_0202.tif
       POLYGON ((0 0,0 25600000,25600000 25600000,25600000 0,0 0))

    OGRFeature(test):1
       location (String) = bm_vdg_0201.tif
       POLYGON ((-25600000 0,-25600000 25600000,0 25600000,0 0,-25600000
0))

    OGRFeature(test):2
       location (String) = bm_vdg_0101.tif
       POLYGON ((-25600000 -25600000,-25600000 0,0 0,0
    -25600000,-25600000 -25600000))

    OGRFeature(test):3
       location (String) = bm_vdg_0102.tif
       POLYGON ((0 -25600000,0 0,25600000 0,25600000 -25600000,0
-25600000))

Best regards,
Simon

> Hi,
>   mmm seams that GT is unable to read granules (coverage files) or open the directory at file:/home/xyz.
> Probably the created shape file is empty. Could you list (ls -lah /home/xyz) and post the content of that directory?
> Could you try to add a coverage store on a single coverage file (just to check that this is a mosaic problem and not data dependent).
> Regards,
> Carlo Cancellieri - GeoSolutions

------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Reply | Threaded
Open this post in threaded view
|

Re: Imagemosaic not creating .properties file

carlo cancellieri
Simon,
 this sounds really strange.... now let's investigate on images:
1. Are all the images at the same resolution? (print relevant information using gdalinfo)
2. have you tested a newer/different version of geoserver? 2.2 or 2.3?

Cheers,
Carlo

> Date: Thu, 6 Sep 2012 10:32:06 +0200

> From: [hidden email]
> To: [hidden email]
> Subject: Re: [Geotools-gt2-users] Imagemosaic not creating .properties file
>
> Hi,
>
> thank you for looking into this.
> Neither the path nor the filenames contain any spaces or irregular
> characters.
> Adding any of the files as a single GeoTIFF-store works perfectly well.
> The directory content looks like this (after trying to generate the
> mosaic):
>
> /home/maps1/test # ls -lah
> total 58M
> drwxrwxrwx 2 root root 4.0K Sep 6 09:46 .
> drwxr-xr-x 7 root root 4.0K Sep 6 09:10 ..
> -rwxrwxrwx 1 root root 9.6M Sep 6 09:15 bm_vdg_0101.tif
> -rwxrwxrwx 1 root root 13M Sep 6 09:16 bm_vdg_0102.tif
> -rwxrwxrwx 1 root root 16M Sep 6 09:18 bm_vdg_0201.tif
> -rwxrwxrwx 1 root root 20M Sep 6 09:17 bm_vdg_0202.tif
> -rw-r--r-- 1 root root 4 Sep 6 09:46 sample_image
> -rw-r--r-- 1 root root 1.1K Sep 6 09:46 test.dbf
> -rw-r--r-- 1 root root 61 Sep 6 09:46 test.fix
> -rw-r--r-- 1 root root 631 Sep 6 09:46 test.prj
> -rw-r--r-- 1 root root 76 Sep 6 09:46 test.qix
> -rw-r--r-- 1 root root 644 Sep 6 09:46 test.shp
> -rw-r--r-- 1 root root 132 Sep 6 09:46 test.shx
>
> Before trying to generate the mosaic, the directory only contained the 4
> tiffs. All files except the .properties are generated, so basically
> writing in that directory works. I already set the permissions of the
> directory to 777 and run tomcat as root because my first guess was also
> a permission problem, but that did not help at all.
>
> The shape file looks fine, too:
>
> /home/maps1/test # ogrinfo -al test.shp
> INFO: Open of `test.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: test
> Geometry: Polygon
> Feature Count: 4
> Extent: (-25600000.000000, -25600000.000000) - (25600000.000000,
> 25600000.000000)
> Layer SRS WKT:
> PROJCS["unnamed",
> GEOGCS["GCS Name = WGS 84|Datum = unknown|Ellipsoid =
> WGS84|Primem = Greenwich|",
> DATUM["GCS Name = WGS 84|Datum = unknown|Ellipsoid =
> WGS84|Primem = Greenwich|",
> SPHEROID["GCS Name = WGS 84|Datum = unknown|Ellipsoid =
> WGS84|Primem = Greenwich|",6378137.0,298.257223563]],
> PRIMEM["Greenwich",0.0],
> UNIT["degree",0.017453292519943295],
> AXIS["Geodetic longitude",EAST],
> AXIS["Geodetic latitude",NORTH]],
> PROJECTION["World_Van_der_Grinten_I"],
> PARAMETER["central_meridian",0.0],
> PARAMETER["false_easting",0.0],
> PARAMETER["false_northing",0.0],
> UNIT["m",1.0],
> AXIS["Easting",EAST],
> AXIS["Northing",NORTH]]
> location: String (254.0)
> OGRFeature(test):0
> location (String) = bm_vdg_0202.tif
> POLYGON ((0 0,0 25600000,25600000 25600000,25600000 0,0 0))
>
> OGRFeature(test):1
> location (String) = bm_vdg_0201.tif
> POLYGON ((-25600000 0,-25600000 25600000,0 25600000,0 0,-25600000
> 0))
>
> OGRFeature(test):2
> location (String) = bm_vdg_0101.tif
> POLYGON ((-25600000 -25600000,-25600000 0,0 0,0
> -25600000,-25600000 -25600000))
>
> OGRFeature(test):3
> location (String) = bm_vdg_0102.tif
> POLYGON ((0 -25600000,0 0,25600000 0,25600000 -25600000,0
> -25600000))
>
> Best regards,
> Simon
>
> > Hi,
> > mmm seams that GT is unable to read granules (coverage files) or open the directory at file:/home/xyz.
> > Probably the created shape file is empty. Could you list (ls -lah /home/xyz) and post the content of that directory?
> > Could you try to add a coverage store on a single coverage file (just to check that this is a mosaic problem and not data dependent).
> > Regards,
> > Carlo Cancellieri - GeoSolutions
>
> ------------------------------------------------------------------------------
> 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/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Reply | Threaded
Open this post in threaded view
|

Re: Imagemosaic not creating .properties file

Simon Nyvlt
Thank you again for helping!
I am absolutely sure that there is nothing wrong with the data. Besides the data we actually use, I already tried using a simple blue marble image split up into 4 parts which also did not work. Also I can create the mosaic with the exact same files on my local computer. When uploading the locally created .properties files I can also finish the import on the server and the resulting layer works perfectly in OpenLayers.
/home/maps1/test # gdalinfo bm_vdg_0102.tif
Driver: GTiff/GeoTIFF
Files: bm_vdg_0102.tif
Size is 5120, 5120
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["WGS 84",
        DATUM["unknown",
            SPHEROID["WGS84",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["VanDerGrinten"],
    PARAMETER["central_meridian",0],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (0.000000000000000,0.000000000000000)
Pixel Size = (5000.000000000000000,-5000.000000000000000)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_DATETIME=2010:11:24 15:25:10
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Macintosh
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (   0.0000000,   0.0000000) (  0d 0' 0.01"E,  0d 0' 0.01"N)
Lower Left  (       0.000,-25600000.000) (  0d 0' 0.01"E, 87d20'29.71"S)
Upper Right (25600000.000,       0.000) (129d46'26.14"W,  0d 0' 0.01"N)
Lower Right (25600000.000,-25600000.000) ( 40d35'58.76"E, 58d27'13.88"S)
Center      (12800000.000,-12800000.000) (156d11'44.49"E, 72d57' 5.45"S)
Band 1 Block=5120x17 Type=Byte, ColorInterp=Red
Band 2 Block=5120x17 Type=Byte, ColorInterp=Green
Band 3 Block=5120x17 Type=Byte, ColorInterp=Blue
Size, Coordinate System, Pixel Size, Metadata (except Datetime) and Bands are exactly the same for all 4 files.

I just tried 2.2 (already tried 2.1.3 and 2.1.4 before) but the problem remains. In the meantime I also tried using Jetty instead of Tomcat and I tried using the native JAIs but the error remains the same. I also read the blog post regarding Tomcats JreLeakPreventionListener which causes similar problems, but the solutions did not help either.

Am 9/6/12 2:53 PM, schrieb Carlo Cancellieri:
Simon, this sounds really strange.... now let's investigate on images:1. Are all the images at the same resolution? (print relevant information using gdalinfo)2. have you tested a newer/different version of geoserver? 2.2 or 2.3?
Cheers,Carlo

------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Reply | Threaded
Open this post in threaded view
|

Re: Imagemosaic not creating .properties file

Daniele Romagnoli-3
Hi Simon,
I think the problem is due to having an unnamed/unknown coordinate reference system. To be handled by geoserver, the datasets should be referred by proper EPSG codes.
Not sure why it is working on your localmachine and it doesn't on your server...
Can you share with us a sample image so we can debug it (and potentially improve it the imageMosaic logging)?


Please, let us know.
Daniele


On Thu, Sep 6, 2012 at 4:20 PM, Simon Nyvlt <[hidden email]> wrote:
Thank you again for helping!
I am absolutely sure that there is nothing wrong with the data. Besides the data we actually use, I already tried using a simple blue marble image split up into 4 parts which also did not work. Also I can create the mosaic with the exact same files on my local computer. When uploading the locally created .properties files I can also finish the import on the server and the resulting layer works perfectly in OpenLayers.
/home/maps1/test # gdalinfo bm_vdg_0102.tif
Driver: GTiff/GeoTIFF
Files: bm_vdg_0102.tif
Size is 5120, 5120
Coordinate System is:
PROJCS["unnamed",
    GEOGCS["WGS 84",
        DATUM["unknown",
            SPHEROID["WGS84",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["VanDerGrinten"],
    PARAMETER["central_meridian",0],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (0.000000000000000,0.000000000000000)
Pixel Size = (5000.000000000000000,-5000.000000000000000)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_DATETIME=2010:11:24 15:25:10
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
  TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Macintosh
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (   0.0000000,   0.0000000) (  0d 0' 0.01"E,  0d 0' 0.01"N)
Lower Left  (       0.000,-25600000.000) (  0d 0' 0.01"E, 87d20'29.71"S)
Upper Right (25600000.000,       0.000) (129d46'26.14"W,  0d 0' 0.01"N)
Lower Right (25600000.000,-25600000.000) ( 40d35'58.76"E, 58d27'13.88"S)
Center      (12800000.000,-12800000.000) (156d11'44.49"E, 72d57' 5.45"S)
Band 1 Block=5120x17 Type=Byte, ColorInterp=Red
Band 2 Block=5120x17 Type=Byte, ColorInterp=Green
Band 3 Block=5120x17 Type=Byte, ColorInterp=Blue
Size, Coordinate System, Pixel Size, Metadata (except Datetime) and Bands are exactly the same for all 4 files.

I just tried 2.2 (already tried 2.1.3 and 2.1.4 before) but the problem remains. In the meantime I also tried using Jetty instead of Tomcat and I tried using the native JAIs but the error remains the same. I also read the blog post regarding Tomcats JreLeakPreventionListener which causes similar problems, but the solutions did not help either.

Am 9/6/12 2:53 PM, schrieb Carlo Cancellieri:
Simon, this sounds really strange.... now let's investigate on images:1. Are all the images at the same resolution? (print relevant information using gdalinfo)2. have you tested a newer/different version of geoserver? 2.2 or 2.3?
Cheers,Carlo

------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users




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

Ing. Daniele Romagnoli
Senior Software Engineer

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

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

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

------------------------------------------------------------------------------
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/
_______________________________________________
GeoTools-GT2-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users