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 <dspace-tech@googlegroups.com> wrote:

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

On Thursday, January 26, 2023 at 7:49:11 AM UTC-6 itani...@gmail.com wrote:
[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?

On Wednesday, January 25, 2023 at 4:14:12 PM UTC+2 Saad Itani wrote:
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!

--
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+unsubscr...@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.

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/A037A5D9-0B69-4171-8D73-752DDFD38A0A%40gmail.com.

Reply via email to