[SNAP 10.0.0] Error in reading Sentinel-2 L2A products after 21 July 2024

Hi Everyone,

Error in reading Sentinel-2 L2A products after 21 July 2024

I am facing a unique error in reading Sentinel-2 L2A products after 21 July 2024 in order to compute LAI using SNAP-GPT: 10.0.0. It was working fine from the year 2019 to Upto 21 July 2024.

Error:
Error: [NodeId: Read] Unable to read metadata from MTD_MSIL2A.xml
org.esa.snap.core.gpf.graph.GraphException: [NodeId: Read] Unable to read metadata from MTD_MSIL2A.xml
at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:79)
at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:199)
at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:182)
at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:182)
at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:182)
at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:182)
at org.esa.snap.core.gpf.graph.GraphContext.initOutput(GraphContext.java:166)
at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:85)
at org.esa.snap.core.gpf.graph.GraphContext.(GraphContext.java:58)
at org.esa.snap.core.gpf.graph.GraphProcessor.executeGraph(GraphProcessor.java:127)
at org.esa.snap.core.gpf.main.DefaultCommandLineContext.executeGraph(DefaultCommandLineContext.java:86)
at org.esa.snap.core.gpf.main.CommandLineTool.executeGraph(CommandLineTool.java:547)
at org.esa.snap.core.gpf.main.CommandLineTool.runGraph(CommandLineTool.java:391)
at org.esa.snap.core.gpf.main.CommandLineTool.runGraphOrOperator(CommandLineTool.java:287)
at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:188)
at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:121)
at org.esa.snap.core.gpf.main.GPT.run(GPT.java:60)
at org.esa.snap.core.gpf.main.GPT.main(GPT.java:37)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.esa.snap.runtime.Launcher.lambda$run$0(Launcher.java:55)
at org.esa.snap.runtime.Engine.runClientCode(Engine.java:189)
at org.esa.snap.runtime.Launcher.run(Launcher.java:51)
at org.esa.snap.runtime.Launcher.main(Launcher.java:31)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:71)
at install4j.org.esa.snap.runtime.Launcher_gpt.main(Unknown Source)
Caused by: org.esa.snap.core.gpf.OperatorException: Unable to read metadata from MTD_MSIL2A.xml
at org.esa.snap.core.gpf.common.ReadOp.initialize(ReadOp.java:206)
at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(OperatorContext.java:528)
at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(OperatorContext.java:298)
at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:359)
at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:77)
… 32 more
Caused by: java.io.IOException: Unable to read metadata from MTD_MSIL2A.xml
at eu.esa.opt.dataio.s2.l2a.metadata.L2aMetadata.initProduct(L2aMetadata.java:110)
at eu.esa.opt.dataio.s2.l2a.metadata.L2aMetadata.(L2aMetadata.java:100)
at eu.esa.opt.dataio.s2.l2a.metadata.L2aMetadata.parseHeader(L2aMetadata.java:91)
at eu.esa.opt.dataio.s2.l2a.metadata.S2L2aProductMetadataReader.parseHeader(S2L2aProductMetadataReader.java:27)
at eu.esa.opt.dataio.s2.l2a.metadata.S2L2aProductMetadataReader.parseHeader(S2L2aProductMetadataReader.java:18)
at eu.esa.opt.dataio.s2.ortho.metadata.AbstractS2OrthoMetadataReader.readMetadataHeader(AbstractS2OrthoMetadataReader.java:52)
at eu.esa.opt.dataio.s2.Sentinel2ProductReader.readProductNodesImpl(Sentinel2ProductReader.java:192)
at org.esa.snap.core.dataio.AbstractProductReader.readProductNodes(AbstractProductReader.java:178)
at eu.esa.opt.dataio.s2.ortho.Sentinel2OrthoProductReaderProxy.readProductNodes(Sentinel2OrthoProductReaderProxy.java:90)
at org.esa.snap.core.gpf.common.ReadOp.initialize(ReadOp.java:180)
… 36 more

Please let me know if you have faced similar error.
Thanks in Advance

Regards
Abhishek

Have you installed the latest SNAP 10 updates for Optical Toolbox:

1 Like

Now, problem is solved by updating the Optical Toolbox to 10.0.3. Thanks for the Support.

1 Like