SliceAssembly NullPointerException

Dear All,

I am trying to isolate a problem with SliceAssembly of 2 SLC scenes.

My graph is pretty standard:

<graph id="Graph">
  <version>1.0</version>
   <node id="ProductSet-Reader">
    <operator>ProductSet-Reader</operator>
    <sources/>
    <parameters class="com.bc.ceres.binding.dom.XppDomElement">
      <fileList>$infile_first,$infile_second</fileList>
    </parameters>
  </node>
  <node id="SliceAssembly">
    <operator>SliceAssembly</operator>
    <sources>
      <sourceProduct refid="ProductSet-Reader"/>
    </sources>
    <parameters class="com.bc.ceres.binding.dom.XppDomElement">
      <selectedPolarisations>VV,VH</selectedPolarisations>
    </parameters>
  </node>
  <node id="Write">
    <operator>Write</operator>
    <sources>
      <sourceProduct refid="SliceAssembly"/>
    </sources>
    <parameters class="com.bc.ceres.binding.dom.XppDomElement">
      <file>$outfile</file>
      <formatName>BEAM-DIMAP</formatName>
    </parameters>
  </node>
  <applicationData id="Presentation">
    <Description/>
    <node id="Read">
            <displayPosition x="31.0" y="54.0"/>
    </node>
    <node id="Read(2)">
      <displayPosition x="33.0" y="157.0"/>
    </node>
    <node id="SliceAssembly">
      <displayPosition x="150.0" y="102.0"/>
    </node>
    <node id="Write">
            <displayPosition x="521.0" y="100.0"/>
    </node>
  </applicationData>
</graph>

and the call is:

~/snap/bin/gpt /home/user/S1/sliceAssembly.xml -Pinfile_first=/mnt/data/S1/NL/S1A_IW_SLC__1SDV_20181116T054946_20181116T055013_024609_02B3E4_8F10.zip -Pinfile_second=/mnt/data/S1/NL/S1A_IW_SLC__1SDV_20181116T055011_20181116T055038_024609_02B3E4_8609.zip -Poutfile=/home/user/S1/test_asm.dim
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
Executing processing graph
java.lang.NullPointerException
done.

Scenes are definitely adjacent (already processed to coherence as individual pairs with the matching image of 20181110.

(I updated snap yesterday).

I also tried feeding the SliceAssembly node with 2 separate Read nodes, for the 2 individual products, but same problem.

I checked the forum. Any hint or a working example appreciated.

Guido

Guido, I tried both in the GUI and from gpt using the same products you listed above and using the Sentinel1SliceAssemblyGraph.xml and both completed ok.

Did you run it directly on the original products or was there any other pre-processing?

You can check some diagnostic information with gpt
gpt --diag

and confirm the latest updates are installed with
snap --nosplash --nogui --modules --list --refresh

and to update all with
snap --nosplash --nogui --modules --update-all

(if you’re running windows, you may need to call snap64 instead of snap)

1 Like

Thanks Luis. The --update-all solved the issue. Maybe it should be integrated as part of the installation package. I saw that the installer is from 15 January 2018, so obviously does not include the latest updates.

In the meantime, I moved (up?) to snappy. I just managed to run SliceAssembly in it, so that’s promising.

Still this odd “SEVERE” error about not including ‘.’ in the LD_LIBRARY_PATH, btw. I thought that was solved some time ago.

Guido

snap --nosplash --nogui --modules --update-all
worked smoothly.

But over the top, I read a lot of NPE on many thread for Java, as Null and Heap Space issue troubled me a lot today.

However i stressed on more why NPE occur on https://www.hows.tech/2019/06/exception-in-thread-main-java-lang-nullpointerexception-java.html

I am actually not sure. I am using _unix_6_0 but I am not sure if it includes the latest changes. I see my GUI is 6.0.6.