error index-discovery -b

125 views
Skip to first unread message

Matías Javier Saavedra Gajardo

unread,
Apr 10, 2023, 2:41:51 PM4/10/23
to DSpace Technical Support
Hi dears.

I migrated a database from dspace 6.4 to dsapce 7.3, at the time of migrating I had no error, but at the time of indexing it gives me the following error.
It is appreciated if you help me to solve the error.

java.lang.NullPointerException
        at org.dspace.discovery.SolrServiceResourceRestrictionPlugin.additionalIndex(SolrServiceResourceRestrictionPlugin.java:119)
        at org.dspace.discovery.indexobject.IndexFactoryImpl.buildDocument(IndexFactoryImpl.java:67)
        at org.dspace.discovery.indexobject.DSpaceObjectIndexFactoryImpl.buildDocument(DSpaceObjectIndexFactoryImpl.java:30)
        at org.dspace.discovery.indexobject.CollectionIndexFactoryImpl.buildDocument(CollectionIndexFactoryImpl.java:84)
        at org.dspace.discovery.indexobject.CollectionIndexFactoryImpl.buildDocument(CollectionIndexFactoryImpl.java:41)
        at org.dspace.discovery.SolrServiceImpl.update(SolrServiceImpl.java:165)
        at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:155)
        at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:340)
        at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:327)
        at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:295)
        at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:72)
        at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:104)
        at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:149)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:131)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)

Thanks in advance.

Matias.

Agustina Martinez-Garcia

unread,
Apr 11, 2023, 11:25:21 AM4/11/23
to DSpace Technical Support
Hi Matías,

This error is likely to be related with a resource policy in your database that has a null eperson entry in the database. The null pointer exception is being thrown here: https://github.com/DSpace/DSpace/blob/79d70be6fb00cfb2f48f2f794ec188f511d6f1fe/dspace-api/src/main/java/org/dspace/discovery/SolrServiceResourceRestrictionPlugin.java#L119

Looks like it will be useful to create an issue ticket.

Best,
Agustina
Reply all
Reply to author
Forward
0 new messages