Error OAI PMH DSPACE 7.5 (UNAJ)

11 views
Skip to first unread message

UNAJ Repositorio

unread,
Nov 10, 2025, 1:31:26 PMNov 10
to DSpace Community
Hello, we need to update the OAI-PMH directory listing because we noticed it wasn't updating. When we run the command `/bin/dspace oai import`, we get the following error. Can anyone help us identify what we need to do to fix it?

Hola, necesitamos actualizar el listado del OAI-PMH porque nos percatamos que no se estaba actualizando. Al ejecutar el comando /bin/dspace oai import nos devuelve el siguiente error. Alguien puede ayudarnos a identificar que debemos hacer para solucionarlo?

Full import Warning at xsl:stylesheet on line 14 column 35 Unrecognized version 1.1: treated as 1.0 java.lang.NullPointerException: Cannot invoke "org.dspace.content.Bitstream.getFormat(org.dspace.core.Context)" because "bs" is null at org.dspace.xoai.app.XOAI.getFileFormats(XOAI.java:114) at org.dspace.xoai.app.XOAI.index(XOAI.java:475) at org.dspace.xoai.app.XOAI.index(XOAI.java:328) at org.dspace.xoai.app.XOAI.indexAll(XOAI.java:273) at org.dspace.xoai.app.XOAI.index(XOAI.java:160) at org.dspace.xoai.app.XOAI.main(XOAI.java:627) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277) at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133) at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)


Kim Shepherd

unread,
Nov 13, 2025, 9:41:54 AMNov 13
to UNAJ Repositorio, DSpace Community
This error occurs because somehow, the bitstream object being inspected for file format is null. If you run the import command with -v to force verbose output, you could take the item ID being processed before the error is thrown and check it to make sure there are no problems with the data.
(It is very unusual for a null bitstream to be found when iterating a bundle but that does seem to be the case.)

0CCB D957 0C35 F5C1 497E CDCF FC4B ABA3 2A1A FAEC


--
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 dspace-communi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-community/5e63a3dd-4c23-44cf-b01d-5ad7ea3ee59en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages