Error generating/finding AIds

112 views
Skip to first unread message

Marco Afonso

unread,
Nov 18, 2020, 5:02:24 AM11/18/20
to AtoM Users
Good morning,

We recently have upgraded our server and AtoM version and there is an error when the user clicks to generate/finding Aids.

This is the error message:

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

It looks like there is an error with the fop library.

Here are our software versions:
OS: Ubuntu 20.04.1 LTS
AtoM: 2.6
PHP: 7.4
Java: openjdk version "1.8.0_275"
Elastic Search: 5.6.16
FOP: 2.4

We have followed thoughly the AtoM 2.6 install documentation.
I can see that AtoM 2.6 requires FOP 2.1

Do we have to downgrade FOP to 2.1? What can we do to fix this error?

Thank you! :)
Marco

Dan Gillean

unread,
Nov 18, 2020, 1:52:02 PM11/18/20
to ICA-AtoM Users
Hi Marco, 

I will ask our developers to take a look at this, but this could be part of the issue. You don't necessarily need to downgrade just yet, but please note that we have not yet tested AtoM 2.6 with: 
  • Ubuntu 20.04 (we recommend 18.04)
  • PHP 74 (we recommend 7.2)
  • FOP 2.4 (as you noted, we recommend 2.1)
So, there may be incompatibilities throughout that are impacting this. We are targeting Ubuntu 20.04 and PHP 7.4 for the next major release (AtoM 2.7), but this will not be released until 2021. 

I've not seen this particular error before (JVM flavor 'sun' not understood), and could only find one general online thread about it, that may be helpful when managing multiple versions of Java: 
It may help us to know what version of Java you have installed. 

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/ed66c6b2-0375-4047-b41d-7a1643578bb4n%40googlegroups.com.

Marco Afonso

unread,
Nov 23, 2020, 6:32:44 AM11/23/20
to AtoM Users
Hi Dan,

Thank you for your reply.

These are the outputs for the suggested commands in the Ubuntu thread:

  # . /usr/lib/java-wrappers/java-wrappers.sh
  # find_java_runtime openjdk sun
  [warning] bash: JVM flavor 'sun' not understood
  # echo $JAVA_HOME
  /usr/lib/jvm/java-8-openjdk-amd64
  # echo $JAVA_CMD
  /usr/lib/jvm/java-8-openjdk-amd64/bin/java

I hope it can help a little.

Roberto

unread,
Dec 30, 2020, 9:18:28 AM12/30/20
to AtoM Users
Hi all,
The reason is that  the limit method has been added in JDK 9

https://gandrille.github.io/linux-notes/Command_line/fop.html

Regards
Roberto

Dan Gillean

unread,
Jan 4, 2021, 10:18:52 AM1/4/21
to ICA-AtoM Users
Hi Roberto, 

Interesting, thank you for this update. I will pass this on to our team, so as we upgrade our supported version of FOP, we can consider how best to proceed. Were you able to downgrade and get finding aid generation to work?

Cheers, 

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

Roberto Fioravanti

unread,
Jan 4, 2021, 10:34:26 AM1/4/21
to ica-ato...@googlegroups.com
Thank you for apreciating my contribution.
I've not tried yet.

Cheers


You received this message because you are subscribed to a topic in the Google Groups "AtoM Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ica-atom-users/r94LigFUdTg/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAC1FhZLUpgFRa_SosSSy1amSiEuODjwxfEV7TpGQ_HfTfmkCaQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages