Finding Aid Generation failing due to lack of Institution Identifier at Top Level

57 views
Skip to first unread message

vicky.foulk...@googlemail.com

unread,
Sep 17, 2021, 4:24:26 AM9/17/21
to AtoM Users
Hi,
We're in the process of upgrading to version 2.6.1 of AtoM but have hit an issue with the PDF Finding Aid Generation.  It looks like the system requires that the Institution Identifier is populated at the top level record.  Is that correct?  This wasn't an issue in our current version of AtoM 2.4.0.  The log generated when this field is empty is given below.  I guess we just need to populate this field via the database (there are too many to by hand) and then ensure that this change reaches the EAD xml before generating again, right? Or is this a bug?
Thanks
Vicky

[info] [2021-09-16 15:41:14] Job 3521057 "arFindingAidJob": Job started.
[info] [2021-09-16 15:41:14] Job 3521057 "arFindingAidJob": Generating finding aid (tredegar-estate-records)...
[info] [2021-09-16 16:00:20] Job 3521057 "arFindingAidJob":
[info] [2021-09-16 16:00:20] Job 3521057 "arFindingAidJob": Running: java ${JAVA_FLAGS} -jar '/var/www/html/lib/task/pdf/saxon9he.jar' -s:'/tmp/php1BqJAE' -xsl:'/tmp/ATM5BEzcF' -o:'/tmp/php5X1850' 2>&1
[info] [2021-09-16 16:00:29] Job 3521057 "arFindingAidJob": Running: fop -r -q -fo '/tmp/php5X1850' -pdf '/var/www/html/downloads/tredegar-estate-records.pdf' 2>&1
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": Converting the EAD FO to PDF has failed.
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): [INFO] FOUserAgent - Rendered page #1.
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): [WARN] FOUserAgent - Property ID "d2e43" (found on "fo:block") previously used; ID values must be unique within a document! Any reference to it will be considered a reference to the first occurrence in the document. (See position 483:34)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): [ERROR] FOP - Exception <org.apache.fop.apps.FOPException: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker (list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker
(list-item)+ (See position 484:56)>org.apache.fop.apps.FOPException: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker (list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker
(list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.Main.startFOP(Main.java:186)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.Main.main(Main.java:217)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): Caused by: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker (list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): ... 3 more
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): Caused by: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker
(list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:173)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at com.sun.proxy.$Proxy4.missingChildElement(Unknown Source)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:588)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[info] [2021-09-16 16:00:31] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): ... 4 more
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP):
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): ---------
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP):
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker (list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:502)
[info] [2021-09-16 16:00:32] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.Main.startFOP(Main.java:186)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.Main.main(Main.java:217)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): Caused by: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker
(list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:173)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at com.sun.proxy.$Proxy4.missingChildElement(Unknown Source)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:588)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
[info] [2021-09-16 16:00:33] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[info] [2021-09-16 16:00:34] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): ... 4 more
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): ---------
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 484:56)
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.ValidationExceptionFactory.createException(ValidationExceptionFactory.java:38)
[info] [2021-09-16 16:00:35] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.EventExceptionManager.throwException(EventExceptionManager.java:58)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.events.DefaultEventBroadcaster$1.invoke(DefaultEventBroadcaster.java:173)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at com.sun.proxy.$Proxy4.missingChildElement(Unknown Source)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FONode.missingChildElementError(FONode.java:588)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.flow.ListBlock.endOfNode(ListBlock.java:105)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:190)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102)
[info] [2021-09-16 16:00:36] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
[info] [2021-09-16 16:00:37] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
[info] [2021-09-16 16:00:37] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
[info] [2021-09-16 16:00:37] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
[info] [2021-09-16 16:00:37] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[info] [2021-09-16 16:00:37] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[info] [2021-09-16 16:00:37] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[info] [2021-09-16 16:00:38] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[info] [2021-09-16 16:00:38] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[info] [2021-09-16 16:00:38] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[info] [2021-09-16 16:00:38] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
[info] [2021-09-16 16:00:38] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
[info] [2021-09-16 16:00:38] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
[info] [2021-09-16 16:00:39] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
[info] [2021-09-16 16:00:39] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.Main.startFOP(Main.java:186)
[info] [2021-09-16 16:00:39] Job 3521057 "arFindingAidJob": ERROR(FOP): at org.apache.fop.cli.Main.main(Main.java:217)
[info] [2021-09-16 16:00:39] Job 3521057 "arFindingAidJob": ERROR(FOP):
[info] [2021-09-16 16:00:39] Job 3521057 "arFindingAidJob": Job finished.  

Dan Gillean

unread,
Sep 17, 2021, 9:50:14 AM9/17/21
to ICA-AtoM Users
Hi Vicky, 

We did not intentionally make changes that would require an institution identifier to be added to top-level descriptions to be able to generate a finding aid. Consequently, if I am able to reproduce this, I would consider it a bug / regression. 

Do you know how this description was created (e.g. via the user interface, via EAD XML import, via CSV import, etc)? If it was created via import, have you tried to reproduce this on a description created via the user interface?

Anything else about the record causing this error I should know when trying to reproduce - e.g. does it have translations / was it created in a different culture than your default installation culture?

Anything I should know about your installation? For example:
  • Have you followed the recommended installation instructions? If you've made changes, what changes have you made?
  • Was this upgrade a brand new installation (where you followed the upgrade instructions to migrate your data), or have you tried upgrading in place?
I will see if I can recreate what you describe, but any further information you can provide that might help me reproduce the correct conditions will be helpful. Thanks! 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/eac13068-b23c-4c4a-b12e-c5d367fe3e3bn%40googlegroups.com.

vicky.foulk...@googlemail.com

unread,
Sep 17, 2021, 4:21:52 PM9/17/21
to AtoM Users
Apologies Dan for not updating the thread sooner. Our Developer (Dan) here in NLW worked out that it was because I'd commented out the Publication Status within the xslt at the request of the Archivists. It appears that if this isn't there and none of the other ead:odd elements are populated then this results in an empty fo:list-block which appears to break the PDF generation.  So we have two options, either we revert to displaying the Publication Status within the Finding Aid or we populate the empty Institution Identifiers at the top level.  Currently looking into updating blank Institution Identifiers via the database, where I'm assuming that we'll need to re-cache those descriptions before then generating the PDF Finding Aid.
Thanks,
Vicky

Dan Gillean

unread,
Sep 20, 2021, 9:45:05 AM9/20/21
to ICA-AtoM Users
Hi Vicky, 

Ah, I see - thank you for clarifying what was happening, as I was struggling to reproduce the issue. 

In any case, I can see why you might not want to include publication status in public-facing finding aids - particularly if you are already using the "Generate finding aid as public user" setting, which by default excludes Draft descriptions from finding aid generation. 

I have filed the following issue ticket so we can potentially investigate this in the future: 
I suspect that unless sponsored, this ticket may be a low priority compared to other bug fixes and performance enhancements, so I can't guarantee when or if it might be included in a public release, but now we have a way of tracking similar issues and requests, and pointing our community to a proposed change that would address this. 

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him

vicky.foulk...@googlemail.com

unread,
Sep 21, 2021, 10:33:39 AM9/21/21
to AtoM Users
That's great. Thanks Dan.
Reply all
Reply to author
Forward
0 new messages