DSpace 7.6.1 import "Error committing changes to database"

96 views
Skip to first unread message

David Tolmie

unread,
Sep 4, 2024, 6:28:39 PM9/4/24
to dspac...@googlegroups.com

Having recently upgraded from DSpace 5.6 to 7.6.1, we are attempting our first CLI SAF import into our new production system. When testing SAF imports into our staging server before going live with production, we had no issues importing. Now, we’re seeing the following error when importing into both production and staging systems:

 

2024-09-04 15:01:59,441 ERROR unknown unknown org.dspace.scripts.handler.impl.CommandLineDSpaceRunnableHandler @ Error committing changes to database: null, aborting most recent changes

java.lang.Exception: Error committing changes to database: null, aborting most recent changes

        at org.dspace.app.itemimport.ItemImport.internalRun(ItemImport.java:233) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.scripts.DSpaceRunnable.run(DSpaceRunnable.java:150) [dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.launcher.ScriptLauncher.executeScript(ScriptLauncher.java:154) [dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:132) [dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99) [dspace-api-7.6.1.jar:7.6.1]

Caused by: java.lang.NullPointerException

        at org.dspace.content.authority.ChoiceAuthorityServiceImpl.getBestMatch(ChoiceAuthorityServiceImpl.java:176) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.content.ItemServiceImpl.getAuthoritiesAndConfidences(ItemServiceImpl.java:1605) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.content.DSpaceObjectServiceImpl.addMetadata(DSpaceObjectServiceImpl.java:346) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.content.DSpaceObjectServiceImpl.addMetadata(DSpaceObjectServiceImpl.java:212) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.content.DSpaceObjectServiceImpl.addMetadata(DSpaceObjectServiceImpl.java:324) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImportServiceImpl.addDCValue(ItemImportServiceImpl.java:982) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImportServiceImpl.loadDublinCore(ItemImportServiceImpl.java:941) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImportServiceImpl.loadMetadata(ItemImportServiceImpl.java:902) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImportServiceImpl.addItem(ItemImportServiceImpl.java:746) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImportServiceImpl.addItems(ItemImportServiceImpl.java:313) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImportCLI.process(ItemImportCLI.java:92) ~[dspace-api-7.6.1.jar:7.6.1]

        at org.dspace.app.itemimport.ItemImport.internalRun(ItemImport.java:226) ~[dspace-api-7.6.1.jar:7.6.1]

        ... 4 more

 

We haven’t found an errors via strace or in the Postgres logs; we’ll turn up Postgres to debug logging when we keep poking at it tomorrow.

 

Any thoughts or suggestions as far as what might be going on? What we should look into more deeply?

 

Thanks,

 

-Dave

David Tolmie

unread,
Sep 9, 2024, 12:50:03 PM9/9/24
to dspac...@googlegroups.com

We’ve resolved this issue. It was the result of a bad Authority configuration that snuck in after we’d tested batch import and didn’t seem to impact regular uploads through the UI.

 

-Dave

 

 

--
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 dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/MWHPR0801MB3740886950DC68DE712301F3D09C2%40MWHPR0801MB3740.namprd08.prod.outlook.com.

Reply all
Reply to author
Forward
0 new messages