UNC-Libraries/Carolina-Digital-Repository — Issue #57: Unhandled NPE during METS file validation
Author: gregjan
Created: 2012-02-17 18:49:36+00:00
State: open

This is likely caused by a missing File locator and should be reported as such through an IngestException.

2012-02-17 13:40:31,967 ERROR [ajp-bio-8009-exec-39] edu.unc.lib.dl.service.impl.SubmitServiceImpl - unexpected exception
java.lang.NullPointerException
at edu.unc.lib.dl.ingest.sip.METSPackageFileValidator.validateFiles(METSPackageFileValidator.java:89)
at edu.unc.lib.dl.ingest.sip.METSPackageSIPProcessor.createAIP(METSPackageSIPProcessor.java:145)
at edu.unc.lib.dl.services.DigitalObjectManagerImpl.addToIngestQueue(DigitalObjectManagerImpl.java:139)
at edu.unc.lib.dl.service.impl.SubmitServiceImpl.metsSubmit(SubmitServiceImpl.java:90)
at edu.unc.lib.dl.ws.MetsSubmitEndpoint.metsSubmit(MetsSubmitEndpoint.java:40)

The UI does not report this error and in fact will report success. This is probably b/c a runtime exception is not caught.