Apache fop raises exception NoSuchMethodError: java.nio.CharBuffer.limit(I)Ljava/nio/CharBuffer on Ubuntu 19.04

Bug #1823453 reported by Bernd Schlapsi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
fop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On Ubuntu 19.04 (Beta) with the latest updates I get an error when running fop

I tested it with the Hello World xml/xsl from the Apache Fop quickstart guide
https://xmlgraphics.apache.org/fop/quickstartguide.html

$ fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.CharBuffer.limit(I)Ljava/nio/CharBuffer;
 at org.apache.fop.fo.FOText.characters(FOText.java:137)
 at org.apache.fop.fo.FObjMixed.characters(FObjMixed.java:74)
 at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.characters(FOTreeBuilder.java:388)
 at org.apache.fop.fo.FOTreeBuilder.characters(FOTreeBuilder.java:136)
 at org.apache.xml.serializer.ToXMLSAXHandler.characters(ToXMLSAXHandler.java:542)
 at org.apache.xalan.templates.ElemTextLiteral.execute(ElemTextLiteral.java:218)
 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
 at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
 at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
 at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
 at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
 at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2402)
 at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2272)
 at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1358)
 at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:711)
 at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1275)
 at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1253)
 at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:293)
 at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:116)
 at org.apache.fop.cli.Main.startFOP(Main.java:186)
 at org.apache.fop.cli.Main.main(Main.java:217)

$ fop -version
FOP Version 2.3

Under the hood Apache fop uses java-8-openjdk, because I tried to remove all java versions and fop prints this error, when java-8-openjdk is not available

$ /usr/bin/fop
/usr/bin/fop: 304: exec: /usr/lib/jvm/java-8-openjdk-amd64/bin/java: not found

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Disco Dingo (development branch)
Release: 19.04
Codename: disco

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fop (Ubuntu):
status: New → Confirmed
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.