apache / camel-quarkus

Apache Camel Quarkus
https://camel.apache.org
Apache License 2.0
257 stars 191 forks source link

Fop native failures due to pdfbox 3 upgrade #5244

Open JiriOndrusek opened 1 year ago

JiriOndrusek commented 1 year ago

Bug description

Since pdfbox was upgraded from 2.x to 3.x in camel (https://issues.apache.org/jira/browse/CAMEL-19796), some native failures happen. The native profile is disabled until the issue is fixed.

I encountered following error:

2023-08-31T11:20:48.9327060Z Caused by: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: org.apache.fontbox.cff.CFFParser.parse(byte[]). This error is reported at image build time because class org.apache.fop.fonts.truetype.OTFFile is registered for linking at image build time by command line

and (if above one is fixed)

Error: Classes that should be initialized at run time got initialized during image building:
 java.awt.Toolkit the class was requested to be initialized at run time (from feature io.quarkus.runner.Feature.beforeAnalysis with 'java.awt'). To see why java.awt.Toolkit got initialized use --trace-class-initialization=java.awt.Toolkit
java.awt.Rectangle the class was requested to be initialized at run time (from feature io.quarkus.runner.Feature.beforeAnalysis with 'java.awt'). To see why java.awt.Rectangle got initialized use --trace-class-initialization=java.awt.Rectangle

Once issues are fixed, native profile should be restored,

fugerit79 commented 1 week ago

Good morning.

Any news on this issue? @JiriOndrusek @aldettinger @ppalaga? (Sorry for desturbing, I mentioned the issue assignee and the latest committers : https://quarkus.io/extensions/org.apache.camel.quarkus/camel-quarkus-fop/?tab=community)

Would be nice to have it working again.

Thanks in advance.