The results from the Lists API may have changed and made this code have issues processing the responses. The symptoms are a set of NullPointerException stacktraces in the log files on ala-maps.
The stacktrace is consistent in each case for different DR's so it isn't localised to a particular result:
2018-02-05 12:12:46:792 CommonData [ERROR] error reading list: dr7904
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:818 CommonData [ERROR] error reading list: dr649
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:844 CommonData [ERROR] error reading list: dr656
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:869 CommonData [ERROR] error reading list: dr650
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:894 CommonData [ERROR] error reading list: dr651
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:919 CommonData [ERROR] error reading list: dr653
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:944 CommonData [ERROR] error reading list: dr654
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:970 CommonData [ERROR] error reading list: dr655
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
2018-02-05 12:12:46:995 CommonData [ERROR] error reading list: dr2201
java.lang.NullPointerException
at au.org.ala.spatial.util.CommonData.initSpeciesListAdditionalColumns(CommonData.java:1346)
at au.org.ala.spatial.util.CommonData.refreshCachedData(CommonData.java:228)
at au.org.ala.spatial.util.CommonData.init(CommonData.java:204)
at au.org.emii.portal.config.ConfigurationLoaderStage2Impl.load(ConfigurationLoaderStage2Impl.java:96)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.load(ConfigurationLoaderStage1Impl.java:83)
at au.org.emii.portal.config.ConfigurationLoaderStage1Impl.run(ConfigurationLoaderStage1Impl.java:119)
at java.lang.Thread.run(Thread.java:745)
......
The key code seems to assume that the listName property will be in the JSON, but it isn't a root property in the current version:
The API seems to be returning a set of search results, with listName only applying to each individual search result, rather than the overall search result:
The results from the Lists API may have changed and made this code have issues processing the responses. The symptoms are a set of
NullPointerException
stacktraces in the log files on ala-maps.The stacktrace is consistent in each case for different DR's so it isn't localised to a particular result:
The key code seems to assume that the
listName
property will be in the JSON, but it isn't a root property in the current version:https://github.com/AtlasOfLivingAustralia/spatial-portal/blob/master/src/main/java/au/org/ala/spatial/util/CommonData.java#L1346
The API seems to be returning a set of search results, with
listName
only applying to each individual search result, rather than the overall search result:E.g,
https://lists.ala.org.au/ws/speciesList?druid=dr823
returns the following (not the full result, and doesn't have dr823 in the list here):