Bug #7161
closedUploading a resource map with provenance data causes an NPE during indexing
0%
Description
When uploading a resource map with provenance relationships included, indexing exits with an NPE during processing of RdfXmlSubprocessor:
Java.lang.NullPointerException
at org.dataone.cn.indexer.annotation.RdfXmlSubprocessor.getSolrDocs(RdfXmlSubprocessor.java:278)
at org.dataone.cn.indexer.annotation.RdfXmlSubprocessor.process(RdfXmlSubprocessor.java:265)
at org.dataone.cn.indexer.annotation.RdfXmlSubprocessor.processDocument(RdfXmlSubprocessor.java:119)
...
The problem appears to be caused by RdfXmlSubprocessor.getSolrDocs() calling httpService, which causes the NPE because an http solr server
is not run on metacat member node instances, which rely on the embedded solr server instead.
The included files are the resource map that was uploaded that caused the NPE, and a portion of the tomcat log file that includes
indexer TRACE info and the NPE.
Files
Updated by Jing Tao almost 8 years ago
- Status changed from New to Resolved
Wrote a new MetacatRdfXmlSubprocessor which overwrites the code to access the solr http server directly. I also wrote a junit test class to test it and it worked well.