Hi Peter, On Tue, May 15, 2018 at 07:05:07PM +0200, Peter Lemenkov wrote: > Hello All! > > Just got a strange issue while generating doc-files from sources with fop: > > https://kojipkgs.fedoraproject.org//work/tasks/763/26980763/build.log > > Exception in thread "main" java.lang.NoSuchMethodError: > org.apache.fontbox.cff.CFFFont.getProperty(Ljava/lang/String;)Ljava/lang/Object; > at org.apache.fop.fonts.truetype.OTFFile.readName(OTFFile.java:134) > at org.apache.fop.fonts.truetype.OpenFont.readFont(OpenFont.java:740) > at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:109) > at org.apache.fop.fonts.truetype.OFFontLoader.read(OFFontLoader.java:93) > at org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:124) > at org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:108) > at org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:254) > at org.apache.fop.fonts.FontAdder.add(FontAdder.java:63) > at org.apache.fop.fonts.FontDetectorFactory$DefaultFontDetector.detect(FontDetectorFactory.java:105) > at org.apache.fop.fonts.FontManager.autoDetectFonts(FontManager.java:229) > at org.apache.fop.fonts.DefaultFontConfigurator.configure(DefaultFontConfigurator.java:82) > at org.apache.fop.render.PrintRendererConfigurator.getCustomFontCollection(PrintRendererConfigurator.java:147) > at org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:127) > at org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:170) > at org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:187) > at org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:75) > at org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:135) > at org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:105) > at org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:350) > at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:107) > at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:104) > at org.apache.fop.apps.Fop.<init>(Fop.java:78) > at org.apache.fop.apps.FOUserAgent.newFop(FOUserAgent.java:179) > at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:107) > at org.apache.fop.cli.Main.startFOP(Main.java:186) > at org.apache.fop.cli.Main.main(Main.java:216) > make[3]: Leaving directory > '/builddir/build/BUILD/otp-OTP-20.3.6/lib/stdlib/doc/src' > make[3]: *** [/builddir/build/BUILD/otp-OTP-20.3.6/make/x86_64-redhat-linux-gnu/otp.mk:329: > ../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/otp_subdir.mk:29: > 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/otp_subdir.mk:29: > docs] Error 2 > make: *** [Makefile:416: docs] Error 2 > > For me it looks very much the same as the issue described here - > https://stackoverflow.com/questions/41501641/fop-giving-nosuchmethoderror-when-font-auto-detect-enable > > However I'm not sure how to fix it? 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 https://xmlgraphics.apache.org/fop/2.2/changes_2.2.html: FOP-2562: Update to PDFBox 2 So via BZ https://bugzilla.redhat.com/show_bug.cgi?id=1298915 we should push for an update of fop to 2.2 since pdfbox is already out and released. cheers, Michele -- Michele Baldessari <michele@xxxxxxxxxx> C2A5 9DA3 9961 4FFB E01B D0BC DDD4 DCCB 7515 5C6D _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx