-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not initialize class org.apache.pdfbox.pdmodel.PDDocument in quarkus-quickstart/tika-quickstart #198
Comments
Weird our Integration Test does the same thing as the QuickStart and it works: https://github.com/quarkiverse/quarkus-tika/blob/main/integration-tests/src/main/java/io/quarkus/it/tika/TikaPdfInvoiceResource.java you can see our Native build passing here: https://github.com/quarkiverse/quarkus-tika/actions/runs/10371641827/job/28712415734 |
Although ours is still running Quarkus 3.8 LTS not 3.13.2 so i wonder if that is the issue. Let me try it . |
I put up a Draft PR to watch the Native build run: https://github.com/quarkiverse/quarkus-tika/actions/runs/10403201862 |
Looks like it passed @leonas5555 ? |
yeah , I see , and I didn't find yet any reasons why my workflow :
produced the error. I keep investigating. Thank you for your effort! |
only diff I see that native app for integrations tests is running directly on builder image instead eg. registry.access.redhat.com/ubi8/ubi-minimal:8.9 (that is Dockerfile.native in main/docker)
|
there is one more error in stack |
ahhh yeah your image must not be able to load AWT and the ubi-minimal can. See: https://github.com/quarkiverse/quarkus-tika/pull/15/files I believe AWT is required for this to work. |
yeah, it is in
|
yes but i think the actual OS needs something to allow AWT to work not just the AWT library installed. The error is basically that |
you can read all about it here: quarkusio/quarkus#35256 |
also see this note for POI: https://github.com/quarkiverse/quarkus-poi?tab=readme-ov-file#docker Typically |
@leonas5555 is this safe to close did you get it resolved? |
@melloware I will take a look during this week and report back here, and thank you! |
I confirmed that tika-quickstart project works well with applied settings from awt-graphics-rest-quickstart. the issue can be closed. thank you ! dockerfile.native
Dockerignore file:
|
Awesome! |
this error exists in the current quarkus-quickstart/tika-quickstart (tested in local Dockerfile.native container run) with included
RUN microdnf update && microdnf install freetype fontconfig && microdnf clean all
compiled with
./mvnw package -Dnative -Dquarkus.native.container-build=true
quarkus 3.13.2
tika extension 2.0.3
The text was updated successfully, but these errors were encountered: