Hello!
Trying to import to oai-pmh (./dspace oai import -o -c --verbose) in
Dspace 6.3, the operation is interrupted by the next erro:
Item bd0f2bcf-ccf5-41f5-91a6-717bfb3b4b60 with handle 6789/864 indexed
java.lang.NullPointerException
at org.dspace.xoai.app.XOAI.willChangeStatus(XOAI.java:438)
at org.dspace.xoai.app.XOAI.index(XOAI.java:368)
at org.dspace.xoai.app.XOAI.index(XOAI.java:280)
at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:227) the
at org.dspace.xoai.app.XOAI.index(XOAI.java:134)
at org.dspace.xoai.app.XOAI.main(XOAI.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
After put the suggested code in the XOAI.java file:
private SolrInputDocument index(Item item) throws SQLException,
MetadataBindException, ParseException, XMLStreamException,
WritingXmlException {
if (verbose) {
System.out.println("Trying to index into oai item with
id:"+item.getID().toString());
}
SolrInputDocument doc = new SolrInputDocument();
doc.addField("item.id", item.getID());
there is not any output that shows what is the item that is stopping the
process, the last lines at the solr.log file are:
2020-07-20 21:46:49,404 INFO
org.apache.solr.update.processor.LogUpdateProcessor @ [oai] webapp=/solr
path=/update params={wt=javabin&version=2} {add=[6789/864
(1672792883230408704)]} 0 1
2020-07-20 21:46:49,422 INFO org.apache.solr.core.SolrCore @ [oai]
webapp=/solr path=/select
params={q=item.id:39374f02-6786-477c-97c5-553cd232d74f&fl=item.public&sort=item.id+asc&wt=javabin&version=2}
hits=0 status=0 QTime=1
2020-07-20 21:46:49,426 INFO org.apache.solr.core.SolrCore @ [oai]
webapp=/solr path=/select
params={q=item.id:39374f02-6786-477c-97c5-553cd232d74f&fl=item.id&sort=item.id+asc&wt=javabin&version=2}
hits=0 status=0 QTime=1
2020-07-20 21:46:54,510 INFO org.apache.solr.update.UpdateHandler @ start
commit{,optimize=false,openSearcher=true,waitSearcher=true,expungeDeletes=false,softCommit=false,prepareCommit=false}
2020-07-20 21:46:55,499 INFO org.apache.solr.core.SolrCore @
SolrDeletionPolicy.onCommit: commits: num=2
commit{dir=NRTCachingDirectory(MMapDirectory@/opt/dspace63/solr/oai/data/index
lockFactory=NativeFSLockFactory@/opt/dspace63/solr/oai/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_9,generation=9}
commit{dir=NRTCachingDirectory(MMapDirectory@/opt/dspace63/solr/oai/data/index
lockFactory=NativeFSLockFactory@/opt/dspace63/solr/oai/data/index;
maxCacheMB=48.0 maxMergeSizeMB=4.0),segFN=segments_a,generation=10}
2020-07-20 21:46:55,499 INFO org.apache.solr.core.SolrCore @ newest commit
generation = 10
2020-07-20 21:46:55,502 INFO org.apache.solr.search.SolrIndexSearcher @
Opening Searcher@b0af510[oai] main
2020-07-20 21:46:55,506 INFO org.apache.solr.core.SolrCore @
QuerySenderListener sending requests to Searcher@b0af510[oai]
main{StandardDirectoryReader(segments_5:31:nrt _7(4.10.4):C122
_8(4.10.4):C17 _9(4.10.4):C134 _a(4.10.4):C23 _b(4.10.4):C169
_c(4.10.4):C31 _d(4.10.4):C67)}
2020-07-20 21:46:55,507 INFO org.apache.solr.core.SolrCore @
QuerySenderListener done.
2020-07-20 21:46:55,507 INFO org.apache.solr.core.SolrCore @ [oai]
Registered new searcher Searcher@b0af510[oai]
main{StandardDirectoryReader(segments_5:31:nrt _7(4.10.4):C122
_8(4.10.4):C17 _9(4.10.4):C134 _a(4.10.4):C23 _b(4.10.4):C169
_c(4.10.4):C31 _d(4.10.4):C67)}
2020-07-20 21:46:55,513 INFO org.apache.solr.update.UpdateHandler @
end_commit_flush
What can I do to fix this situation.
Thaks!!!!
--
All messages to this mailing list should adhere to the DuraSpace Code of
Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dspace-tech/5e6d998f-1831-4e29-add0-8afc6a170df5o%40googlegroups.com.