SOLVED

I went through the code to see where the exception was being thrown (see 
attached) and noticed the logic was that resource policy has to have a 
either a group or a person attached which then pointed me to think there 
could be such a record. Fortunately there was one record in the 
resourcepolicy table. I have since deleted that record and now discovery 
indexing is completing successfully.

On Thursday, 7 April 2022 at 15:52:25 UTC+1 Nason Bimbe wrote:

> When I run index-discovery on a Dspace 6.3 I am getting the NPE recorded 
> in the dspace.log
>
> 2022-04-07 14:24:18,309 ERROR org.dspace.discovery.SolrServiceImpl @
> java.lang.NullPointerException
>         at 
> org.dspace.discovery.SolrServiceResourceRestrictionPlugin.additionalIndex(SolrServiceResourceRestrictionPlugin.java:67)
>         at 
> org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:856)
>         at 
> org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:245)
>         at 
> org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:420)
>         at org.dspace.discovery.IndexClient.main(IndexClient.java:152)
>         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)
>
> Does anyone has an idea what is causing this problem and also how I can 
> resolve it?
>
> Regards
> Nason
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" 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-community/80e48de4-0164-47f2-83f4-c138404d8d5dn%40googlegroups.com.

Reply via email to