SciGaP / simccs-maptool

Online maptool that provides novel decision-support capabilities for evaluating carbon capture, utilization and storage technologies (CCUS).
5 stars 0 forks source link

NullPointerException generating candidate-network #208

Open machristie opened 1 year ago

machristie commented 1 year ago

Server side error:

Error occurred when calling makeCandidateNetworkShapeFiles: [
    'java.lang.NullPointerException',
    'dataStore.DataStorer.generateCandidateGraph(DataStorer.java:111)',
    'dataStore.DataStorer.getGraphEdgeRoutes(DataStorer.java:214)',
    'dataStore.DataInOut.makeCandidateShapeFiles(DataInOut.java:1020)',
    'dataStore.DataStorer.makeCandidateShapeFiles(DataStorer.java:606)']
Traceback (most recent call last):
  File "/var/www/portals/django-iu-geology-survey/venv/src/simccs-maptool/simccs_maptool/simccs_helper.py", line 141, in make_candidate_network_shapefiles
    data.makeCandidateShapeFiles(results_dir)
  File "jnius/jnius_export_class.pxi", line 769, in jnius.JavaMethod.__call__
  File "jnius/jnius_export_class.pxi", line 863, in jnius.JavaMethod.call_method
  File "jnius/jnius_utils.pxi", line 91, in jnius.check_exception
jnius.JavaException: JVM exception occurred: java.lang.NullPointerException

The error is occuring at this line: https://github.com/simccs/SimCCS/blob/public/src/dataStore/DataStorer.java#L111

It seems there are "outliers" in the data. Sources or sinks that belong to cells that are not part of the cost map.

machristie commented 1 year ago

Sources and sinks that are generating the issue:

Sinks.txt Sources.txt