Hi Alexis, I believe we ran into a similar issue, and it had to do with an item we had that had some corrupted data (we have no idea how it got in the state it was in). We initially turned off the plugin by commenting out the bean in config/spring/api/discovery.xml and were able to run a successful indexing.
Later on I took a look and implemented a fix in dspace-api/src/main/java/org/dspace/discovery/SolrServiceFileInfoPlugin.java. Basically, the fix just wraps everything inside the final "for (Bitstream bitstream : bitstreams)" block in a null check, "(if bitstream != null)" with some logging if it did equal null. I haven't yet submitted a pull request to include this check in the repo but I provide the outline here in case you want to implement a similar fix. Happy to discuss more if I can be of more help. Ed Hill Pronouns: He/Him (pronoun statement<https://pronouns.colostate.edu/>) Developer and Systems Administrator (970) 491-3197 Colorado State University Libraries [cid:b487c08b-a766-44ef-a360-df5584bf4fc9] ________________________________ From: 'Alexis Febre' via DSpace Technical Support <[email protected]> Sent: Tuesday, June 18, 2024 5:42 AM To: DSpace Technical Support <[email protected]> Subject: [dspace-tech] index-discovery failed ** Caution: EXTERNAL Sender ** Good morning DSpace team, I'm having problems with index-discovery after upgrading from DSpace version 6.3 to 7.6.1. First, I run dspace database migrate ignored without problems. Then I run index-discovery -b but it gives me the following error: java.lang.NullPointerException at org.dspace.discovery.SolrServiceFileInfoPlugin.additionalIndex(SolrServiceFileInfoPlugin.java:55) 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.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:146) at org.dspace.discovery.indexobject.ItemIndexFactoryImpl.buildDocument(ItemIndexFactoryImpl.java:81) 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:349) at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:336) at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:304) at org.dspace.discovery.IndexClient.internalRun(IndexClient.java:117) at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150) at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:154) at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:132) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99) At the moment, I have not found any solution. If you have any solution, welcome. Greetings and thanks! Alexis -- 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 Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/3fa324b0-8650-4584-9063-6ceee181af96n%40googlegroups.com<https://groups.google.com/d/msgid/dspace-tech/3fa324b0-8650-4584-9063-6ceee181af96n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 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/DM6PR07MB78197DDA9E048933F4950875F6D52%40DM6PR07MB7819.namprd07.prod.outlook.com.
