Bug #13522

Finding aid generation fails in Ubuntu 20.04 (FOP 2.4)

Added by José Raddaoui Marín about 1 month ago. Updated about 1 month ago.

Status:NewStart date:06/09/2021
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:Finding aids
Target version:Release 2.7.0
Google Code Legacy ID: Tested version:2.7
Sponsored:No Requires documentation:

Description

In Ubuntu 20.04, the fop version installed by default is 2.4 (instead of 2.1, the one we have been working with in Ubuntu 18.04). Generating a Finding aid reveals the following error in the job log:

2021-06-09 07:31:12 Converting the EAD FO to PDF has failed.
2021-06-09 07:31:12 ERROR(FOP): [warning] /usr/bin/fop: JVM flavor 'sun' not understood
2021-06-09 07:31:12 ERROR(FOP): [warning] /usr/bin/fop: Unable to locate avalon-framework in /usr/share/java
2021-06-09 07:31:12 ERROR(FOP): Exception in thread "main" java.lang.NoSuchMethodError: java.nio.CharBuffer.limit(I)Ljava/nio/CharBuffer;
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.fo.FOText.characters(FOText.java:143)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.fo.FObjMixed.characters(FObjMixed.java:74)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.characters(FOTreeBuilder.java:390)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.fo.FOTreeBuilder.characters(FOTreeBuilder.java:136)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xalan.transformer.TransformerIdentityImpl.characters(TransformerIdentityImpl.java:1126)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.parsers.AbstractSAXParser.characters(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.xinclude.XIncludeHandler.characters(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.cli.Main.startFOP(Main.java:183)
2021-06-09 07:31:12 ERROR(FOP):     at org.apache.fop.cli.Main.main(Main.java:214)

This may be caused by the Java version we currently install for Elasticsearch 5.x (which only supports Java 8), and there is a chance it may get fixed upgrading to Elasticsearch 7.x (which supports Java 8 and 11) and using Java 11:

https://www.elastic.co/support/matrix#matrix_jvm

History

#1 Updated by José Raddaoui Marín about 1 month ago

  • Subject changed from Finding aid generation fails in Ubuntu 20.04 to Finding aid generation fails in Ubuntu 20.04 (FOP 2.4)

Also available in: Atom PDF