process creation without import from catalog crashes

Bug #951446 reported by Ralf Claussnitzer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UGH Metadata Library
New
Undecided
Unassigned

Bug Description

NullPointerException on manual (no OPAC catalog import) process creation:

1- new process
2- fill mandatory field
3- generate title
4- save --> crash (essential stack trace below)

+++

java.lang.NullPointerException
 at ugh.fileformats.mets.MetsMods.write(Unknown Source)
 at de.sub.goobi.beans.Prozess.writeMetadataFile(Prozess.java:784)
 at de.sub.goobi.forms.ProzesskopieForm.NeuenProzessAnlegen(ProzesskopieForm.java:663)
        ...

+++

Obviously UGH requires data in a field that is unused in manual process creation. However, the process gets created in the database _regardless_ of the exception shown. Process folders appear in the file system (possibly by called shell scripts) but no meta data XML files get created.

** As a workaround, just ignore the exception. Those missing meta data XML files get created on first editing anyway.

Tags: process
Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :

** Described workaround cannot be applied: The created process appears to be corrupted as all given meta data is lost. Just opening with the editor creates a useless meta data file.

Revision history for this message
Ralf Claussnitzer (ralf-claussnitzer-deactivatedaccount) wrote :

When using Community Edition UGH project, a different Exception occurs:

+++
java.io.IOException: Metadata file: /opt/goobi/home/work/procs/48416/meta.xml not found!
 at de.sub.goobi.beans.Prozess.readMetadataFile(Prozess.java:670)
 at de.sub.goobi.forms.ProzesskopieForm.NeuenProzessAnlegen(ProzesskopieForm.java:697)
+++

Apparently, the creation process doesn't crash but refuses to create a meta data file. Anyway, it looks like Goobi 1.7 uses a different version (Intranda).

This is obviously a UGH library problem.

no longer affects: goobi-production
no longer affects: goobi-production/1.7
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.