Index-Discovery with DSpace 5.8

217 views
Skip to first unread message

Kosmas Kaifel

unread,
Feb 25, 2021, 3:25:34 AM2/25/21
to DSpace Technical Support
Hello

with the command ../bin/dspace index-discovery I receive the following
error message

Exception: Handle is null
org.dspace.discovery.SearchServiceException: Handle is null
    at
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:507)
    at org.dspace.discovery.IndexClient.main(IndexClient.java:126)
    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:226)
    at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
Caused by: java.lang.IllegalArgumentException: Handle is null
    at
org.dspace.handle.HandleManager.findHandleInternal(HandleManager.java:532)
    at
org.dspace.handle.HandleManager.resolveToObject(HandleManager.java:322)
    at
org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:488)
    ... 7 more
SOLR Search Optimize -- Process Started:1614200413002
SOLR Search Optimize -- Process Finished:1614200413017
SOLR Search Optimize -- Total time taken:15 (ms).

With two sql-statment I try to find items without handle but I can not
find any

1) select * from handle h where h.handle='' or h.handle is null

2) Select i.item_id FROM item i WHERE i.in_archive=True And Not EXISTS
    (Select resource_id FROM handle h WHERE h.resource_id = i.item_id
And h.resource_type_id = 2)

Best Regards
Kosmas

--
+---------------------------------------------------------------+
Universität Ulm
Kommunikations- und Informationszentrum (kiz)
Abt. Informationsmedien
Albert-Einstein-Allee 37
89081 Ulm
Tel. 0731/50-15495
EMail: kosmas...@uni-ulm.de
+----------------------------------------------------------------+

LBOV

unread,
Mar 5, 2021, 9:49:14 AM3/5/21
to DSpace Technical Support
Dealing with the same problem, any clues?

José Geraldo

unread,
Mar 5, 2021, 10:42:40 AM3/5/21
to LBOV, DSpace Technical Support
Using parameter -b, will return same error?

-b (re)build index, wiping out current one if it exists

--
All messages to this mailing list should adhere to the 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 dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/e0d7ce34-70f2-4f08-8ca8-3e8dcb67d944n%40googlegroups.com.


--
At.te,

José Geraldo

LBOV

unread,
Mar 5, 2021, 5:40:35 PM3/5/21
to DSpace Technical Support
Hi,
Using parameter -b don't return any error, returns nothing actually, but it seems to complete the index rebuild.
Nevertheless, if I run index-discovery (without de -b parameter) after run index-discovery -b, the same error is shown again...





Reply all
Reply to author
Forward
0 new messages