Ive gotten a little farther with my debugging.


In the GTDataStoreGranuleCatalog class line 226 the extractBasicProperties 
method, it tries to pass in a typename = “schemaversion”.  schemaversion is a 
table and stores schema creation information.  Why is the code reading in a 
table that not part of the imagemosaic?  This happens intermittently.





More debugging:

GTDataStoreGranuleCatalog line 176, scanForTypeNames is true

GTDataStoreGranuleCatalog line 182, String[] typeNames = 
[missionid1_coaid1_aoiid0_ruleid2_thresholdid2, schemaversion]  where 
missionid1_coaid1_aoiid0_ruleid2_thresholdid2 is correct

GTDataStoreGranuleCatalog line 192, typeNames.iterator().next = schemaversion

GTDataStoreGranuleCatalog breaks because schema.getGeometryDescriptor()==null 
and throws error described below.  This is fact correct, the schemaversion 
table does not contain a geometry bbox, but imagemosaic should not be scanning 
it in.



20:31:06,133 DEBUG [class org.geotools.gce.imagemosaic.ImageMosaicFormat] 
(http-/0.0.0.0:8080-2) java.io.IOException: 
BBOXFilterExtractor::extractBasicProperties(): unable to get a schema from the 
featureSource: org.geotools.data.DataSourceException: java.io.IOException: 
BBOXFilterExtractor::extractBasicProperties(): unable to get a schema from the 
featureSource

    at 
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:470)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:483)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:103)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1436)
 [gs-main-2.7.2-nn-1.jar:2.7.2-nn-1]

    at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1337)
 [gs-main-2.7.2-nn-1.jar:2.7.2-nn-1]

    at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1332)
 [gs-main-2.7.2-nn-1.jar:2.7.2-nn-1]

    at 
org.geoserver.catalog.CatalogBuilder.initCoverage(CatalogBuilder.java:776) 
[gs-main-2.7.2-nn-1.jar:2.7.2-nn-1]

    at 
org.geoserver.catalog.rest.CoverageResource.handleObjectPost(CoverageResource.java:87)
 [gs-restconfig-2.7.2.jar:2.7.2]

    at 
org.geoserver.rest.ReflectiveResource.handlePost(ReflectiveResource.java:121) 
[gs-rest-2.7.2.jar:2.7.2]

    at org.restlet.Finder.handle(Finder.java:296) [org.restlet-1.0.8.jar:]

    at 
org.geoserver.rest.BeanDelegatingRestlet.handle(BeanDelegatingRestlet.java:38) 
[gs-rest-2.7.2.jar:2.7.2]

    at org.restlet.Filter.doHandle(Filter.java:105) [org.restlet-1.0.8.jar:]

    at org.restlet.Filter.handle(Filter.java:134) [org.restlet-1.0.8.jar:]

    at org.restlet.Router.handle(Router.java:444) [org.restlet-1.0.8.jar:]

    at org.geoserver.rest.RESTDispatcher$1.handle(RESTDispatcher.java:205) 
[gs-rest-2.7.2.jar:2.7.2]

    at 
com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129)
 [com.noelios.restlet.ext.servlet-1.0.8.jar:]

    at 
org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:87) 
[gs-rest-2.7.2.jar:2.7.2]

    at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE]

    at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE]

    at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
 [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE]

    at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
 [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE]

    at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
 [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE]

    at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
 [spring-webmvc-3.1.4.RELEASE.jar:3.1.4.RELEASE]

……



    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_72]

Caused by: org.geotools.data.DataSourceException: java.io.IOException: 
BBOXFilterExtractor::extractBasicProperties(): unable to get a schema from the 
featureSource

    at 
org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:643)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:468)
 [gt-imagemosaic-13.2-nn-1.jar:]

    ... 100 more

Caused by: java.lang.IllegalArgumentException: java.io.IOException: 
BBOXFilterExtractor::extractBasicProperties(): unable to get a schema from the 
featureSource

    at 
