SNAP3 is not opening my L1C data

I am trying to open L1C sentinel data in SNAP 3 and he is giving me an error massage below which says Unexpected Exception, Can some body help how to fix this error. Thank you.

Can you please upload the file pointed to by the error message please ?
You can upload it here, use the Upload icon in the message editing toolbar.

Apologies, the data was somehow corrupted in downloading and its now working after I re-download it, I can open it. Thank you Jmalik for your response.

Hi SNAP Team,
Sorry I thought I succeeded opening my level 1C data yesterday but actually not. He can open the xml data but when I try to display individual bands or RGBs it just appears as black and I got this problem only after I upgrade my SNAP to SNAP3 yesterday. Please help how to fix this.

Could you please send us the log file and the full path to the product? I see you’re on Windows, what version of Windows?

Here is it Nicolas:
I am on Windows 10 and the Full path and log file for data is:
D:\Reference Materials\SENTINEL-2\Data_test\Data\18082015\S2A_OPER_PRD_MSIL1C_PDMC_20150818T101216_R065_V20150806T102902_20150806T102902.SAFE
messages.log (141.1 KB)

Hi,
Can some one help with the above issue please. I have uploaded the log file the full path to the data. Thank you

Hi SNAP team,
Could you please advise me on the issue, I have uploaded the necessary information, I can open the level 1C data in SNAP 3 but if I try to display it its appearing only black screen. Thank you.

Good day SNAP Team,

I experience the same issue initially reported by Mussiella, i.e. I cannot open Sentinel-2 L1C data (xml file). SNAP reports this error:

java.lang.NullPointerException
at org.esa.s2tbx.dataio.s2.ortho.Sentinel2OrthoProductReader.getMosaicProduct(Sentinel2OrthoProductReader.java:207)
at org.esa.s2tbx.dataio.s2.Sentinel2ProductReader.readProductNodesImpl(Sentinel2ProductReader.java:128)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:169)
at org.esa.snap.core.dataio.ProductIO.readProduct(ProductIO.java:158)
at org.esa.snap.rcp.actions.file.ReadProductOperation.run(ReadProductOperation.java:37)
at org.netbeans.modules.progress.ui.RunOffEDTImpl$3.run(RunOffEDTImpl.java:275)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

SNAP Version 3
S2 toolbox version 3.0.2
Platform: Mac OS X 10.7

Thanks for your support!

@Mussiella can you please try moving the product at the root of your HDD.
There is a known issue for Sentinel 2 products which have too long paths for Windows to manage (this will be fixed later by the Ground Segment).

@carminemaffei this might be a completely unrelated issue

Please open a shell and execute this :

$ ~/.snap/auxdata/openjpeg/openjpeg-2.1.0-macosx/bin/opj_decompress
$ ~/.snap/auxdata/openjpeg/openjpeg-2.1.0-macosx/bin/opj_dump

and post the results here

@jmalik thank you for your reply. Both commands provide a “Segmentation fault: 11”

Hi Julien,

These seem to work:

Barbagianni:~ carmineb$ ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_compress
[ERROR] Required parameters are missing
Example: ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_compress -i image.pgm -o image.j2k
Help: ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_compress -h
Barbagianni:~ carmineb$ ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_opj_compress opj_decompress opj_dump
Barbagianni:~ carmineb$ ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_decompress
[ERROR] Required parameters are missing
Example: ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_decompress -i image.j2k -o image.pgm
Help: ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_decompress -h
Barbagianni:~ carmineb$ ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_dump [ERROR] Required parameter is missing
Example: ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_dump -i image.j2k
Help: ./Downloads/openjpeg-2.1.0-static-macosx/bin/opj_dump -h

I brutally replaced this distribution of openjpeg into my .snap folder, and now I can successfully open L1C product!

Thanks for your help. Please let me know how I can help with further tests

Regards,

Carmine

@carminemaffei Many thanks for early testing, I’m preparing a SNAP module update

I volunteer for testing on this platform!

1 Like

I confirm that the latest update of the S2 toolbox, as of today, solves my problem

Hi All,

I just update SNAP to the latest version 3.0 but unfortunately I still cannot open L1C data

is there any solution for that

Regards
Omran

Could you send us the full path to your product? There are sometimes problems with path under Windows.

C:\Users\user.name\Desktop\sentinel2_images\S2A_OPER_PRD_MSIL1C_PDMC_20160110T155054_R021_V20160110T085036_20160110T085036.SAFE

Thanks for the path. There is indeed a problem with the path length, if you move your product up you should be able to open images. We’re also working on a module update to improve the way long path are handled (also fixing problems of path with special characters). It should be available within a couple of days.