Geoserver 2.15 error when rendering a geotiff with normalize and StretchToMinimumMaximum sldProblem with SLD on GeoServerGeoserver - SLD style with aliasesGeoserver returns nullGeoserver SLD with CQLSAXParseException GeoServer SLD errorSLD From QGIS in Geoserver - Displacement errorGeoserver SLD Styling Error with zoomGeowebcache pre-seed creates white and black tilesError When Creating SLDOrdering symbols in GeoServer using SLD with rendering transformations

Is there a korbon needed for conversion?

What is the opposite of 'gravitas'?

Is there a good way to store credentials outside of a password manager?

Sequence of Tenses: Translating the subjunctive

How can we prove that any integral in the set of non-elementary integrals cannot be expressed in the form of elementary functions?

How can I kill an app using Terminal?

How to pronounce the slash sign

Inappropriate reference requests from Journal reviewers

CREATE opcode: what does it really do?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Trouble understanding the speech of overseas colleagues

Integer addition + constant, is it a group?

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Escape a backup date in a file name

Why escape if the_content isnt?

What can we do to stop prior company from asking us questions?

Is expanding the research of a group into machine learning as a PhD student risky?

Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?

Purchasing a ticket for someone else in another country?

How do I go from 300 unfinished/half written blog posts, to published posts?

How to safely derail a train during transit?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Class Action - which options I have?

How to check is there any negative term in a large list?



Geoserver 2.15 error when rendering a geotiff with normalize and StretchToMinimumMaximum sld


Problem with SLD on GeoServerGeoserver - SLD style with aliasesGeoserver returns nullGeoserver SLD with CQLSAXParseException GeoServer SLD errorSLD From QGIS in Geoserver - Displacement errorGeoserver SLD Styling Error with zoomGeowebcache pre-seed creates white and black tilesError When Creating SLDOrdering symbols in GeoServer using SLD with rendering transformations













0















I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.



Here is the SLD:



<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
<NamedLayer>
<name>S1_Polarisation_V1</name>
<UserStyle>
<Title>S1_Polarisation_V1</Title>
<FeatureTypeStyle>
<Rule>
<RasterSymbolizer>
<Opacity>1.0</Opacity>
<ChannelSelection>
<RedChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</RedChannel>
<GreenChannel>
<SourceChannelName>1</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-31</VendorOption>
<VendorOption name="maxValue">-9</VendorOption>
</Normalize>
</ContrastEnhancement>
</GreenChannel>
<BlueChannel>
<SourceChannelName>2</SourceChannelName>
<ContrastEnhancement>
<Normalize>
<VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
<VendorOption name="minValue">-21</VendorOption>
<VendorOption name="maxValue">-4</VendorOption>
</Normalize>
</ContrastEnhancement>
</BlueChannel>
</ChannelSelection>
</RasterSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>


Here is a print of gdalinfo of the raster dataset:



$ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
Driver: GTiff/GeoTIFF
Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
Size is 29838, 22566
Coordinate System is:
PROJCS["OSGB 1936 / British National Grid",
GEOGCS["OSGB 1936",
DATUM["OSGB_1936",
SPHEROID["Airy 1830",6377563.396,299.3249646,
AUTHORITY["EPSG","7001"]],
TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
AUTHORITY["EPSG","6277"]],
PRIMEM["Greenwich",0,
AUTHORITY["EPSG","8901"]],
UNIT["degree",0.0174532925199433,
AUTHORITY["EPSG","9122"]],
AUTHORITY["EPSG","4277"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",49],
PARAMETER["central_meridian",-2],
PARAMETER["scale_factor",0.9996012717],
PARAMETER["false_easting",400000],
PARAMETER["false_northing",-100000],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AXIS["Easting",EAST],
AXIS["Northing",NORTH],
AUTHORITY["EPSG","27700"]]
Origin = (361198.731133800232783,334600.354760660964530)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
Min=-86.068 Max=36.300
Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=36.300262451172
STATISTICS_MEAN=-10.272119897872
STATISTICS_MINIMUM=-86.068229675293
STATISTICS_STDDEV=4.0615322980508
Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
Min=-88.151 Max=31.867
Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
NoData Value=nan
Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
Metadata:
STATISTICS_MAXIMUM=31.86660194397
STATISTICS_MEAN=-15.95944476309
STATISTICS_MINIMUM=-88.151100158691
STATISTICS_STDDEV=5.2701868900943


Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.



enter image description here



Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.



enter image description here



Here are some of the errors reported in the geoserver catalina.out log



Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.ClassCastException: [[B cannot be cast to [[F
at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)

Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)

Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.IllegalArgumentException: The input argument(s) may not be null.
at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)

Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)

26 Mar 15:37:12 ERROR [geoserver.ows] -
java.lang.NullPointerException
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)


I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.



Is there anything else I can try or should I raise an issue on the Geoserver JIRA?










share|improve this question


























    0















    I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.



    Here is the SLD:



    <?xml version="1.0" encoding="UTF-8"?>
    <StyledLayerDescriptor
    xmlns="http://www.opengis.net/sld"
    xmlns:ogc="http://www.opengis.net/ogc"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
    <NamedLayer>
    <name>S1_Polarisation_V1</name>
    <UserStyle>
    <Title>S1_Polarisation_V1</Title>
    <FeatureTypeStyle>
    <Rule>
    <RasterSymbolizer>
    <Opacity>1.0</Opacity>
    <ChannelSelection>
    <RedChannel>
    <SourceChannelName>2</SourceChannelName>
    <ContrastEnhancement>
    <Normalize>
    <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
    <VendorOption name="minValue">-21</VendorOption>
    <VendorOption name="maxValue">-4</VendorOption>
    </Normalize>
    </ContrastEnhancement>
    </RedChannel>
    <GreenChannel>
    <SourceChannelName>1</SourceChannelName>
    <ContrastEnhancement>
    <Normalize>
    <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
    <VendorOption name="minValue">-31</VendorOption>
    <VendorOption name="maxValue">-9</VendorOption>
    </Normalize>
    </ContrastEnhancement>
    </GreenChannel>
    <BlueChannel>
    <SourceChannelName>2</SourceChannelName>
    <ContrastEnhancement>
    <Normalize>
    <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
    <VendorOption name="minValue">-21</VendorOption>
    <VendorOption name="maxValue">-4</VendorOption>
    </Normalize>
    </ContrastEnhancement>
    </BlueChannel>
    </ChannelSelection>
    </RasterSymbolizer>
    </Rule>
    </FeatureTypeStyle>
    </UserStyle>
    </NamedLayer>
    </StyledLayerDescriptor>


    Here is a print of gdalinfo of the raster dataset:



    $ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
    Driver: GTiff/GeoTIFF
    Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
    S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
    Size is 29838, 22566
    Coordinate System is:
    PROJCS["OSGB 1936 / British National Grid",
    GEOGCS["OSGB 1936",
    DATUM["OSGB_1936",
    SPHEROID["Airy 1830",6377563.396,299.3249646,
    AUTHORITY["EPSG","7001"]],
    TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
    AUTHORITY["EPSG","6277"]],
    PRIMEM["Greenwich",0,
    AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.0174532925199433,
    AUTHORITY["EPSG","9122"]],
    AUTHORITY["EPSG","4277"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",49],
    PARAMETER["central_meridian",-2],
    PARAMETER["scale_factor",0.9996012717],
    PARAMETER["false_easting",400000],
    PARAMETER["false_northing",-100000],
    UNIT["metre",1,
    AUTHORITY["EPSG","9001"]],
    AXIS["Easting",EAST],
    AXIS["Northing",NORTH],
    AUTHORITY["EPSG","27700"]]
    Origin = (361198.731133800232783,334600.354760660964530)
    Pixel Size = (10.000000000000000,-10.000000000000000)
    Metadata:
    AREA_OR_POINT=Area
    Image Structure Metadata:
    COMPRESSION=LZW
    INTERLEAVE=PIXEL
    Corner Coordinates:
    Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
    Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
    Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
    Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
    Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
    Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
    Min=-86.068 Max=36.300
    Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
    NoData Value=nan
    Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
    Metadata:
    STATISTICS_MAXIMUM=36.300262451172
    STATISTICS_MEAN=-10.272119897872
    STATISTICS_MINIMUM=-86.068229675293
    STATISTICS_STDDEV=4.0615322980508
    Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
    Min=-88.151 Max=31.867
    Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
    NoData Value=nan
    Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
    Metadata:
    STATISTICS_MAXIMUM=31.86660194397
    STATISTICS_MEAN=-15.95944476309
    STATISTICS_MINIMUM=-88.151100158691
    STATISTICS_STDDEV=5.2701868900943


    Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.



    enter image description here



    Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.



    enter image description here



    Here are some of the errors reported in the geoserver catalina.out log



    Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
    INFO: Problem occurs when computing a tile by the owner.
    java.lang.ClassCastException: [[B cannot be cast to [[F
    at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)

    Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
    INFO: Problem occurs when computing a tile by the owner.
    java.lang.NullPointerException
    at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)

    Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
    INFO: Problem occurs when computing a tile by the owner.
    java.lang.IllegalArgumentException: The input argument(s) may not be null.
    at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)

    Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
    INFO: Problem occurs when computing a tile by the owner.
    java.lang.NullPointerException
    at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)

    26 Mar 15:37:12 ERROR [geoserver.ows] -
    java.lang.NullPointerException
    at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)


    I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.



    Is there anything else I can try or should I raise an issue on the Geoserver JIRA?










    share|improve this question
























      0












      0








      0








      I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.



      Here is the SLD:



      <?xml version="1.0" encoding="UTF-8"?>
      <StyledLayerDescriptor
      xmlns="http://www.opengis.net/sld"
      xmlns:ogc="http://www.opengis.net/ogc"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
      <NamedLayer>
      <name>S1_Polarisation_V1</name>
      <UserStyle>
      <Title>S1_Polarisation_V1</Title>
      <FeatureTypeStyle>
      <Rule>
      <RasterSymbolizer>
      <Opacity>1.0</Opacity>
      <ChannelSelection>
      <RedChannel>
      <SourceChannelName>2</SourceChannelName>
      <ContrastEnhancement>
      <Normalize>
      <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
      <VendorOption name="minValue">-21</VendorOption>
      <VendorOption name="maxValue">-4</VendorOption>
      </Normalize>
      </ContrastEnhancement>
      </RedChannel>
      <GreenChannel>
      <SourceChannelName>1</SourceChannelName>
      <ContrastEnhancement>
      <Normalize>
      <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
      <VendorOption name="minValue">-31</VendorOption>
      <VendorOption name="maxValue">-9</VendorOption>
      </Normalize>
      </ContrastEnhancement>
      </GreenChannel>
      <BlueChannel>
      <SourceChannelName>2</SourceChannelName>
      <ContrastEnhancement>
      <Normalize>
      <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
      <VendorOption name="minValue">-21</VendorOption>
      <VendorOption name="maxValue">-4</VendorOption>
      </Normalize>
      </ContrastEnhancement>
      </BlueChannel>
      </ChannelSelection>
      </RasterSymbolizer>
      </Rule>
      </FeatureTypeStyle>
      </UserStyle>
      </NamedLayer>
      </StyledLayerDescriptor>


      Here is a print of gdalinfo of the raster dataset:



      $ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
      Driver: GTiff/GeoTIFF
      Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
      S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
      Size is 29838, 22566
      Coordinate System is:
      PROJCS["OSGB 1936 / British National Grid",
      GEOGCS["OSGB 1936",
      DATUM["OSGB_1936",
      SPHEROID["Airy 1830",6377563.396,299.3249646,
      AUTHORITY["EPSG","7001"]],
      TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
      AUTHORITY["EPSG","6277"]],
      PRIMEM["Greenwich",0,
      AUTHORITY["EPSG","8901"]],
      UNIT["degree",0.0174532925199433,
      AUTHORITY["EPSG","9122"]],
      AUTHORITY["EPSG","4277"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["latitude_of_origin",49],
      PARAMETER["central_meridian",-2],
      PARAMETER["scale_factor",0.9996012717],
      PARAMETER["false_easting",400000],
      PARAMETER["false_northing",-100000],
      UNIT["metre",1,
      AUTHORITY["EPSG","9001"]],
      AXIS["Easting",EAST],
      AXIS["Northing",NORTH],
      AUTHORITY["EPSG","27700"]]
      Origin = (361198.731133800232783,334600.354760660964530)
      Pixel Size = (10.000000000000000,-10.000000000000000)
      Metadata:
      AREA_OR_POINT=Area
      Image Structure Metadata:
      COMPRESSION=LZW
      INTERLEAVE=PIXEL
      Corner Coordinates:
      Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
      Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
      Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
      Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
      Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
      Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
      Min=-86.068 Max=36.300
      Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
      NoData Value=nan
      Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
      Metadata:
      STATISTICS_MAXIMUM=36.300262451172
      STATISTICS_MEAN=-10.272119897872
      STATISTICS_MINIMUM=-86.068229675293
      STATISTICS_STDDEV=4.0615322980508
      Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
      Min=-88.151 Max=31.867
      Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
      NoData Value=nan
      Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
      Metadata:
      STATISTICS_MAXIMUM=31.86660194397
      STATISTICS_MEAN=-15.95944476309
      STATISTICS_MINIMUM=-88.151100158691
      STATISTICS_STDDEV=5.2701868900943


      Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.



      enter image description here



      Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.



      enter image description here



      Here are some of the errors reported in the geoserver catalina.out log



      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.ClassCastException: [[B cannot be cast to [[F
      at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)

      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.NullPointerException
      at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)

      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.IllegalArgumentException: The input argument(s) may not be null.
      at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)

      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.NullPointerException
      at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)

      26 Mar 15:37:12 ERROR [geoserver.ows] -
      java.lang.NullPointerException
      at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)


      I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.



      Is there anything else I can try or should I raise an issue on the Geoserver JIRA?










      share|improve this question














      I have been supplied an SLD file and a raster dataset. The raster data is a processed sentinel-1 scene.



      Here is the SLD:



      <?xml version="1.0" encoding="UTF-8"?>
      <StyledLayerDescriptor
      xmlns="http://www.opengis.net/sld"
      xmlns:ogc="http://www.opengis.net/ogc"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" version="1.0.0">
      <NamedLayer>
      <name>S1_Polarisation_V1</name>
      <UserStyle>
      <Title>S1_Polarisation_V1</Title>
      <FeatureTypeStyle>
      <Rule>
      <RasterSymbolizer>
      <Opacity>1.0</Opacity>
      <ChannelSelection>
      <RedChannel>
      <SourceChannelName>2</SourceChannelName>
      <ContrastEnhancement>
      <Normalize>
      <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
      <VendorOption name="minValue">-21</VendorOption>
      <VendorOption name="maxValue">-4</VendorOption>
      </Normalize>
      </ContrastEnhancement>
      </RedChannel>
      <GreenChannel>
      <SourceChannelName>1</SourceChannelName>
      <ContrastEnhancement>
      <Normalize>
      <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
      <VendorOption name="minValue">-31</VendorOption>
      <VendorOption name="maxValue">-9</VendorOption>
      </Normalize>
      </ContrastEnhancement>
      </GreenChannel>
      <BlueChannel>
      <SourceChannelName>2</SourceChannelName>
      <ContrastEnhancement>
      <Normalize>
      <VendorOption name="algorithm">StretchToMinimumMaximum</VendorOption>
      <VendorOption name="minValue">-21</VendorOption>
      <VendorOption name="maxValue">-4</VendorOption>
      </Normalize>
      </ContrastEnhancement>
      </BlueChannel>
      </ChannelSelection>
      </RasterSymbolizer>
      </Rule>
      </FeatureTypeStyle>
      </UserStyle>
      </NamedLayer>
      </StyledLayerDescriptor>


      Here is a print of gdalinfo of the raster dataset:



      $ gdalinfo -stats S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
      Driver: GTiff/GeoTIFF
      Files: S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif
      S1A_20170706_132_asc_174926_174951_DV_Gamma-0_GB_OSGB_RCTK_SpkRL.tif.aux.xml
      Size is 29838, 22566
      Coordinate System is:
      PROJCS["OSGB 1936 / British National Grid",
      GEOGCS["OSGB 1936",
      DATUM["OSGB_1936",
      SPHEROID["Airy 1830",6377563.396,299.3249646,
      AUTHORITY["EPSG","7001"]],
      TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489],
      AUTHORITY["EPSG","6277"]],
      PRIMEM["Greenwich",0,
      AUTHORITY["EPSG","8901"]],
      UNIT["degree",0.0174532925199433,
      AUTHORITY["EPSG","9122"]],
      AUTHORITY["EPSG","4277"]],
      PROJECTION["Transverse_Mercator"],
      PARAMETER["latitude_of_origin",49],
      PARAMETER["central_meridian",-2],
      PARAMETER["scale_factor",0.9996012717],
      PARAMETER["false_easting",400000],
      PARAMETER["false_northing",-100000],
      UNIT["metre",1,
      AUTHORITY["EPSG","9001"]],
      AXIS["Easting",EAST],
      AXIS["Northing",NORTH],
      AUTHORITY["EPSG","27700"]]
      Origin = (361198.731133800232783,334600.354760660964530)
      Pixel Size = (10.000000000000000,-10.000000000000000)
      Metadata:
      AREA_OR_POINT=Area
      Image Structure Metadata:
      COMPRESSION=LZW
      INTERLEAVE=PIXEL
      Corner Coordinates:
      Upper Left ( 361198.731, 334600.355) ( 2d34'37.17"W, 52d54'25.61"N)
      Lower Left ( 361198.731, 108940.355) ( 2d33' 5.67"W, 50d52'41.15"N)
      Upper Right ( 659578.731, 334600.355) ( 1d51'19.39"E, 52d50'45.22"N)
      Lower Right ( 659578.731, 108940.355) ( 1d41' 9.68"E, 50d49'16.16"N)
      Center ( 510388.731, 221770.355) ( 0d23'45.56"W, 51d52'59.21"N)
      Band 1 Block=256x256 Type=Float32, ColorInterp=Gray
      Min=-86.068 Max=36.300
      Minimum=-86.068, Maximum=36.300, Mean=-10.272, StdDev=4.062
      NoData Value=nan
      Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
      Metadata:
      STATISTICS_MAXIMUM=36.300262451172
      STATISTICS_MEAN=-10.272119897872
      STATISTICS_MINIMUM=-86.068229675293
      STATISTICS_STDDEV=4.0615322980508
      Band 2 Block=256x256 Type=Float32, ColorInterp=Undefined
      Min=-88.151 Max=31.867
      Minimum=-88.151, Maximum=31.867, Mean=-15.959, StdDev=5.270
      NoData Value=nan
      Overviews: 14919x11283, 7460x5642, 3730x2821, 1865x1411, 933x706, 467x353, 234x177
      Metadata:
      STATISTICS_MAXIMUM=31.86660194397
      STATISTICS_MEAN=-15.95944476309
      STATISTICS_MINIMUM=-88.151100158691
      STATISTICS_STDDEV=5.2701868900943


      Using Geoserver version 2.12, the SLD renders the raster image as below. This is as expected. I am ignoring a slight issue with no data values.



      enter image description here



      Recently we've moved to Geoserver 2.15 and using the same SLD and same raster dataset, I receive a different result, previewing the WMS returns a "blank" image. Note getFeatureInfo requests appear to work.



      enter image description here



      Here are some of the errors reported in the geoserver catalina.out log



      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.ClassCastException: [[B cannot be cast to [[F
      at it.geosolutions.jaiext.bandmerge.BandMergeOpImage.floatLoop(BandMergeOpImage.java:1228)

      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.NullPointerException
      at it.geosolutions.jaiext.stats.SimpleStatsOpImage.computeTile(SimpleStatsOpImage.java:102)

      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.IllegalArgumentException: The input argument(s) may not be null.
      at javax.media.jai.RasterAccessor.<init>(RasterAccessor.java:444)

      Mar 26, 2019 3:37:12 PM org.geoserver.GeoserverInitStartupListener$1 errorOccurred
      INFO: Problem occurs when computing a tile by the owner.
      java.lang.NullPointerException
      at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)

      26 Mar 15:37:12 ERROR [geoserver.ows] -
      java.lang.NullPointerException
      at javax.media.jai.PlanarImage.getData(PlanarImage.java:2110)


      I couldn't see anything related on Geoserver JIRA issue tracker and it feels like a bug in geoserver 2.15 since 2.12 appears to work.



      Is there anything else I can try or should I raise an issue on the Geoserver JIRA?







      geoserver sld sentinel-1






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 15 hours ago









      SamFranklinSamFranklin

      120129




      120129




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f316838%2fgeoserver-2-15-error-when-rendering-a-geotiff-with-normalize-and-stretchtominimu%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f316838%2fgeoserver-2-15-error-when-rendering-a-geotiff-with-normalize-and-stretchtominimu%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          រឿង រ៉ូមេអូ និង ហ្ស៊ុយលីយេ សង្ខេបរឿង តួអង្គ បញ្ជីណែនាំ

          Crop image to path created in TikZ? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Crop an inserted image?TikZ pictures does not appear in posterImage behind and beyond crop marks?Tikz picture as large as possible on A4 PageTransparency vs image compression dilemmaHow to crop background from image automatically?Image does not cropTikzexternal capturing crop marks when externalizing pgfplots?How to include image path that contains a dollar signCrop image with left size given

          Romeo and Juliet ContentsCharactersSynopsisSourcesDate and textThemes and motifsCriticism and interpretationLegacyScene by sceneSee alsoNotes and referencesSourcesExternal linksNavigation menu"Consumer Price Index (estimate) 1800–"10.2307/28710160037-3222287101610.1093/res/II.5.31910.2307/45967845967810.2307/2869925286992510.1525/jams.1982.35.3.03a00050"Dada Masilo: South African dancer who breaks the rules"10.1093/res/os-XV.57.1610.2307/28680942868094"Sweet Sorrow: Mann-Korman's Romeo and Juliet Closes Sept. 5 at MN's Ordway"the original10.2307/45957745957710.1017/CCOL0521570476.009"Ram Leela box office collections hit massive Rs 100 crore, pulverises prediction"Archived"Broadway Revival of Romeo and Juliet, Starring Orlando Bloom and Condola Rashad, Will Close Dec. 8"Archived10.1075/jhp.7.1.04hon"Wherefore art thou, Romeo? To make us laugh at Navy Pier"the original10.1093/gmo/9781561592630.article.O006772"Ram-leela Review Roundup: Critics Hail Film as Best Adaptation of Romeo and Juliet"Archived10.2307/31946310047-77293194631"Romeo and Juliet get Twitter treatment""Juliet's Nurse by Lois Leveen""Romeo and Juliet: Orlando Bloom's Broadway Debut Released in Theaters for Valentine's Day"Archived"Romeo and Juliet Has No Balcony"10.1093/gmo/9781561592630.article.O00778110.2307/2867423286742310.1076/enst.82.2.115.959510.1080/00138380601042675"A plague o' both your houses: error in GCSE exam paper forces apology""Juliet of the Five O'Clock Shadow, and Other Wonders"10.2307/33912430027-4321339124310.2307/28487440038-7134284874410.2307/29123140149-661129123144728341M"Weekender Guide: Shakespeare on The Drive""balcony"UK public library membership"romeo"UK public library membership10.1017/CCOL9780521844291"Post-Zionist Critique on Israel and the Palestinians Part III: Popular Culture"10.2307/25379071533-86140377-919X2537907"Capulets and Montagues: UK exam board admit mixing names up in Romeo and Juliet paper"Istoria Novellamente Ritrovata di Due Nobili Amanti2027/mdp.390150822329610820-750X"GCSE exam error: Board accidentally rewrites Shakespeare"10.2307/29176390149-66112917639"Exam board apologises after error in English GCSE paper which confused characters in Shakespeare's Romeo and Juliet""From Mariotto and Ganozza to Romeo and Guilietta: Metamorphoses of a Renaissance Tale"10.2307/37323537323510.2307/2867455286745510.2307/28678912867891"10 Questions for Taylor Swift"10.2307/28680922868092"Haymarket Theatre""The Zeffirelli Way: Revealing Talk by Florentine Director""Michael Smuin: 1938-2007 / Prolific dance director had showy career"The Life and Art of Edwin BoothRomeo and JulietRomeo and JulietRomeo and JulietRomeo and JulietEasy Read Romeo and JulietRomeo and Julieteeecb12003684p(data)4099369-3n8211610759dbe00d-a9e2-41a3-b2c1-977dd692899302814385X313670221313670221