Questions tagged [graalvm-native-image]

449 questions
3
votes
0 answers

"No access hint found for import selector" error occurs when building graalvm native-image to make fat jar for spring-boot

Referenced blog : https://blog.codecentric.de/en/2020/06/spring-boot-graalvm-native-image-maven-plugin/ The following is my application version information Spring Boot version : 2.3.3.RELEASE spring-graalvm-native version :…
yslee
  • 31
  • 1
3
votes
1 answer

When building a native quarkus image, how should I (re-)structure my code to enable runtime class initialization?

I'm building a native image with quarkus and the graal analysis fails with the error: Error: No instances of sun.security.provider.NativePRNG are allowed in the image heap as this class should be initialized at image runtime. Object has been…
Neil Crossley
  • 74
  • 1
  • 5
3
votes
1 answer

Micronaut data native-image: No bean of type [io.micronaut.data.operations.PrimaryRepositoryOperations] exists

I'm working on a new example by using Micronaut, Micronaut Data, JPA, Postgres, and GraalVM, following https://github.com/rmondejar/micronaut-postgres-example This example has been created by using Micronaut Launch, 2.0.0.RC1 with the following…
3
votes
1 answer

Quarkus native image: postgresql connection refused

I created a quarkus application with access to a postgresql database on localhost. After creating the native image I try to run the application with: docker run -i --rm -p 8080:8080 quarkusimage if I try a method with postman I have this…
3
votes
4 answers

Quarkus Graalvm Native app ClassNotFoundException com.sun.xml.internal.ws.spi.ProviderImpl

I am converting a Spring Boot application to Quarkus, as a proof of concept. When I build the Quarkus app and run it with Java it runs fine, but when I try to run it as a native application I get a ClassNotFoundException on an internal sun class…
Jim M.
  • 909
  • 1
  • 12
  • 29
3
votes
2 answers

Error:org.apache.commons.logging.LogFactoryjava.lang.NoClassDefFoundError for application build with micronaut-bom1.2.10, graal19.2.1 & aws-sdk2.10.56

Created an application using micronaut bom 1.2.10 version, along with software.amazon.awssdk:lambda:2.10.56 & software.amazon.awssdk:s3:2.10.56 dependencies which had functionality to retrieve data from s3 storage and used graal 19.2.1 to create a…
3
votes
0 answers

Quarkus native compilation error: "No instances of sun.security.provider.NativePRNG are allowed in the image heap"

I am trying to compile an AWS Lambda Quarkus Native project. The compilation gets broken when I try to add and use an HTTP client. The error is the following: Error: No instances of sun.security.provider.NativePRNG are allowed in the image heap as…
fcracker79
  • 1,118
  • 13
  • 26
3
votes
3 answers

Cannot generate native image using GRAALVM in OS X Catalina

I cannot run the command in Catalina 10.15.2: bash-3.2$ $GRAALVM_HOME/Home/bin/gu install native-image It returns me this message: cannot be opened because the developer cannot be verified. I have tried running sudo xattr -r -d…
aironman
  • 837
  • 5
  • 26
  • 55
3
votes
1 answer

java.lang.ClassNotFoundException in Graal-compiled JavaFX application

I am working on a small OpenJFX project that can be compiled into a native app. Here's a sample of the relevant parts of the source code: Main.java package app; public class Main { public static void main(String[] args) { …
Xerz
  • 314
  • 1
  • 4
  • 15
3
votes
2 answers

No instances of ... are allowed in the image heap as this class should be initialized at image runtime

I am running a simple Java application (just a REST endpoint, a "Hello" response - exactly the example generated by the Quarkus maven archetype, without modification) with the following stack: Quarkus (MicroProfile) JDK 1.8 HotSpot…
Ualter Jr.
  • 2,320
  • 1
  • 25
  • 28
3
votes
1 answer

Documentation of GraalVM native-image -H:ConfigurationFileDirectories files

Where can be found a documentation / schema of GraalVM native-image configuration files that are set using -H:ConfigurationFileDirectories= option - jni-config.json, reflect-config.json, proxy-config.json and resource-config.json?
czerny
  • 15,090
  • 14
  • 68
  • 96
3
votes
2 answers

Where is documentation of -H:... options of GraalVM native-image?

Substrate VM documentation on GitHub (e.g. CONFIGURE.md mentions multiple -H:... options like -H:ReflectionConfigurationResources or -H:ConfigurationFileDirectories. Where can reference documentation of these options be found? GraalVM Reference >…
czerny
  • 15,090
  • 14
  • 68
  • 96
3
votes
1 answer

java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xml.internal.res.XMLErrorResources

I try to build an AWS Lambda handler with quarkus/graalVM. The handler is supposed to consume SQS Messages from a queue (not as an SQSEvent). I added the dependencies - quarkus-amazon-lambda - quarkus-camel-aws-sqs - quarkus-amazon-dynamodb (to get…
koljaTM
  • 10,064
  • 2
  • 40
  • 42
3
votes
1 answer

Deserializer failing when running in Graal

I have a Micronaut application that builds into a GraalVM native image. When I run the application from a normal standpoint (i.e. no Graal) it runs perfectly. However when I try to run from Graal I get the following runtime exception when trying to…
akortex
  • 5,067
  • 2
  • 25
  • 57
2
votes
1 answer

How to generate a PGO optimized native executable for Quarkus App?

I have a Quarkus Application exposed as a REST API. I need to generate an Profile Guided Optimized Native Image for that application. I looked into the Quarkus documentation but could not find much. Anyone has generated same ? I have GraalVM…
Paras
  • 3,191
  • 6
  • 41
  • 77