About migration from dspace 6 to dspace & solr indexing

75 views
Skip to first unread message

rekia rahmani

unread,
Apr 15, 2025, 10:52:12 AM4/15/25
to DSpace Community

Good afternoon;

After migration from dspace 6.3 to dspace 7.5 on Windows Server 2022 Datacenter, my database contains 12300 items but Angular UI shows only 8515 items.

I try to delete index and rebuit it stop indexing in 8515 showing this error:

C:\dspace\bin>dspace index-discovery

Using DSpace installation in: C:\dspace

The script has started

Updating Index

java.lang.NullPointerException

atorg.dspace.discovery.SolrServiceResourceRestrictionPlugin.additionalIndex(SolrServiceResourceRestrictionPlugin.java:95)

        at org.dspace.discovery.indexobject.IndexFactoryImpl.buildDocument(IndexFactoryImpl.java:67)

 atorg.dspace.discovery.indexobject.DSpaceObjectIndexFactoryImpl.buildDocument(DSpaceObjectIndexFactoryImpl.java:30)

        at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:143)

        at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:80)

        at org.dspace.discovery.SolrServiceImpl.update(SolrServiceImpl.java:169)

        at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:159)

        at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:344)

        at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:331)

        at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:130)

        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)

 


DSpace Community

unread,
Apr 21, 2025, 10:22:05 AM4/21/25
to DSpace Community
Hi,

This question has been asked before on dspace-tech in this thread: https://groups.google.com/g/dspace-tech/c/ioukme4el9o/m/fIwJG2iqAgAJ

The problem is likely that you somehow have an invalid ResourcePolicy in your database.  See a possible fix here: https://groups.google.com/g/dspace-tech/c/ioukme4el9o/m/F-dAxTzQAgAJ

Tim

Reply all
Reply to author
Forward
0 new messages