ImageMosaic will leave the readers open when an exception occurs while loading 
the granule
------------------------------------------------------------------------------------------

                 Key: GEOT-3685
                 URL: https://jira.codehaus.org/browse/GEOT-3685
             Project: GeoTools
          Issue Type: Bug
          Components: imagemosaic plugin
    Affects Versions: 2.7.2
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 2.7.3


The stack trace is:

{code}
ReadType=JAI_IMAGEREAD Resulting in no granule loaded: Empty result
java.lang.IllegalArgumentException: operation "ImageRead" requires parameter at 
index 0 to be non-null.
        at javax.media.jai.JAI.createNS(JAI.java:1087)
        at javax.media.jai.JAI.create(JAI.java:973)
        at 
com.sun.media.jai.operator.ImageReadDescriptor.create(ImageReadDescriptor.java:788)
        at org.geotools.gce.imagemosaic.ReadType$2.read(ReadType.java:239)
        at 
org.geotools.gce.imagemosaic.GranuleDescriptor.loadRaster(GranuleDescriptor.java:647)
        at 
org.geotools.gce.imagemosaic.GranuleLoader.call(GranuleLoader.java:108)
{code}

It happens because in case of exception the reader should be closed regardless 
of whether the 
the imageread was being used or not

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to