Open dilipdhankecha2530 opened 2 years ago
I believe this is a Quarkus issue. Could you take a look at this please, @zakkak?
@galderz can you please have a look as both me and karm are on vacation the coming week(s)? Thanks
@galderz Can you please help me to out?
@dilipdhankecha2530 I'd suggest opening an issue in quarkusio/quarkus and adding a reproducer. It would also help to understand if this new code, or there has a particular change/upgrade that has caused this issue.
It was debated over there: https://github.com/quarkusio/quarkus/issues/26682
I will take a look at what exactly it does. Quarkus AWT Extension enables a specific set of features related to image formats, Java2D image generation and fonts (rendering, manipulation). Only features covered in the test suite are expected to work: https://github.com/quarkusio/quarkus/tree/main/integration-tests/awt/src
If PDFBOX does something beyond that, it might need its own extension.
@Karm Basically, we are converting PDF to Image with pdfbox library and according to me i don't need Quarkus AWT dependency. And we are build a native image and upload it on the aws lambda at that time it will come up with error of Quarkus AWT. so basically could you help me to out from here.
@dilipdhankecha2530 O.K., I have a such app too now. I'll take a look at java.awt.image.DirectColorModel and see now.
@dilipdhankecha2530 The good news is that I made PDFBox to work with Quarkus in Native. The bad news is that there is a lot of delayed runtime init etc. No substitutions necessary though, so I will turn it into a Quick start style of an example and you can use it.
Hello @dilipdhankecha2530 , @galderz This quickstart demonstrates a basic usage of Apache PDFBox with Quarkus native.
https://github.com/quarkusio/quarkus-quickstarts/pull/1154
I think this issue can be closed.
@Karm in https://github.com/quarkusio/quarkus-quickstarts/pull/1154/files#diff-be7a5914fc45d58d8c9a03bdfbd58bc4de47bf332b55270db7408340dfba17afR4-R18 I see that you are marking a number of classes to be initialized at runtime. Would it make sense to do this in quarkus-awt instead?
@zakkak It would not. These are specific for this particular third party library of Apache PDFBox. Quarkus AWT deals with JDK runtime capabilities only.
If more changes are required, an Apache PDFBox extension might be warranted. So far, for this particular plain PDF -> PNG conversion, the Quickstart is fine.
I think @zakkak is pointing out an important detail @Karm. Quarkus is meant to help users reduce the need for extra configuration, but this is not something that should be discussed here really. See my comment in https://github.com/quarkusio/quarkus-quickstarts/pull/1154#issuecomment-1216178939
Describe the issue When we are using
quarkus-awt
with native build then it gives us the failure response.We are use
APCHE-PDFBOX
with aws lambda and while use this we got some error like,So as per the suggestion we are added
quarkus-awt
and we got the above error as i mentioned.Describe GraalVM and your environment: Currently i am using below Graalvm with jdk.