-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error: Incompatible change of initialization policy for java.io.RandomAccessFile: trying to change RERUN for JDK native code support via JNI to BUILD_TIME super type of org.apache.fontbox.ttf.BufferedRandomAccessFile #2723
Comments
@kalaspuffar please share the code sample and command to reproduce this issue |
Hi @mcraj017 The application we are trying to run on the graalvm is available at the link above. I don't have any specific code to share. If you want to rebuild the application you can do that with the code at https://github.com/apache/pdfbox Best regards |
I notice that the similar error was metioned in this issue #1731 (comment) . Perhaps we can refer to it to find more context about the bug ? |
I raised a ticket to the dev team for this issue |
I encounter the similar issue while using
Looks like those using |
@oubidar-Abderrahim hi, is there any update on this? I see another java library which giving same issue |
I seem to be running into the same issue with bitcoin-s when trying to build our appSever The native image version is `20.2.0 Steps to reproduce
and here is the error I am receiving:
|
This issue is tracked internally at GR-25845. |
Is this issue expected to be fixed (based on last comment maybe but I am not sure)? |
With the latest GraalVM this error doesn't happen anymore. I reach AWT issues, but the initialization issues are fixed. |
Describe the issue
We want to improve the speed of running pdfbox so we tried to compile with graalvm into a native image.
Latest pdfbox can be downloaded at:
http://apache.mirrors.spacedump.net/pdfbox/2.0.20/pdfbox-app-2.0.20.jar
Sadly we get the error:
[pdfbox-app-2.0.20:30813] classlist: 4,780.65 ms, 1.58 GB
[pdfbox-app-2.0.20:30813] (cap): 1,094.08 ms, 1.58 GB
[pdfbox-app-2.0.20:30813] setup: 3,508.85 ms, 1.58 GB
[pdfbox-app-2.0.20:30813] (clinit): 593.70 ms, 2.70 GB
[pdfbox-app-2.0.20:30813] analysis: 48,464.63 ms, 2.70 GB
Error: Incompatible change of initialization policy for java.io.RandomAccessFile: trying to change RERUN for JDK native code support via JNI to BUILD_TIME super type of org.apache.fontbox.ttf.BufferedRandomAccessFile
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
Steps to reproduce the issue
Please include both build steps as well as run steps
Describe GraalVM and your environment:
More details
Consider adding the
--native-image-info
and--verbose
flags when building your native image and paste output below.Add any other information about the problem here. Especially important are stack traces or log output. Feel free to link to gists or to screenshots if necessary.
The text was updated successfully, but these errors were encountered: