I ran into this problem in a different context, and the cause turned out to
be that the 'JAVA_HOME' environment variable was not set how I expected,
causing 'fop' to use the wrong JRE.

--
August Schwerdfeger
aug...@schwerdfeger.name

On Sat, Aug 29, 2020, 04:32 Peter Harde <peter.harde.pri...@gmail.com>
wrote:

> Dear developers,
>
> after upgrading Ubuntu 18.04 to 20.04 it is no longer possible to build
> the manual. Using the command "make darktable-usermanual" I get this
> messages :
>
> ... [100%] Building usermanual
> Making portrait pages on A4 paper (210mmx297mm)
> [warning] /usr/bin/fop: Unable to locate avalon-framework in
> /usr/share/java
> Exception in thread "main" java.lang.NoSuchMethodError:
> java.nio.CharBuffer.limit(I)Ljava/nio/CharBuffer;
>          at org.apache.fop.fo.FOText.characters(FOText.java:143)
>          at org.apache.fop.fo.FObjMixed.characters(FObjMixed.java:74)
>          at
> org.apache.fop.fo
> .FOTreeBuilder$MainFOHandler.characters(FOTreeBuilder.java:390)
>          at
> org.apache.fop.fo.FOTreeBuilder.characters(FOTreeBuilder.java:136)
>          at
>
> org.apache.xalan.transformer.TransformerIdentityImpl.characters(TransformerIdentityImpl.java:1126)
>          at
> org.apache.xerces.parsers.AbstractSAXParser.characters(Unknown Source)
>          at
> org.apache.xerces.xinclude.XIncludeHandler.characters(Unknown Source)
>          at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
> Source)
>          at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>
> Source)
>          at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>          at
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>          at
>
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485)
>          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:183)
>          at org.apache.fop.cli.Main.main(Main.java:214)
> make[3]: ***
> [doc/usermanual/CMakeFiles/darktable-usermanual.dir/build.make:62:
> doc/usermanual/darktable-usermanual.pdf] Fehler 1 ...
>
> I tried with Java-11 (openjdk 11.0.8+10-0ubuntu1~20.04) but that makes
> no difference. Is someone able to help ? The build of dt is running
> without any problem.
>
> Best regards
>
> Peter Harde
> ___________________________________________________________________________
> darktable developer mailing list
> to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
>
>

___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to