org.dspace.eperson.Group.getID()" because "groupChild" is null

14 views
Skip to first unread message

Job Diogenes Ribeiro Borges

unread,
May 22, 2025, 7:05:30 PM5/22/25
to DSpace Community
Hi all,

Using DSPACE 8.1

I did something like:

dspace packager -s -t AIP -e ad...@emai.com -p 123456789/999 aip-XXX.zip

But, get, the following error

Ingesting package located at aip-XX.zip
java.lang.NullPointerException: Cannot invoke "org.dspace.eperson.Group.getID()" because "groupChild" is null
        at org.dspace.eperson.GroupServiceImpl.addMember(GroupServiceImpl.java:151)
        at org.dspace.content.packager.RoleIngester.ingestDocument(RoleIngester.java:363)
        at org.dspace.content.packager.RoleIngester.ingest(RoleIngester.java:432)
        at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:319)
        at org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:248)
        at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1128)
        at org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1042)
        at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:447)
        at org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:250)
        at org.dspace.app.packager.Packager.ingest(Packager.java:537)
        at org.dspace.app.packager.Packager.main(Packager.java:408)
        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:569)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:283)
        at org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:134)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:99)


Eperson is a admin in Administrator Group

Some
What I can do?

Thanks

Job

DSpace Community

unread,
May 30, 2025, 10:45:01 AM5/30/25
to DSpace Community
Hi Job,

That error appears to be saying that the AIP (zip file) you are ingesting is referencing a Group that doesn't exist in your system.  So, DSpace looks to be trying to ingest that AIP and either it is referencing a Group that doesn't exist, or maybe it tried to create a Group and failed to do so.

I'd recommend looking for other *prior* errors in your log file.  Or, more closely analyze the AIP to see if the groups in the "DSPACE-ROLES" section look correct based on your system.

It could also be that you should be using the "restore/replace mode" (-r) instead of the "submission mode" (-s), as those modes have different behaviors: https://wiki.lyrasis.org/display/DSDOC8x/AIP+Backup+and+Restore#AIPBackupandRestore-Thedifferencebetween%22Submit%22and%22Restore/Replace%22modes

Tim
Reply all
Reply to author
Forward
0 new messages