java.lang.IllegalArgumentException error

Hi all,

I’m attempting to open a Sentinel-5 product within SNAP 7.0 and I’m receiving an Unexpected Exception message, stating “A java.lang.IllegalArgumentException exception has occured”. The details are as follows:

java.lang.IllegalArgumentException: SampleCoding contains already an attribute with the name ‘success’
at org.esa.snap.core.datamodel.SampleCoding.addAttribute(
at org.esa.snap.core.datamodel.SampleCoding.addSamples(
at org.esa.snap.core.util.ForLoop.loopN(
at org.esa.snap.core.util.ForLoop.execute(
at org.esa.snap.core.util.ForLoop.execute(
at org.esa.snap.dataio.netcdf.NetCdfReadProfile.readProduct(
at org.esa.snap.dataio.netcdf.DefaultNetCdfReader.readProductNodesImpl(
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(
at org.esa.snap.dataio.netcdf.GenericNetCdfReader.readProductNodesImpl(
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(
at org.esa.snap.core.dataio.ProductIO.readProduct(
at org.openide.util.RequestProcessor$
at org.netbeans.modules.openide.util.GlobalLookup.execute(
at org.openide.util.lookup.Lookups.executeWith(
[catch] at org.openide.util.RequestProcessor$

Has anyone encountered this error message previously? I’ve rolled back to SNAP 6.0 and the same product is opening without an issue, so I’m wondering if there is maybe a bug within SNAP 7.0?

Actually, the issue was in SNAP 6, to allow two flags with the same name (SNAP-1094).
However, in SNAP 7 occurs another issue which then leads to the error. This will be fixed in an update soon.

However, Sentinel-5p is not supported by SNAP in the first place.
It can only be read by the generic NetCDF reader.
If you want to work with S5p data I would suggest that you use

1 Like