Fop fonts issue in a freshly updated Fedora 28+

Hello All!

Just got a strange issue while generating doc-files from sources with fop:

<a href="" title=""></a>

Exception in thread "main" java.lang.NoSuchMethodError:
at org.apache.fop.fonts.truetype.OTFFile.readName(
at org.apache.fop.fonts.truetype.OpenFont.readFont(
at org.apache.fop.fonts.FontLoader.getFont(
at org.apache.fop.fonts.FontLoader.loadFont(
at org.apache.fop.fonts.autodetect.FontInfoFinder.find(
at org.apache.fop.fonts.FontAdder.add(
at org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(
at org.apache.fop.fonts.FontManager.autoDetectFonts(
at org.apache.fop.fonts.DefaultFontConfigurator.configure(
at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(
at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(
at org.apache.fop.render.intermediate.IFUtil.setupFonts(
at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(
at org.apache.fop.area.RenderPagesModel.<init>(
at org.apache.fop.area.AreaTreeHandler.setupModel(
at org.apache.fop.area.AreaTreeHandler.<init>(
at org.apache.fop.render.RendererFactory.createFOEventHandler(
at org.apache.fop.apps.Fop.createDefaultHandler(
at org.apache.fop.apps.Fop.<init>(
at org.apache.fop.apps.FOUserAgent.newFop(
at org.apache.fop.cli.InputHandler.renderTo(
at org.apache.fop.cli.Main.startFOP(
at org.apache.fop.cli.Main.main(
make[3]: Leaving directory
make[3]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/x86_64-redhat-linux-gnu/
../pdf/stdlib-3.4.5.pdf] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/otp-OTP-20.3.6/lib/stdlib'
make[2]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/
docs] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/otp-OTP-20.3.6/lib'
make[1]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/
docs] Error 2
make: *** [Makefile:416: docs] Error 2

For me it looks very much the same as the issue described here -
<a href="" title=""></a>

However I'm not sure how to fix it?

From looking at the RPM versions (comparing last successful buildroot
and this one) I found nothing really suspicious. Maybe Apache Fop
needs rebuild?


Re: Fop fonts issue in a freshly updated Fedora 28+

By Michele Baldessari at 05/16/2018 - 16:20

Hi Peter,

On Tue, May 15, 2018 at 07:05:07PM +0200, Peter Lemenkov wrote:
Eck and I spent some time looking at this.
So the issue is actually this one here:
-fontbox.noarch 1.8.13-4.fc28
+fontbox.noarch 2.0.9-2.fc28

The problem is that fontbox has been upgraded to 2.0.x but support for
2.0.x has landed only in FOP 2.2:
From <a href="" title=""></a>
FOP-2562: Update to PDFBox 2

So via BZ <a href="" title=""></a> we should
push for an update of fop to 2.2 since pdfbox is already out and