RuntimeError: java.lang.NullPointerException

Hi

I have been facing inconsistent errors while using SNAP+sen2cor.

Recently , Day D i ran sen2cor (installed via SNAP) and it generated the L2A product , but using the GPF product in -memory it was not able to read its own created L2A product !!! It started giving Null pointer exception. Then i upgraded sen2cor via SNAP updates and then it started saying “no valid tiles” in the L2A product it created itself from the L1C (from sentinelhub).

After processing all the bands, this error comes!

Please help ! all my POC delivery has been stalled due to these inconsistent behaviour !!

Plz see the log below:
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterIO: Initializing external tool adapters
INFO: org.esa.s2tbx.dataio.s2.ortho.S2OrthoProductReaderPlugIn: Building product reader - EPSG:32643
WARNING: org.esa.s2tbx.dataio.metadata.GenericXmlMetadata: Metadata: the path to element [metadata_level] does not exist
WARNING: org.esa.s2tbx.dataio.metadata.GenericXmlMetadata: Metadata: the path to element [granuleidentifier] does not exist
WARNING: org.esa.s2tbx.dataio.metadata.GenericXmlMetadata: Metadata: the path to element [bandid] does not exist
INFO: org.hsqldb.persist.Logger: dataFileCache open start
Warning: org.apache.xerces.parsers.SAXParser: Property ‘http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit’ is not recognized.
Compiler warnings:
WARNING: ‘org.apache.xerces.jaxp.SAXParserImpl: Property ‘http://javax.xml.XMLConstants/property/accessExternalDTD’ is not recognized.’
Compiler warnings:
WARNING: ‘org.apache.xerces.jaxp.SAXParserImpl: Property ‘http://javax.xml.XMLConstants/property/accessExternalDTD’ is not recognized.’
INFO: org.esa.snap.core.gpf.operators.tooladapter.ToolAdapterOp: Executing tool ‘Sen2Cor’ with command line: ‘C:\Users\new.snap\auxdata\Sen2Cor-02.05.05-win64\L2A_Process.bat --resolution 20 Z:\S2B_MSIL1C_20180130T053049_N0206_R105_T43QGF_20180130T091331.SAFE --GIP_L2A C:\Users\new\documents\sen2cor\L2A-GIPP25-custom.xml’
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Sentinel-2 Level 2A Processor (Sen2Cor). Version: 2.5.5, created: 2018.03.19, supporting Level-1C product version <= 14.5 started …
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Product version: 14.5. Operation mode: PDGS. Processing baseline: 02.06.
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Selected resolution: 20 m.
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 1.29 : PID-13396, L2A_ProcessTile: processing with resolution 20 m, elapsed time[s]: 15.436, total: 0:00:42.558000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 1.29 : PID-13396, L2A_ProcessTile: start of pre processing, elapsed time[s]: 0.012, total: 0:00:42.570000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 1.31 : PID-13396, L2A_Tables: start import, elapsed time[s]: 0.213, total: 0:00:42.783000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 1.92 : PID-13396, L2A_Tables: band B01 imported, elapsed time[s]: 7.335, total: 0:00:50.118000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 2.75 : PID-13396, L2A_Tables: band B02 imported, elapsed time[s]: 9.993, total: 0:01:00.111000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 3.50 : PID-13396, L2A_Tables: band B03 imported, elapsed time[s]: 9.039, total: 0:01:09.150000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 4.30 : PID-13396, L2A_Tables: band B04 imported, elapsed time[s]: 9.520, total: 0:01:18.670000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 4.64 : PID-13396, L2A_Tables: band B05 imported, elapsed time[s]: 4.180, total: 0:01:22.850000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 4.92 : PID-13396, L2A_Tables: band B06 imported, elapsed time[s]: 3.283, total: 0:01:26.133000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 5.19 : PID-13396, L2A_Tables: band B07 imported, elapsed time[s]: 3.312, total: 0:01:29.445000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 5.46 : PID-13396, L2A_Tables: band B8A imported, elapsed time[s]: 3.185, total: 0:01:32.630000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 6.10 : PID-13396, L2A_Tables: band B09 imported, elapsed time[s]: 7.734, total: 0:01:40.364000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 6.69 : PID-13396, L2A_Tables: band B10 imported, elapsed time[s]: 6.984, total: 0:01:47.348000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 6.92 : PID-13396, L2A_Tables: band B11 imported, elapsed time[s]: 2.831, total: 0:01:50.179000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 7.17 : PID-13396, L2A_Tables: band B12 imported, elapsed time[s]: 2.938, total: 0:01:53.117000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 7.17 : PID-13396, L2A_ProcessTile: start of Scene Classification, elapsed time[s]: 0.012, total: 0:01:53.129000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 7.33 : PID-13396, Pre process , elapsed time[s]: 1.895, total: 0:01:55.024000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 8.24 : PID-13396, L2A_SC init , elapsed time[s]: 11.021, total: 0:02:06.045000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 8.43 : PID-13396, L2A_CSND_1_1 , elapsed time[s]: 2.240, total: 0:02:08.285000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 8.67 : PID-13396, L2A_CSND_1_2 , elapsed time[s]: 2.886, total: 0:02:11.171000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 9.13 : PID-13396, L2A_CSND_3 , elapsed time[s]: 5.492, total: 0:02:16.663000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 9.37 : PID-13396, L2A_CSND_5_1 , elapsed time[s]: 2.879, total: 0:02:19.542000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 9.84 : PID-13396, L2A_CSND_5_2 , elapsed time[s]: 5.642, total: 0:02:25.184000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 10.15 : PID-13396, L2A_CSND_6 , elapsed time[s]: 3.688, total: 0:02:28.872000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 10.35 : PID-13396, L2A_CSND_6_2 , elapsed time[s]: 2.413, total: 0:02:31.285000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 10.55 : PID-13396, L2A_CSND_7 , elapsed time[s]: 2.399, total: 0:02:33.684000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 14.80 : PID-13396, L2A_SHD , elapsed time[s]: 51.086, total: 0:03:24.770000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.09 : PID-13396, DV recovery , elapsed time[s]: 3.404, total: 0:03:28.174000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.40 : PID-13396, WP recovery , elapsed time[s]: 3.696, total: 0:03:31.870000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.40 : PID-13396, WP recovery with CCI Water Bodies at 150m , elapsed time[s]: 0.062, total: 0:03:31.932000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.65 : PID-13396, Snow recovery , elapsed time[s]: 3.044, total: 0:03:34.976000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.81 : PID-13396, Soil recovery , elapsed time[s]: 1.855, total: 0:03:36.831000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.81 : PID-13396, Land recovery with B10, B09 and B8A , elapsed time[s]: 0.063, total: 0:03:36.894000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.82 : PID-13396, Cirrus recovery with B10 , elapsed time[s]: 0.035, total: 0:03:36.929000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 15.82 : PID-13396, Urban and Bare pixel recovery with CCI Land Cover Map at 300 m , elapsed time[s]: 0.052, total: 0:03:36.981000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 16.23 : PID-13396, Post process , elapsed time[s]: 4.936, total: 0:03:41.917000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 16.23 : PID-13396, L2A_ProcessTile: start of Atmospheric Correction, elapsed time[s]: 0.007, total: 0:03:41.924000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 16.48 : PID-13396, L2A_AtmCorr: end of calculation terrain maps, elapsed time[s]: 2.977, total: 0:03:44.901000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 16.48 : PID-13396, L2A_AtmCorr: start of AOT retrieval at 550nm, elapsed time[s]: 0.008, total: 0:03:44.909000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 17.32 : PID-13396, L2A_AtmCorr: end of internal classification, elapsed time[s]: 10.100, total: 0:03:55.009000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 17.37 : PID-13396, L2A_AtmCorr: end of interpolation LUTs, elapsed time[s]: 0.550, total: 0:03:55.559000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 18.44 : PID-13396, L2A_AtmCorr: end retrieving reference pixels for dark areas, elapsed time[s]: 12.882, total: 0:04:08.441000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 22.92 : PID-13396, L2A_AtmCorr: end of check for negative reflectance pixels, elapsed time[s]: 53.704, total: 0:05:02.145000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 23.26 : PID-13396, L2A_AtmCorr: the rescaling of path radiance in blue band has been disabled by configuration, elapsed time[s]: 4.085, total: 0:05:06.230000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 25.39 : PID-13396, L2A_AtmCorr: end of visibility index calculation, elapsed time[s]: 25.612, total: 0:05:31.842000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 25.39 : PID-13396, L2A_AtmCorr: end of AOT retrieval at 550nm, elapsed time[s]: 0.012, total: 0:05:31.854000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 25.39 : PID-13396, L2A_AtmCorr: start of water vapour retrieval, elapsed time[s]: 0.005, total: 0:05:31.859000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 25.60 : PID-13396, L2A_AtmCorr: end of water vapour retrieval preparation, elapsed time[s]: 2.465, total: 0:05:34.324000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 36.27 : PID-13396, L2A_AtmCorr: end of water vapour retrieval, elapsed time[s]: 128.082, total: 0:07:42.406000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 36.27 : PID-13396, L2A_AtmCorr: preparation of surface reflectance retrieval, elapsed time[s]: 0.012, total: 0:07:42.418000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 36.82 : PID-13396, L2A_AtmCorr: end of surface reflectance retrieval preparation, elapsed time[s]: 6.511, total: 0:07:48.929000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 42.79 : PID-13396, L2A_AtmCorr: end of surface reflectance retrieval, elapsed time[s]: 71.666, total: 0:09:00.595000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 52.56 : PID-13396, L2A_AtmCorr: end of rho retrieval step 2, elapsed time[s]: 117.226, total: 0:10:57.821000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 52.57 : PID-13396, L2A_ProcessTile: start of post processing, elapsed time[s]: 0.106, total: 0:10:57.927000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 52.57 : PID-13396, L2A_Tables: start export, elapsed time[s]: 0.030, total: 0:10:57.957000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 52.92 : PID-13396, L2A_Tables: band B02 exported, elapsed time[s]: 4.168, total: 0:11:02.125000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 53.17 : PID-13396, L2A_Tables: band B03 exported, elapsed time[s]: 3.045, total: 0:11:05.170000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 53.43 : PID-13396, L2A_Tables: band B04 exported, elapsed time[s]: 3.053, total: 0:11:08.223000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 53.68 : PID-13396, L2A_Tables: band B05 exported, elapsed time[s]: 3.033, total: 0:11:11.256000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 54.00 : PID-13396, L2A_Tables: band B06 exported, elapsed time[s]: 3.889, total: 0:11:15.145000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 54.36 : PID-13396, L2A_Tables: band B07 exported, elapsed time[s]: 4.253, total: 0:11:19.398000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 54.88 : PID-13396, L2A_Tables: band B8A exported, elapsed time[s]: 6.329, total: 0:11:25.727000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 55.28 : PID-13396, L2A_Tables: band B11 exported, elapsed time[s]: 4.815, total: 0:11:30.542000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 55.54 : PID-13396, L2A_Tables: band B12 exported, elapsed time[s]: 3.007, total: 0:11:33.549000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 55.69 : PID-13396, L2A_Tables: band SCL exported, elapsed time[s]: 1.828, total: 0:11:35.377000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 55.81 : PID-13396, L2A_Tables: band SNW exported, elapsed time[s]: 1.444, total: 0:11:36.821000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 55.97 : PID-13396, L2A_Tables: band CLD exported, elapsed time[s]: 1.948, total: 0:11:38.769000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 56.14 : PID-13396, L2A_Tables: band AOT exported, elapsed time[s]: 2.042, total: 0:11:40.811000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 56.45 : PID-13396, L2A_Tables: band WVP exported, elapsed time[s]: 3.676, total: 0:11:44.487000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 56.59 : PID-13396, L2A_Tables: band VIS exported, elapsed time[s]: 1.666, total: 0:11:46.153000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 56.94 : PID-13396, L2A_Tables: band PVI exported, elapsed time[s]: 4.257, total: 0:11:50.410000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 57.67 : PID-13396, L2A_Tables: band TCI exported, elapsed time[s]: 8.771, total: 0:11:59.181000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 57.68 : PID-13396, L2A_Tables: stop export, elapsed time[s]: 0.135, total: 0:11:59.316000
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Progress[%]: 100.00 : Application terminated successfully.
INFO: org.esa.snap.core.gpf.operators.tooladapter.DefaultOutputConsumer: Finished tool execution in 758 seconds
Process finished with exit code 1

Logging output of script FarmScore_ProcessL1C_UnmaskedNDVI.py

Script start : 2018-06-30 16:26:52.567433

Reading L1C product folder: S2B_MSIL1C_20180130T053049_N0206_R105_T43QGF_20180130T091331.SAFE
Start product: 2018-06-30 16:26:52.655422
Traceback (most recent call last):
File “C:/Users/new/xyz.py”, line 52, in
product = snappy.GPF.createProduct(‘Sen2Cor’, parameters, myprod) #http://step.esa.int/docs/v5.0/apidoc/engine/
RuntimeError: java.lang.NullPointerException

Regards
Sherin