org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.<init>(GTDataStoreGranuleCatalog.java:207)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geotools.gce.imagemosaic.catalog.GranuleCatalogFactory.createGranuleCatalog(GranuleCatalogFactory.java:145)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:586)
 [gt-imagemosaic-13.2-nn-1.jar:]

    ... 101 more

Caused by: java.io.IOException: BBOXFilterExtractor::extractBasicProperties(): 
unable to get a schema from the featureSource

    at 
org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.extractBasicProperties(GTDataStoreGranuleCatalog.java:281)
 [gt-imagemosaic-13.2-nn-1.jar:]

    at 
org.geotools.gce.imagemosaic.catalog.GTDataStoreGranuleCatalog.<init>(GTDataStoreGranuleCatalog.java:192)
 [gt-imagemosaic-13.2-nn-1.jar:]

    ... 103 more



Thank You



Dominique Bessette



From: Bessette-Halsema, Dominique E
Sent: Monday, November 30, 2015 6:34 PM
To: Andrea Aime (andrea.a...@geo-solutions.it); 
geoserver-users@lists.sourceforge.net
Subject: FW: [Geoserver-users] GTDataStoreGranuleCatalog class error





Hi Andrea



I tried attaching the server.log but the email group rejected it.  Trying again.



Our GeoServer version is 2.7.2.  I’m storing the granules in a database.  I 
viewed the database table called missionid2_coaid3_aoiid1_ruleid4_thresholdid23 
and it looks like it was created and everything was stored correctly.  What’s 
interesting is I can manually go into GeoServer and create the layer that 
failed.



1.       Login to geoserver

2.       Select Layers

3.       Click Add New Resource

4.       Select the workspace and store

5.       I can see the Layer Name that failed. (screenshot attached)

6.       Hit publish

7.       Choose the correct styling in the Publishing tab

8.       Enable Time dimension in the Dimensions tab

9.       Select Save and the layer is now created. (see attached screenshot)





From: Andrea Aime [mailto:andrea.a...@geo-solutions.it]
Sent: Saturday, November 14, 2015 5:13 AM
To: Bessette-Halsema, Dominique E
Cc: 
geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] GTDataStoreGranuleCatalog class error



On Sat, Nov 14, 2015 at 1:20 AM, Bessette-Halsema, Dominique E 
<dominique.besse...@gdit.com<mailto:dominique.besse...@gdit.com>> wrote:

Hi



I’m using the image mosaic plugin and I get the following error from the 
GTDataStoreGranuleCatalog class intermittently.



BBOXFilterExtractor::extractBasicProperties(): unable to get a schema from the 
featureSource: java.io.IOException: 
BBOXFilterExtractor::extractBasicProperties(): unable to get a schema from the 
featureSource



Do you have the full stack trace?

What version of GeoServer is giving you these errors?





   If I try to recreate the image mosaic overlay it’ll work fine.  Do you have 
any idea why this would be happening?



   My indexer.properties file contains the following



   TimeAttribute = validtime

   ElevationAttribute = elevation

   Envelope2D = 119.00390624999999,0.3515625,129.00390625,10.3515625

   Schema = 
*the_geom:Polygon,location:String,validtime:java.util.Date,elevation:Double

   PropertyCollectors = 
TimestampFileNameExtractorSPI[timeregex](validtime),DoubleFileNameExtractorSPI[elevationregex](elevation)



   Where are you storing the collected granules? If it's a database, can you 
share your datastore.properties?



   Cheers

   Andrea



   --

   ==

   GeoServer Professional Services from the experts! Visit

   http://goo.gl/it488V for more information.

   ==



   Ing. Andrea Aime

   @geowolf

   Technical Lead



   GeoSolutions S.A.S.

   Via Poggio alle Viti 1187

   55054  Massarosa (LU)

   Italy

   phone: +39 0584 962313

   fax: +39 0584 1660272

   mob: +39  339 8844549



   http://www.geo-solutions.it

   http://twitter.com/geosolutions_it



   AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

   Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.



   The information in this message and/or attachments, is intended solely for 
the attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.



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

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to