when running bin/dspace filter-media
it throws NullPointerException
it worked until today.
possible cause:
yesterday the cron ran
bin/dspace cleanup
also new items have come in.
The error logs say:
2024-03-08 11:09:34,089 INFO unknown unknown
org.dspace.scripts.handler.impl.CommandLineDSpaceRunnableHandler @ SKIPPED:
bitstream d7fc532c-1e9b-45b2-8560-22223058fbdb (item: 1828/3768) because
'Osborne_Marilyn_MA_2011.pdf.jpg' already exists
2024-03-08 11:09:34,093 ERROR unknown unknown
org.dspace.scripts.handler.impl.CommandLineDSpaceRunnableHandler @
Cannot invoke
"org.dspace.content.Bitstream.getFormat(org.dspace.core.Context)" because
"myBitstream" is null
java.lang.NullPointerException: Cannot invoke
"org.dspace.content.Bitstream.getFormat(org.dspace.core.Context)" because
"myBitstream" is null
at
org.dspace.app.mediafilter.MediaFilterServiceImpl.filterBitstream(MediaFilterServiceImpl.java:221)
~[dspace-api-7.6.1.jar:7.6.1]
at
org.dspace.app.mediafilter.MediaFilterServiceImpl.filterItem(MediaFilterServiceImpl.java:188)
~[dspace-api-7.6.1.jar:7.6.1]
at
org.dspace.app.mediafilter.MediaFilterServiceImpl.applyFiltersItem(MediaFilterServiceImpl.java:168)
~[dspace-api-7.6.1.jar:7.6.1]
at
org.dspace.app.mediafilter.MediaFilterServiceImpl.applyFiltersAllItems(MediaFilterServiceImpl.java:127)
~[dspace-api-7.6.1.jar:7.6.1]
at
org.dspace.app.mediafilter.MediaFilterScript.internalRun(MediaFilterScript.java:228)
[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]
It would have been useful if the logs told me the bitstream that caused
this error.
Any help would be helpful.
--
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/5e02e827-2f77-4fad-9b39-afead56a41c2n%40googlegroups.com.