Sentinel2 c2rcc gpt run batch

Dear all,

I run sentinel-2 by C2RCC in SNAP8.0, it fails. can not S2resample. Here are the script.
My command line : ./processDataset.bash msi_res20_c2rcc_bin.xml resample_20m.properties /public3/home/sc73004/hainan/hainan_sentinel_2/orgin /public3/home/sc73004/hainan/hainan_sentinel_2/20230711_C2RCC/

PS: it works two years ago.
Best, Binbin

processDataset.bash (1.5 KB)

error report:
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.install4j.runtime.launcher.UnixLauncher.start(UnixLauncher.java:66)
at install4j.org.esa.snap.runtime.Launcher_gpt.main(Unknown Source)
Caused by: org.esa.snap.core.gpf.OperatorException: Invalid S2 source product.
at org.esa.s2tbx.s2msi.resampler.S2ResamplingOp.initialize(S2ResamplingOp.java:88)
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:385)
at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:77)
… 30 more

Error: [NodeId: S2Resampling] Invalid S2 source product.
msi_res20_c2rcc_bin.xml (1.2 KB)
resample_20m.properties (55 Bytes)

Your SNAP installation is probably not up to date. The more recent data products are probably not supported by your current SNAP installation.

Please see here:

It would even be better if you update to SNAP 9 and install all module updates.