FS#73787 - [bibletime] FTBFS java.lang.NoSuchFieldError: RAW_PDF

Attached to Project: Community Packages
Opened by Jeffrey Pan (XieJiSS) - Monday, 14 February 2022, 17:34 GMT
Last edited by Caleb Maclennan (alerque) - Monday, 02 May 2022, 08:54 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Caleb Maclennan (alerque)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Seems like some jar files need to be rebuild? I've tried rebuilding fop manually and provide it to bibletime, but that didn't help.

Additional info:
* package version(s)
pkgver=3.0.2
pkgrel=1

* config and/or log files etc.
(similar logs trimmed)
[97/314] Generating /build/bibletime/src/build/docs/howto/pdf/hu/howto.pdf
FAILED: docs/howto/pdf/hu/howto.pdf /build/bibletime/src/build/docs/howto/pdf/hu/howto.pdf
cd /build/bibletime/src/build && /usr/bin/fop -pdf /build/bibletime/src/build/docs/howto/pdf/hu/howto.pdf -fo /build/bibletime/src/build/docs/howto/xslfo/hu/howto.fo
Exception in thread "main" java.lang.NoSuchFieldError: RAW_PDF
at org.apache.fop.render.afp.AFPImageHandlerRawStream.<clinit>(AFPImageHandlerRawStream.java:43)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.apache.xmlgraphics.util.Service.providers(Service.java:85)
at org.apache.fop.render.ImageHandlerRegistry.discoverHandlers(ImageHandlerRegistry.java:163)
at org.apache.fop.render.ImageHandlerRegistry.<init>(ImageHandlerRegistry.java:68)
at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:104)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:124)
at org.apache.fop.apps.FopFactoryBuilder.build(FopFactoryBuilder.java:124)
at org.apache.fop.cli.CommandLineOptions.setUserConfig(CommandLineOptions.java:1040)
at org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:173)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:214)

* link to upstream bug report, if any

Steps to reproduce:

1. asp checkout
2. extra-x86_64-build
This task depends upon

Closed by  Caleb Maclennan (alerque)
Monday, 02 May 2022, 08:54 GMT
Reason for closing:  Works for me
Additional comments about closing:  Seems to have been resolved by java-xmlgraphics-commons package bump/rebuild, no action necessary on this package.
Comment by Jeffrey Pan (XieJiSS) - Monday, 14 February 2022, 17:42 GMT
IMO maybe we need to rebuild java-xmlgraphics-commons then fop?

However we can't rebuild java-xmlgraphics-commons now, because:

```
==> Retrieving sources...
-> Downloading xmlgraphics-commons-2.6-bin.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 276 100 276 0 0 5526 0 --:--:-- --:--:-- --:--:-- 5632
0 196 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
```
Comment by Jeffrey Pan (XieJiSS) - Monday, 14 February 2022, 17:44 GMT
I've flagged java-xmlgraphics-commons as out-of-date.
Comment by Caleb Maclennan (alerque) - Monday, 02 May 2022, 08:53 GMT
The java-xmlgraphics-commons package seems to have gotten updated the day after the previous comment here. In my testing of Bibletime everything seems to work now so I think this has been resolved.

Loading...