-
Notifications
You must be signed in to change notification settings - Fork 35
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
Nullpointer Exception with native app since 2.3.0 #485
Comments
@ctschubel thanks for reporting the issue, can you provide a reproducer project? |
Thanks for the reply! I build it like this: cd ./issue-485/
# use local graalVM
export GRAALVM_HOME=${pathToGraalHome}/mandrel-java17-22.3.2.1-Final
# build project as native executable
mvn clean install -Pnative And I just start the executable: cd ./target
./issue-485-0.0.1-SNAPSHOT-runner |
This looks like a bug in GraalVM native image.
|
Same as #482 |
I'm not sure if it actually is the same issue... I wasn't able to build the application with the remote docker container I guess thats because the remote containers uses an other version of graalVM, the build log says:
So its version When I build it with a locally installed graalVM |
There seems to be an issue around GraalVM/Google GAX/Apache arrow, see apache/camel-quarkus#5006 As a workaround, you can create a native-image.properties file in your application like here: quarkiverse/quarkus-micrometer-registry@494ea06 |
Google Cloud Services 2.5.0 which will be included in the very soon to be released Quarkus Platform 3.4.0 fixes the issue, I tested it in the reproducer. |
I still get the same So my application and the reproducer posted above builds successfully but when you start the native application, it fails instantly with the following logs..
|
I can build and start the native image of your reproducer using Quarkus 3.5.0 and Google Cloud Services 2.6.0. |
I have no more issues building the project that I provided after setting I used |
@ctschubel great to hear. Please consult https://github.com/graalvm/mandrel/wiki for which Mandrel version to use with which Quarkus version when not using the default Quarkus builder image. |
Ok so this works with 3.4.0 or 3.5.0 but not with 3.2.8.Final. What is the related PR or change so I can track if it's going to make into LTS? |
There is no change in this library itself, it's a matter of aligning Google Cloud SDK version with GraalVM version so I doubt it will go into the LTS of Quarkus. |
There are no issues when I build a native executable of my app using version 2.2.0.
When i tried to update to 2.3.0 I got following errors on startup:
I guess the newly introduced class
io.quarkiverse.googlecloudservices.common.GcpDefaultsConfigSourceFactory
is causing the problems.There are no issues when I build a jar and start it.
The text was updated successfully, but these errors were encountered: