3 fatal error when buildin native image: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.primefaces.component.treetable.export.TreeTablePDFExporter.addEmptyLine(com.lowagie.text.Paragraph, int) #30602
-
Describe the bugI asked my question on GraaalVM, but @zakkak told me to open my issue here. I'm getting the following error while building a native image for a web application with Quarkus and Primefraces. GraalVM: OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 17.0.5+8-jvmci-22.3-b08)
Expected behaviorI expected my image would be built successfully. Actual behaviorAfter I run
How to Reproduce?After running Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Converting to a discussion as I don't think that has anything to do with a bug in Quarkus. |
Beta Was this translation helpful? Give feedback.
-
@ma-sharifi can you please have a look at #30716 and see if the information there are enough for you to overcome the issue? If not please provide feedback on how to improve it. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @zakkak.
|
Beta Was this translation helpful? Give feedback.
-
@zakkak thought i would post this here too for anyone else looking... Sorry I know this is closed but wanted to share what I discovered and how I fixed it to help the GraalVM team. So the issue above is because PrimeFaces was doing this with iText However trying to use a larger Native image it would fail with public boolean add(Object o) { Notice it takes And then in my PrimeFaces Quarkus extension I substitute calling that method instead: And sure enough now GraalVM compiles EVERY time fine. I hope this makes sense but it seems the (Object o) notation is what is throwing it off. |
Beta Was this translation helpful? Give feedback.
Thanks, @zakkak.
The problem was solved by changing the dependencies as described below: