Issue 10708
NPE on external resource that has been solr indexed, but no longer exists on file system
10708
Reporter: kbraak
Assignee: kbraak
Type: Bug
Summary: NPE on external resource that has been solr indexed, but no longer exists on file system
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-01-30 13:40:46.596
Updated: 2013-12-16 17:50:27.779
Resolved: 2012-01-30 15:33:59.255
Description: java.lang.NullPointerException
at org.gbif.registry.service.DatasetServiceImpl.populateOwningOrganization(DatasetServiceImpl.java:212)
at org.gbif.registry.service.DatasetServiceImpl.get(DatasetServiceImpl.java:197)
http://staging.gbif.org:8080/registry-search-ws/search?identifier=7879e569-4a13-4643-b833-d1a564675b86:urn%3Alsid%3Aknb.ecoinformatics.org%3Aknb-lter-hfr%3A12
This exists in the index, but not on disk:
http://staging.gbif.org:8080/portal-web-dynamic/dataset/7879e569-4a13-4643-b833-d1a564675b86:urn%3Alsid%3Aknb.ecoinformatics.org%3Aknb-lter-hfr%3A12]]>
Author: kbraak@gbif.org
Comment: I have committed a fix, but in the future we still need to try and ensure the index and external metadata are synchronised properly. Otherwise, we will present search results that lead to 404s. Will await Jenkins builds to test and confirm closed.
Created: 2012-01-30 13:44:05.721
Updated: 2012-01-30 13:44:05.721
Author: kbraak@gbif.org
Comment: Issue resolved. Let's remember to synchronize the solr index again.
Created: 2012-01-30 15:33:59.288
Updated: 2012-01-30 15:33:59.288