Problem Disseminating DSpace SITE

89 views
Skip to first unread message

Saad Itani

unread,
Jan 25, 2023, 9:14:12 AM1/25/23
to DSpace Technical Support
Dears we recently updated DSPACE from 5.x to 6.4 and the site is up and running smoothly, however I am stuck in a problem regarding export of AIP.

Info:
DSpace version:  6.4

If I run this command, I get the following error:

/data/bin/dspace packager -d -a -t AIP -e dsp...@xx.com -i 10938/0 dspace-aip.zip

Warning at xsl:stylesheet on line 14 column 35
  Unrecognized version 1.1: treated as 1.0

Disseminating DSpace SITE [ hdl=10938/0 ] to dspace-aip.zip

Also disseminating all child objects (recursive mode)..
This may take a while, please check your logs for ongoing status while we process each package.
Exception: Failed to export Roles via packager (see wrapped error message for more details)
org.dspace.content.crosswalk.CrosswalkInternalException: Failed to export Roles via packager (see wrapped error message for more details)
        at org.dspace.content.crosswalk.RoleCrosswalk.disseminateElement(RoleCrosswalk.java:236)
        at org.dspace.content.packager.AbstractMETSDisseminator.crosswalkToMetsElement(AbstractMETSDisseminator.java:1356)
        at org.dspace.content.packager.AbstractMETSDisseminator.makeMdSec(AbstractMETSDisseminator.java:626)
        at org.dspace.content.packager.AbstractMETSDisseminator.addToAmdSec(AbstractMETSDisseminator.java:739)
        at org.dspace.content.packager.AbstractMETSDisseminator.addAmdSec(AbstractMETSDisseminator.java:765)
        at org.dspace.content.packager.AbstractMETSDisseminator.makeManifest(AbstractMETSDisseminator.java:862)
        at org.dspace.content.packager.AbstractMETSDisseminator.writeZipPackage(AbstractMETSDisseminator.java:334)
        at org.dspace.content.packager.AbstractMETSDisseminator.disseminate(AbstractMETSDisseminator.java:271)
        at org.dspace.content.packager.DSpaceAIPDisseminator.disseminate(DSpaceAIPDisseminator.java:165)
        at org.dspace.content.packager.AbstractPackageDisseminator.disseminateAll(AbstractPackageDisseminator.java:102)
        at org.dspace.app.packager.Packager.disseminate(Packager.java:642)
        at org.dspace.app.packager.Packager.main(Packager.java:461)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
        at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
Caused by: org.dspace.content.packager.PackageException: java.lang.NullPointerException, Reason: java.lang.NullPointerException
        at org.dspace.content.packager.RoleDisseminator.writeToStream(RoleDisseminator.java:255)
        at org.dspace.content.packager.RoleDisseminator.disseminate(RoleDisseminator.java:106)
        at org.dspace.content.crosswalk.RoleCrosswalk.disseminateElement(RoleCrosswalk.java:205)
        ... 17 more
Caused by: java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
        at java.util.regex.Matcher.reset(Matcher.java:309)
        at java.util.regex.Matcher.<init>(Matcher.java:229)
        at java.util.regex.Pattern.matcher(Pattern.java:1093)
        at org.dspace.content.packager.PackageUtils.translateGroupNameForExport(PackageUtils.java:822)
        at org.dspace.content.packager.RoleDisseminator.writeGroup(RoleDisseminator.java:307)
        at org.dspace.content.packager.RoleDisseminator.writeToStream(RoleDisseminator.java:229)
        ... 19 more

[DSPACE LOG SHOW]
2023-01-25 15:36:53,696 WARN  net.sf.ehcache.CacheManager @ Creating a new instance of CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager.
The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$URLConfigurationSource@3794ff96.
The diskStore path for this CacheManager will be set to /tmp/ehcache_auto_created_1674653813695.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2023-01-25 15:36:55,808 WARN  org.dspace.content.packager.PackageUtils @ DSpace Object (ID='128', type ='3') no longer exists -- translating COLLECTION_128_DEFAULT_READ to ORPHANED_3_GROUP_128_DEFAULT_READ.
2023-01-25 15:36:55,809 WARN  org.dspace.content.packager.PackageUtils @ DSpace Object (ID='12', type ='3') no longer exists -- translating COLLECTION_12_DEFAULT_READ to ORPHANED_3_GROUP_12_DEFAULT_READ.
2023-01-25 15:36:55,870 WARN  org.dspace.content.packager.PackageUtils @ DSpace Object (ID='14', type ='3') no longer exists -- translating COLLECTION_14_DEFAULT_READ to ORPHANED_3_GROUP_14_DEFAULT_READ.
==============================
however If i add any index number example:
/data/bin/dspace packager -d -a -t AIP -e dsp...@xx.com -i 10938/10938 dspace-aip.zip

Warning at xsl:stylesheet on line 14 column 35
  Unrecognized version 1.1: treated as 1.0

Disseminating DSpace ITEM [ hdl=10938/21000 ] to dspace-aip.zip

