Error on executing graph

Hi,

I am encountering the following error

Error: [NodeId: ReadOp@sourceProduct] Specified 'file' does not exist

when executing a graph files with gpt. I am quite confused because the when the file name and path are written in .xml file manually it works fine, but when I use ${file} the mentioned error appears.

The input of graph file

<graph id="Graph">
  <version>1.0</version>
  <node id="Read">
    <operator>Read</operator>
    <sources/>
    <parameters class="com.bc.ceres.binding.dom.XppDomElement">
        <file>${file1}</file>
    </parameters>
  </node>
  <node id="Read(2)">
    <operator>Read</operator>
    <sources/>
    <parameters class="com.bc.ceres.binding.dom.XppDomElement">
        <file>${file2}</file>
    </parameters>
  </node>
  <node id="TOPSAR-Split">
    <operator>TOPSAR-Split</operator>
    <sources>

and it is executed with the following command

gpt COHERENCE.xml -Pfile1=X:\User\coherence\S1A_IW_SLC__1SDV_20160923T155600_20160923T155627_013182_014F56_24D4.zip -Pfile2=X:\user\coherence\S1A_IW_SLC__1SDV_20161005T155600_20161005T155627_013357_0154DD_F6A4.zip -Ptarget= X:\user\coherence\result\S1A_IW_SLC__1SDV_20160923T155600_20160923T155627_013182_014F56_24D4_coh.dim

What could cause this error?

S.

Could you run your graph with the -e option.
Maybe this will reveal more information about the error.

After running the graph with -e, the result is the following:

Executing processing graph
-- org.jblas INFO Starting temp DLL cleanup task.
-- org.jblas INFO Deleted 8 unused temp DLL libraries from C:\User\AppData\Local\Temp\3
 done.
org.esa.snap.core.gpf.graph.GraphException: [NodeId: ReadOp@sourceProduct] Speci
fied 'file' does not exist
        at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext.java:79)
        at org.esa.snap.core.gpf.graph.GraphContext.initNodeContext(GraphContext.java:195)
        at org.esa.snap.core.gpf.graph.GraphContext.initOutput(GraphContext.java
:162)
        at org.esa.snap.core.gpf.graph.GraphContext.<init>(GraphContext.java:91)

        at org.esa.snap.core.gpf.graph.GraphContext.<init>(GraphContext.java:64)

        at org.esa.snap.core.gpf.graph.GraphProcessor.executeGraph(GraphProcesso
r.java:130)
        at org.esa.snap.core.gpf.main.DefaultCommandLineContext.executeGraph(Def
aultCommandLineContext.java:86)
        at org.esa.snap.core.gpf.main.CommandLineTool.executeGraph(CommandLineTo
ol.java:534)
        at org.esa.snap.core.gpf.main.CommandLineTool.runGraph(CommandLineTool.j
ava:388)
        at org.esa.snap.core.gpf.main.CommandLineTool.runGraphOrOperator(Command
LineTool.java:287)
        at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:1
88)
        at org.esa.snap.core.gpf.main.CommandLineTool.run(CommandLineTool.java:1
21)
        at org.esa.snap.core.gpf.main.GPT.run(GPT.java:54)
        at org.esa.snap.core.gpf.main.GPT.main(GPT.java:34)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        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(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:62)
        at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:101)
        at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:26)
Caused by: org.esa.snap.core.gpf.OperatorException: Specified 'file' does not ex
ist
        at org.esa.snap.core.gpf.common.ReadOp.initialize(ReadOp.java:81)
        at org.esa.snap.core.gpf.internal.OperatorContext.initializeOperator(Ope
ratorContext.java:486)
        at org.esa.snap.core.gpf.internal.OperatorContext.getTargetProduct(Opera
torContext.java:273)
        at org.esa.snap.core.gpf.Operator.getTargetProduct(Operator.java:387)
        at org.esa.snap.core.gpf.graph.NodeContext.initTargetProduct(NodeContext
.java:77)
        ... 28 more

Error: [NodeId: ReadOp@sourceProduct] Specified 'file' does not exist

I have checked the file locations and file path multiple times and everything seems ok. I copy the path and file neme from same source for both cases :

  1. runnig the gpt -Pfile1 and -Pfile2 and ${file1}, ${file2} in .xml
  2. editing the .xml file with the path and file name instead of ${file1}, ${file2}and then run gpt

At the end it works only in case 2.

S.

Mmmh!?
I’m doing it the same way. And it works for me.

I’m using the attached graph file and a S3 SLSTR product . With the following command:

gpt "G:\EOData\Processor Requests\read_SLSTR_reproj_to_UTM.xml" -PslstrFile=G:\EOData\temp\S3A_SL_1_RBT____20160819T200948_20160819T201248_20160819T221500_0179_007_356_2520_MAR_O_NR_001.SEN3\xfdumanifest.xml -t "G:\EOData\temp\test.dim"

From the extended error message I see that the file specified does not exist. But I don’t see which path is checked.
I’ change the error message to include the path of the file. This will be included in an update which will be released in the coming days. Maybe this will bring more insight.

read_SLSTR_reproj_to_UTM.xml (710 Bytes)

Hi Marpet,
I got an error and I feel it is a similar one that skuja got.

 Error: [NodeId: Read] I/O error while reading tie-point grid 'latitude'. 

Could you please have a look? Thank you.
I post also the results after running gpt -e

I see another error message there: “Either operator name or graph XML file must be given”