GeoServer crashes on raster publish (NumberFormatException, possible Inf values)

GeoServer version: (write your version)

Problem:
GeoServer crashes immediately when clicking “Publish” on a GeoTIFF raster layer.

Error:
java.lang.NumberFormatException: Character I is neither a decimal digit…

Details:

  • Cannot access Layer Editing page (UI crashes)
  • Happens with multiple DOF tiles (~50 GeoTIFFs)
  • Happens also with ImageMosaic
  • QGIS displays raster correctly without issues

What I tried:

  • gdal_translate
  • gdalwarp
  • raster calculator (removing Inf/NaN values)
  • merging tiles into smaller groups
  • reprojection

Behavior:

  • As soon as I click “Publish”, GeoServer throws error and page crashes

Question:
Is this caused by Inf/NaN pixel values or a known GeoServer bug?
How can I preprocess raster data so GeoServer can publish it?

Can you make a small sample of the data that shows the problem? we’d also really need to see the output of gdalinfo on the relevant tif as well as the relevant contents of the GeoServer log file with logging set to GEOSERVER-DEV

Ian

Do you perhaps use some non-English locale? See Jira

-Jukka Rahkonen-

Yes, my system locale is non-English (Bosnian/Croatian).

However, I have already set the decimal separator to dot (.) instead of comma.

I will also try switching the system locale to English (United States) and test again.

Hi Ian,download sample file

thanks for your help.

I created a small sample GeoTIFF (~3 MB) by clipping my original DOF dataset. The issue is reproducible with both the original data and this sample (simple.tif.tif).

Here is the relevant part of the GeoServer log when I click “Publish”:

23 ožu 08:46:08 INFO [geoserver.web] - Failure during page processing
java.lang.NumberFormatException: Character I is neither a decimal digit number, decimal point, nor “e” notation exponential mark.
at java.base/java.math.BigDecimal.(BigDecimal.java:608)
at java.base/java.math.BigDecimal.(BigDecimal.java:497)
at java.base/java.math.BigDecimal.(BigDecimal.java:903)
at org.apache.wicket.util.convert.converter.AbstractNumberConverter.parse(AbstractNumberConverter.java:128)
at org.apache.wicket.util.convert.converter.DoubleConverter.convertToObject(DoubleConverter.java:51)
at org.geoserver.web.wicket.DecimalConverter.convertToObject(DecimalConverter.java:47)
at org.geoserver.web.wicket.DecimalConverter.convertToObject(DecimalConverter.java:19)
at org.apache.wicket.markup.html.form.FormComponent.convertInput(FormComponent.java:1208)
at org.apache.wicket.markup.html.form.AbstractTextComponent.convertInput(AbstractTextComponent.java:123)
at org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1155)

Here is the gdalinfo output for the sample tif:

Driver: GTiff/GeoTIFF
Files: C:\gis\simple.tif.tif
Size is 1305, 868
Coordinate System is: EPSG:8678 (MGI 1901 / Balkans zone 6)
Data axis to CRS axis mapping: 1,2
Origin = (6419800.499400000087917,4853881.500199999660254)
Pixel Size = (0.500000000000000,-0.500000000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 6419800.499, 4853881.500) ( 17d 0’10.05"E, 43d49’29.88"N)
Lower Left ( 6419800.499, 4853447.500) ( 17d 0’10.28"E, 43d49’15.82"N)
Upper Right ( 6420452.999, 4853881.500) ( 17d 0’39.25"E, 43d49’30.13"N)
Lower Right ( 6420452.999, 4853447.500) ( 17d 0’39.49"E, 43d49’16.07"N)
Center ( 6420126.749, 4853664.500) ( 17d 0’24.77"E, 43d49’22.97"N)
Band 1 Block=1305x2 Type=Byte, ColorInterp=Red
Band 2 Block=1305x2 Type=Byte, ColorInterp=Green
Band 3 Block=1305x2 Type=Byte, ColorInterp=Blue

Additional information:

  • GeoServer version: 2.28.1
  • Data store type: GeoTIFF
  • CRS: EPSG:8678 (MGI 1901 / Balkans zone 6)
  • Bands: 3 (Byte)
  • Pixel size: 0.5, -0.5

The error occurs during the “Publish” step in the GeoServer web interface.

I can provide the sample file if needed.

Best regards

Just to clarify, the sample file can be downloaded from the link above.

Please test if you can publish the layer by using some number, like -9999 or 9999, instead of the -Inf / Inf characters in the user interface. I am rather sure that the issue does not come from the data but from the user interface. See the error:
“Character I is neither a decimal digit number, decimal point…”.

I can successfully publish the raster using GeoServer REST API (via CMD), and it works correctly.

The same raster fails only when using the GeoServer web UI (Publish button).

This confirms that the issue is related to the UI, not the raster data.

pon, 30. mar 2026. 15:09 pošiljalac Jukka Rahkonen <noreply@discourse.osgeo.org> je napisao:

Someone replied to your post.

jratike80
March 30

Please test if you can publish the layer by using some number, like -9999 or 9999, instead of the -Inf / Inf characters in the user interface. I am rather sure that the issue does not come from the data but from the user interface. See the error:
“Character I is neither a decimal digit number, decimal point…”.


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.