Also disseminating all child objects (recursive mode)..
This may take a while, please check your logs for ongoing status while we process each package.

CREATED a total of 1 dissemination package files.

Would you like to view a list of all files that were created? [y/n]: y

CREATED package file: /tmp/TEST/dspace-aip.zip

[Dspace log file]
2023-01-25 15:44:36,439 WARN  net.sf.ehcache.CacheManager @ Creating a new instance of CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager.
The source of the configuration was net.sf.ehcache.config.generator.ConfigurationSource$URLConfigurationSource@7ff832ee.
The diskStore path for this CacheManager will be set to /tmp/ehcache_auto_created_1674654276439.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2023-01-25 15:44:38,047 WARN  org.dspace.content.crosswalk.MODSDisseminationCrosswalk @ WARNING: MODS: No MODS mapping for "dc.description.provenance"
2023-01-25 15:44:38,048 WARN  org.dspace.content.crosswalk.MODSDisseminationCrosswalk @ WARNING: MODS: No MODS mapping for "dc.contributor.department"
2023-01-25 15:44:38,048 WARN  org.dspace.content.crosswalk.MODSDisseminationCrosswalk @ WARNING: MODS: No MODS mapping for "dc.contributor.department"
2023-01-25 15:44:38,048 WARN  org.dspace.content.crosswalk.MODSDisseminationCrosswalk @ WARNING: MODS: No MODS mapping for "dc.subject.classificationsource"
2023-01-25 15:44:38,048 WARN  org.dspace.content.crosswalk.MODSDisseminationCrosswalk @ WARNING: MODS: No MODS mapping for "dc.contributor.institution"
===========================================

any idea whats happening and why i am not able to export the whole site?

thank you!

Saad Itani

unread,
Jan 26, 2023, 8:49:11 AM1/26/23
to DSpace Technical Support
[UPDATE]
Changing the type to METS example /data/bin/dspace packager -d -a -t METS -e dspace@xx   -i 10938/0 /data/BACKUP/aip-backup/dspace-aip.zip

worked!

any idea why AIP is not working?

Tim Donohue

unread,
Jan 26, 2023, 11:11:07 AM1/26/23
to DSpace Technical Support
Hi,

Based on the initial error "stacktrace" it looks like the error begins here:
https://github.com/DSpace/DSpace/blob/dspace-6.4/dspace-api/src/main/java/org/dspace/content/packager/PackageUtils.java#L822

The error results in a NullPointerException which seems to imply that the "groupName" it encounters is either empty string or null (missing).  

Maybe somehow your database has a Group that has *no name*?  That shouldn't be possible in DSpace, but it almost sounds like what has occurred here.

To see if you have a nameless Group, you'd want to look in your "epersongroup" database table to see if there's an entry in there with a null or empty "name" column.  If you find one, you can give it a name (even just call it "unnamed" or something) and try the export again.

If you have other questions, let us know on this list.

Tim

Saad Itani

unread,
Jan 26, 2023, 11:39:11 AM1/26/23
to Tim Donohue, DSpace Technical Support, Maher Kassab
Dear Tim,

Thank you for reaching me in the support of the problem, will check and report back if we have a Null eperson group table.

Regards,
Saad

Sent from my iPhone

On 26 Jan 2023, at 6:11 PM, 'Tim Donohue' via DSpace Technical Support <dspac...@googlegroups.com> wrote:

Hi,
--
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 a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/0hMtWGnA1Ag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/f4ea0df4-50a0-489c-b5c0-345dc4e37b40n%40googlegroups.com.

Claudia Jürgen

unread,
Jan 26, 2023, 3:22:53 PM1/26/23
to dspac...@googlegroups.com
Hi Saad,

maybe you got unfinished registrations. We did run into a similar
problem when we tried a complete AIP type AIP In/Export (in 5.x) just
fort testing it.

You can check this with a database query:
select * from eperson where password is null;

You can choose not to export passwords with the option -o passwords=false

Hope this helps

Claudia
> --
> All messages to this mailing list should adhere to the Code of Conduct:
> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
> <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
> <mailto:dspace-tech...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dspace-tech/0eaec20e-cc2f-4784-abd7-1ef3e82f6b08n%40googlegroups.com <https://groups.google.com/d/msgid/dspace-tech/0eaec20e-cc2f-4784-abd7-1ef3e82f6b08n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Claudia Juergen

Technische Universität Dortmund
Universitätsbibliothek
Bibliotheks-IT
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax.

Saad Itani

unread,
Jan 26, 2023, 4:13:30 PM1/26/23
to Tim Donohue, DSpace Technical Support, Maher Kassab
Hello Tim,

I would like to thank you for your support as it worked after I added a value into a Null field under the epersongroup name table.

Thank you so much, Problem solved!


Regards,
Saad

Sent from my iPhone

On 26 Jan 2023, at 6:39 PM, Saad Itani <itani...@gmail.com> wrote:

Dear Tim,
Reply all
Reply to author
Forward
0 new messages