I know that everybody is involved with dspace 7 now but I still have a 
problem with dspace 6.3 (ubuntu 20.04 LTS) and I ask for help.

I have a backup packager script that creates an AIP set of zip files and 
includes eperson information through the use of passwords=yes option.

Last days I couldn't use this option because it generates a null pointer 
exception:

zzzzzzz# ./dspace packager -d -a -t AIP -e [email protected] -i 123/0 -o 
passwords=true -u everything.zip

Disseminating DSpace SITE [ hdl=123/0 ] to everything.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 
com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:451)
        at 
org.dspace.content.packager.RoleDisseminator.writeEPerson(RoleDisseminator.java:503)
        at 
org.dspace.content.packager.RoleDisseminator.writeToStream(RoleDisseminator.java:242)
        ... 19 more

Trying to figure out what is happening here, I found 54 records with null 
eperson_id!  I also found two strange records in eperson table without 
eperson_id, with email like "newuserxxxxxxxx", where xxxxxxxxxx is sort of 
uuid, which is also in field uuid. Many fields are null and some are F, 
indicating a false situation.

I'll delete both records (caring with database integrity, of course) but 
what surprises me is to find these two incomplete records in the database.

My questions are: what could possibly have caused this? Could it be an 
incomplete new user registration? How could it be avoided? Is eperson_id 
not used anymore?

Thanks for any help.

Ricardo

-- 
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/a0adb0ec-adf4-4243-af88-de3c93a9369dn%40googlegroups.com.

Reply via email to