Skip to content
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 starting Micronaut server: Bean definition [org.hibernate.SessionFactory] could not be loaded: Error instantiating bean of type [io.micronaut.configuration.hibernate.jpa.conf.SessionFactoryPerDataSourceFactory] #734

Open
Bejenar opened this issue Sep 29, 2022 · 3 comments

Comments

@Bejenar
Copy link

Bejenar commented Sep 29, 2022

Expected Behavior

when building native image: mvn package -Dpackaging=docker-native -Pgraalvm

got Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of org.apache.logging.slf4j.SLF4JLogger are allowed in the image heap as this class should be initialized at image runtime. Tried to make a workaround with: --initialize-at-build-time=org.apache.logging

Image build was a success, and so I expected to run the image without any problems, but instead got an error

Actual Behaviour

 __  __ _                                  _   
|  \/  (_) ___ _ __ ___  _ __   __ _ _   _| |_ 
2022-09-29T17:13:56.172334638Z | | |/ __| '__/ _ \| '_ \ / _` | | | | __|
2022-09-29T17:13:56.172336075Z |  | | | (__| | | (_) | | | | (_| | |_| | |_ 
|_|  |_|_|\___|_|  \___/|_| |_|\__,_|\__,_|\__|
  Micronaut (v3.7.1)

17:13:56.200 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
17:13:56.202 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
17:13:56.204 [main] ERROR io.micronaut.runtime.Micronaut - Error starting Micronaut server: Bean definition [org.hibernate.SessionFactory] could not be loaded: Error instantiating bean of type  [io.micronaut.configuration.hibernate.jpa.conf.SessionFactoryPerDataSourceFactory]

Path Taken: SessionFactory.buildHibernateSessionFactoryBuilder(SessionFactoryBuilder sessionFactoryBuilder) --> new SessionFactoryPerDataSourceFactory(Environment environment,List configures,[StandardServiceRegistryBuilderCreator serviceRegistryBuilderSupplier],List standardServiceRegistryBuilderConfigurers,JpaConfiguration jpaConfiguration,ApplicationContext applicationContext,Integrator integrator)
io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [org.hibernate.SessionFactory] could not be loaded: Error instantiating bean of type  [io.micronaut.configuration.hibernate.jpa.conf.SessionFactoryPerDataSourceFactory]

Path Taken: SessionFactory.buildHibernateSessionFactoryBuilder(SessionFactoryBuilder sessionFactoryBuilder) --> new SessionFactoryPerDataSourceFactory(Environment environment,List configures,[StandardServiceRegistryBuilderCreator serviceRegistryBuilderSupplier],List standardServiceRegistryBuilderConfigurers,JpaConfiguration jpaConfiguration,ApplicationContext applicationContext,Integrator integrator)
at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1921)
at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:249)
at io.micronaut.context.DefaultBeanContext.readAllBeanDefinitionClasses(DefaultBeanContext.java:3326)
at io.micronaut.context.DefaultBeanContext.finalizeConfiguration(DefaultBeanContext.java:3684)
at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:341)
at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:194)
at io.micronaut.runtime.Micronaut.start(Micronaut.java:75)
at io.micronaut.runtime.Micronaut.run(Micronaut.java:323)
at io.micronaut.runtime.Micronaut.run(Micronaut.java:309)
at com.example.Application.main(Application.java:7)
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [io.micronaut.configuration.hibernate.jpa.conf.SessionFactoryPerDataSourceFactory]

Path Taken: SessionFactory.buildHibernateSessionFactoryBuilder(SessionFactoryBuilder sessionFactoryBuilder) --> new SessionFactoryPerDataSourceFactory(Environment environment,List configures,[StandardServiceRegistryBuilderCreator serviceRegistryBuilderSupplier],List standardServiceRegistryBuilderConfigurers,JpaConfiguration jpaConfiguration,ApplicationContext applicationContext,Integrator integrator)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2367)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2305)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2251)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3016)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2906)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2800)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1617)
at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:66)
at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2065)
at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1297)
at io.micronaut.configuration.hibernate.jpa.conf.$SessionFactoryPerDataSourceFactory$Definition.build(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2354)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2305)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2251)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3016)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2918)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2879)
at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2800)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1617)
at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1599)
at io.micronaut.configuration.hibernate.jpa.conf.$SessionFactoryPerDataSourceFactory$BuildHibernateSessionFactoryBuilder4$Definition.build(Unknown Source)
at io.micronaut.context.BeanDefinitionDelegate.build(BeanDefinitionDelegate.java:161)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2354)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2305)
at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2251)
at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3016)
at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:80)
at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2918)
at io.micronaut.context.DefaultBeanContext.loadContextScopeBean(DefaultBeanContext.java:2737)
at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1915)
... 9 common frames omitted
Caused by: java.lang.ExceptionInInitializerError: null
at org.hibernate.boot.registry.BootstrapServiceRegistryBuilder.<init>(BootstrapServiceRegistryBuilder.java:42)
at io.micronaut.configuration.hibernate.jpa.conf.serviceregistry.builder.supplier.internal.DefaultStandardServiceRegistryBuilderCreatorCreator.<init>(DefaultStandardServiceRegistryBuilderCreatorCreator.java:46)
at io.micronaut.configuration.hibernate.jpa.conf.serviceregistry.builder.supplier.internal.$DefaultStandardServiceRegistryBuilderCreatorCreator$Definition.build(Unknown Source)
at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2354)
... 39 common frames omitted
Caused by: java.lang.IllegalStateException: java.lang.InstantiationException: org.apache.logging.log4j.message.ParameterizedMessageFactory
at org.apache.logging.log4j.spi.AbstractLogger.createDefaultMessageFactory(AbstractLogger.java:231)
at org.apache.logging.log4j.spi.AbstractLogger.<init>(AbstractLogger.java:132)
at org.apache.logging.slf4j.SLF4JLogger.<init>(SLF4JLogger.java:41)
at org.apache.logging.slf4j.SLF4JLoggerContext.getLogger(SLF4JLoggerContext.java:36)
at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:666)
at org.jboss.logging.Log4j2Logger.<init>(Log4j2Logger.java:36)
at org.jboss.logging.Log4j2LoggerProvider.getLogger(Log4j2LoggerProvider.java:30)
at org.jboss.logging.Log4j2LoggerProvider.getLogger(Log4j2LoggerProvider.java:26)
at org.jboss.logging.Logger.getLogger(Logger.java:2465)
at org.jboss.logging.Logger.getLogger(Logger.java:2490)
at org.hibernate.boot.registry.selector.internal.StrategySelectorBuilder.<clinit>(StrategySelectorBuilder.java:44)
... 43 common frames omitted
Caused by: java.lang.InstantiationException: org.apache.logging.log4j.message.ParameterizedMessageFactory
at java.lang.Class.newInstance(DynamicHub.java:639)
at org.apache.logging.log4j.spi.AbstractLogger.createDefaultMessageFactory(AbstractLogger.java:228)
... 53 common frames omitted
Caused by: java.lang.NoSuchMethodException: org.apache.logging.log4j.message.ParameterizedMessageFactory.<init>()
at java.lang.Class.getConstructor0(DynamicHub.java:3585)
at java.lang.Class.newInstance(DynamicHub.java:626)
... 54 common frames omitted

Steps To Reproduce

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>demo</artifactId>
  <version>0.1</version>
  <packaging>${packaging}</packaging>

  <parent>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-parent</artifactId>
    <version>3.7.1</version>
  </parent>

  <properties>
    <packaging>jar</packaging>
    <jdk.version>17</jdk.version>
    <release.version>17</release.version>
    <micronaut.version>3.7.1</micronaut.version>
    <micronaut.runtime>netty</micronaut.runtime>
    <micronaut.data.version>3.8.0</micronaut.data.version>
    <exec.mainClass>com.example.Application</exec.mainClass>
  </properties>

  <repositories>
    <repository>
      <id>central</id>
      <url>https://repo.maven.apache.org/maven2</url>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-inject</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-validation</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-http-client</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-http-server</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-http-server-netty</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut</groupId>
      <artifactId>micronaut-jackson-databind</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.data</groupId>
      <artifactId>micronaut-data-hibernate-jpa</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.data</groupId>
      <artifactId>micronaut-data-spring</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.data</groupId>
      <artifactId>micronaut-data-spring-jpa</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.graphql</groupId>
      <artifactId>micronaut-graphql</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.sql</groupId>
      <artifactId>micronaut-jdbc-hikari</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>jakarta.annotation</groupId>
      <artifactId>jakarta.annotation-api</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-orm</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.spring</groupId>
      <artifactId>micronaut-spring-boot</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>io.micronaut.spring</groupId>
      <artifactId>micronaut-spring-web</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>io.micronaut.test</groupId>
      <artifactId>micronaut-test-junit5</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>io.micronaut.build</groupId>
        <artifactId>micronaut-maven-plugin</artifactId>
        <configuration>
          <nativeImageBuildArgs combine.children="append">
            <nativeImageBuildArg>--initialize-at-build-time=org.apache.logging</nativeImageBuildArg>
            <nativeImageBuildArg>--verbose</nativeImageBuildArg>
          </nativeImageBuildArgs>
        </configuration>

      </plugin>
      
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <!-- Uncomment to enable incremental compilation -->
          <!-- <useIncrementalCompilation>false</useIncrementalCompilation> -->

          <annotationProcessorPaths combine.self="override">
            <path>
              <groupId>org.projectlombok</groupId>
              <artifactId>lombok</artifactId>
              <version>${lombok.version}</version>
            </path>
            <path>
              <groupId>io.micronaut</groupId>
              <artifactId>micronaut-inject-java</artifactId>
              <version>${micronaut.version}</version>
            </path>
            <path>
              <groupId>io.micronaut.data</groupId>
              <artifactId>micronaut-data-processor</artifactId>
              <version>${micronaut.data.version}</version>
            </path>
            <path>
              <groupId>io.micronaut</groupId>
              <artifactId>micronaut-graal</artifactId>
              <version>${micronaut.version}</version>
            </path>
            <path>
              <groupId>io.micronaut</groupId>
              <artifactId>micronaut-http-validation</artifactId>
              <version>${micronaut.version}</version>
            </path>
            <path>
              <groupId>io.micronaut</groupId>
              <artifactId>micronaut-validation</artifactId>
              <version>${micronaut.version}</version>
            </path>
            <path>
              <groupId>io.micronaut.spring</groupId>
              <artifactId>micronaut-spring-annotation</artifactId>
              <version>${micronaut.spring.version}</version>
            </path>
            <path>
              <groupId>io.micronaut.spring</groupId>
              <artifactId>micronaut-spring-boot-annotation</artifactId>
              <version>${micronaut.spring.version}</version>
            </path>
            <path>
              <groupId>io.micronaut.spring</groupId>
              <artifactId>micronaut-spring-web-annotation</artifactId>
              <version>${micronaut.spring.version}</version>
            </path>
          </annotationProcessorPaths>
          <compilerArgs>
            <arg>-Amicronaut.processing.group=com.example</arg>
            <arg>-Amicronaut.processing.module=demo</arg>
          </compilerArgs>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>

Environment Information

  • Windows 10
  • base image: ghcr.io/graalvm/native-image:ol7-java17-22.2.0

Example Application

https://github.com/Bejenar/mn-to-spring

Version

3.7.1

@Bejenar
Copy link
Author

Bejenar commented Sep 29, 2022

Initial build error

"A:\Program Files\Java\graalvm-ce-java17-22.2.0\bin\java.exe" "-Dmaven.multiModuleProjectDirectory=D:\Java\Micronaut Sandbox\mn-to-spring" -Dmaven.home=C:\Users\jion9\.m2\wrapper\dists\apache-maven-3.6.3-bin\1iopthnavndlasol9gbrbg6bf2\apache-maven-3.6.3 -Dclassworlds.conf=C:\Users\jion9\.m2\wrapper\dists\apache-maven-3.6.3-bin\1iopthnavndlasol9gbrbg6bf2\apache-maven-3.6.3\bin\m2.conf "-Dmaven.ext.class.path=A:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\plugins\maven\lib\maven-event-listener.jar" "-javaagent:A:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\lib\idea_rt.jar=13898:A:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\jion9\.m2\wrapper\dists\apache-maven-3.6.3-bin\1iopthnavndlasol9gbrbg6bf2\apache-maven-3.6.3\boot\plexus-classworlds-2.6.0.jar;C:\Users\jion9\.m2\wrapper\dists\apache-maven-3.6.3-bin\1iopthnavndlasol9gbrbg6bf2\apache-maven-3.6.3\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2022.2.1 package -Dpackaging=docker-native -Pgraalvm
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.1
[INFO] ---------------------------[ docker-native ]----------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ demo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- micronaut-maven-plugin:3.4.0:aot-analysis (default-aot-analysis) @ demo ---
[INFO] 
[INFO] --- micronaut-maven-plugin:3.4.0:graalvm-resources (default-graalvm-resources) @ demo ---
[INFO] Generating D:\Java\Micronaut Sandbox\mn-to-spring\target\classes\META-INF\native-image\com.example\demo\resource-config.json
[INFO] 
[INFO] --- micronaut-maven-plugin:3.4.0:docker-native (default-docker-native) @ demo ---
[INFO] Exposing port: 8080
[INFO] Using BASE_IMAGE: ghcr.io/graalvm/native-image:ol7-java17-22.2.0
[INFO] Using BASE_IMAGE_RUN: frolvlad/alpine-glibc:alpine-3.12
[INFO] Using CLASS_NAME: com.example.Application
[INFO] Using GRAALVM_ARGS: --verbose
[INFO] Step 1/17 : ARG BASE_IMAGE
[INFO] 

[INFO] Step 2/17 : ARG BASE_IMAGE_RUN
[INFO] 

[INFO] Step 3/17 : FROM ${BASE_IMAGE} AS builder
[INFO] 

[INFO]  ---> 4efdfc1bf541

[INFO] Step 4/17 : WORKDIR /home/app
[INFO] 

[INFO]  ---> Using cache

[INFO]  ---> a24ca6d109a7

[INFO] Step 5/17 : COPY classes /home/app/classes
[INFO] 

[INFO]  ---> Using cache

[INFO]  ---> fc8e39d70a79

[INFO] Step 6/17 : COPY dependency/* /home/app/libs/
[INFO] 

[INFO]  ---> Using cache

[INFO]  ---> 8a6fd77b8788

[INFO] Step 7/17 : ARG CLASS_NAME
[INFO] 

[INFO]  ---> Using cache

[INFO]  ---> 3d12ba6f77dc

[INFO] Step 8/17 : ARG GRAALVM_ARGS=""
[INFO] 

[INFO]  ---> Using cache

[INFO]  ---> 103779178f80

[INFO] Step 9/17 : ENV USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM=false
[INFO] 

[INFO]  ---> Using cache

[INFO]  ---> 9de2b6ce1b60

[INFO] Step 10/17 : RUN native-image ${GRAALVM_ARGS} -H:Class=${CLASS_NAME} -H:Name=application --no-fallback -cp "/home/app/libs/*:/home/app/classes/"
[INFO] 

[INFO]  ---> Running in fb0731d56c46

[INFO] Apply jar:file:///home/app/libs/micronaut-validation-3.7.1.jar!/META-INF/native-image/io.micronaut.validation/micronaut-validation/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-cache-core-3.5.0.jar!/META-INF/native-image/io.micronaut.cache/micronaut-cache-core/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-aop-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-aop/native-image.properties

[INFO] Apply jar:file:///home/app/libs/tomcat-embed-core-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-core-reactive-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core-reactive/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-core-reactive-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core-reactive/reflect-config.json

[INFO] Apply jar:file:///home/app/libs/netty-buffer-4.1.82.Final.jar!/META-INF/native-image/io.netty/buffer/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-hibernate-jpa-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/hibernate-jpa-graal/native-image.properties

[INFO] Apply jar:file:///home/app/libs/tomcat-embed-websocket-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties

[INFO] Apply jar:file:///home/app/libs/netty-handler-4.1.82.Final.jar!/META-INF/native-image/io.netty/handler/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-data-tx-3.8.0.jar!/META-INF/native-image/io.micronaut.data/data-tx/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-runtime-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-runtime/native-image.properties

[INFO] Apply jar:file:///home/app/libs/netty-codec-http-4.1.82.Final.jar!/META-INF/native-image/io.netty/codec-http/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-http-server-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-http-server/native-image.properties

[INFO] Apply jar:file:///home/app/libs/netty-codec-http2-4.1.82.Final.jar!/META-INF/native-image/io.netty/codec-http2/native-image.properties

[INFO] Apply jar:file:///home/app/libs/netty-common-4.1.82.Final.jar!/META-INF/native-image/io.netty/common/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-jackson-core-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-jackson-core/native-image.properties

[INFO] Apply jar:file:///home/app/libs/tomcat-embed-el-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-http-3.7.1.jar!/META-INF/native-image/io.micronaut.http/micronaut-http/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-jdbc-hikari-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/micronaut-jdbc-hikari/reflect-config.json

[INFO] Apply jar:file:///home/app/libs/micronaut-graphql-3.1.0.jar!/META-INF/native-image/io.micronaut.graphql/micronaut-graphql/reflect-config.json
Apply jar:file:///home/app/libs/micronaut-graphql-3.1.0.jar!/META-INF/native-image/io.micronaut.graphql/micronaut-graphql/resource-config.json

[INFO] Apply jar:file:///home/app/libs/micronaut-data-runtime-3.8.0.jar!/META-INF/native-image/io.micronaut.data/micronaut-data-runtime/native-image.properties

[INFO] Apply jar:file:///home/app/libs/netty-transport-4.1.82.Final.jar!/META-INF/native-image/io.netty/transport/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-core-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-core-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core/reflect-config.json

[INFO] Apply jar:file:///home/app/libs/micronaut-jdbc-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/micronaut-jdbc/native-image.properties

[INFO] Apply jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/native-image.properties

[INFO] Warning: Using a deprecated option --allow-incomplete-classpath from 'META-INF/native-image/io.micronaut/micronaut-inject/native-image.properties' in 'file:///home/app/libs/micronaut-inject-3.7.1.jar'. Allowing an incomplete classpath is now the default. Use --link-at-build-time to report linking errors at image build time for a class or package.

[INFO] Apply jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/resource-config.json

[INFO] Apply file:///home/app/classes/META-INF/native-image/com.example/demo/resource-config.json

[INFO] Executing [
/usr/lib64/graalvm/graalvm22-ce-java17/bin/java \
-XX:+UseParallelGC \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-Dtruffle.TrustAllTruffleRuntimeProviders=true \
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=true \
-Dgraalvm.locatorDisabled=true \
-Dsubstratevm.IgnoreGraalVersionCheck=true \
--add-exports=java.base/com.sun.crypto.provider=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.access.foreign=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.event=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.loader=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.logger=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.module=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.perf=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.platform=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED \
--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED \
--add-exports=java.base/sun.invoke.util=ALL-UNNAMED \
--add-exports=java.base/sun.net=ALL-UNNAMED \
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.factory=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.repository=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.scope=ALL-UNNAMED \
--add-exports=java.base/sun.reflect.generics.tree=ALL-UNNAMED \
--add-exports=java.base/sun.security.jca=ALL-UNNAMED \
--add-exports=java.base/sun.security.provider=ALL-UNNAMED \
--add-exports=java.base/sun.security.ssl=ALL-UNNAMED \
--add-exports=java.base/sun.security.util=ALL-UNNAMED \
--add-exports=java.base/sun.security.x509=ALL-UNNAMED \
--add-exports=java.base/sun.text.spi=ALL-UNNAMED \
--add-exports=java.base/sun.util.calendar=ALL-UNNAMED \
--add-exports=java.base/sun.util.cldr=ALL-UNNAMED \
--add-exports=java.base/sun.util.locale.provider=ALL-UNNAMED \
--add-exports=java.base/sun.util.locale=ALL-UNNAMED \
--add-exports=java.base/sun.util.resources=ALL-UNNAMED \
--add-exports=java.base/sun.util=ALL-UNNAMED \
--add-exports=java.desktop/sun.java2d.pipe=ALL-UNNAMED \
--add-exports=java.desktop/sun.java2d=ALL-UNNAMED \
--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-exports=java.management/sun.management=ALL-UNNAMED \
--add-exports=java.xml.crypto/org.jcp.xml.dsig.internal.dom=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.aarch64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.amd64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.site=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code.stack=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.common=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot.riscv64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.hotspot=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.riscv64=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED \
--add-exports=jdk.internal.vm.ci/jdk.vm.ci.services=ALL-UNNAMED \
--add-exports=jdk.jfr/jdk.jfr.events=ALL-UNNAMED \
--add-exports=jdk.jfr/jdk.jfr.internal.handlers=ALL-UNNAMED \
--add-exports=jdk.jfr/jdk.jfr.internal.jfc=ALL-UNNAMED \
--add-exports=jdk.jfr/jdk.jfr.internal=ALL-UNNAMED \
--add-exports=jdk.management/com.sun.management.internal=ALL-UNNAMED \
-XX:+UseJVMCINativeLibrary \
-Xss10m \
-Xms1g \
-Xmx14g \
-Djava.awt.headless=true \
-Dorg.graalvm.version=22.2.0 \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
--add-modules \
java.sql.rowset \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-javaagent:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/svm.jar \
-Dorg.graalvm.nativeimage.module.addmods=java.sql.rowset \
-cp \
/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/llvm-platform-specific-shadowed.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/javacpp-shadowed.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/objectfile.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/svm.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/svm-llvm.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/native-image-base.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/javacpp-platform-specific-shadowed.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/llvm-wrapper-shadowed.jar:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/builder/pointsto.jar \
--module-path \
/usr/lib64/graalvm/graalvm22-ce-java17/lib/truffle/truffle-api.jar \
'com.oracle.svm.hosted.NativeImageGeneratorRunner$JDK9Plus' \
-watchpid \
1 \
-imagecp \
'/home/app/libs/*:/home/app/libs/jaxb-api-2.3.1.jar:/home/app/libs/txw2-2.3.1.jar:/home/app/libs/istack-commons-runtime-3.0.7.jar:/home/app/libs/stax-ex-1.8.jar:/home/app/libs/FastInfoset-1.2.15.jar:/home/app/libs/javax.activation-api-1.2.0.jar:/home/app/classes:/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/library-support.jar' \
-H:CLibraryPath=/usr/lib64/graalvm/graalvm22-ce-java17/lib/svm/clibraries/linux-amd64 \
-H:Path=/home/app \
-H:Class=com.example.Application \
-H:Name=application \
-H:FallbackThreshold=0 \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-validation-3.7.1.jar!/META-INF/native-image/io.micronaut.validation/micronaut-validation/native-image.properties=io.micronaut.validation.exceptions.ValidationExceptionHandler:run_time,io.micronaut.validation.exceptions.$ValidationExceptionHandler$Definition:run_time,io.micronaut.validation.exceptions.$ValidationExceptionHandler$Definition$Exec:run_time,io.micronaut.validation.exceptions.$ConstraintExceptionHandler$Definition:run_time,io.micronaut.validation.exceptions.ConstraintExceptionHandler:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-cache-core-3.5.0.jar!/META-INF/native-image/io.micronaut.cache/micronaut-cache-core/native-image.properties=io.micronaut.cache.jcache.$JCacheManager$Definition:run_time,io.micronaut.cache.jcache.metrics.$JCacheMetricsBinder$Definition:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-aop-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-aop/native-image.properties=io.micronaut.aop.internal.intercepted.PublisherInterceptedMethod:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/tomcat-embed-core-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-reflection.json' \
'-H:ResourceConfigurationResources@jar:file:///home/app/libs/tomcat-embed-core-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-core/tomcat-resource.json' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-core-reactive-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core-reactive/native-image.properties=io.micronaut.core.async.publisher.Publishers:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/micronaut-core-reactive-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core-reactive/reflect-config.json=META-INF/native-image/io.micronaut/micronaut-core-reactive/reflect-config.json' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-buffer-4.1.82.Final.jar!/META-INF/native-image/io.netty/buffer/native-image.properties=io.netty.buffer.PooledByteBufAllocator:run_time,io.netty.buffer.ByteBufAllocator:run_time,io.netty.buffer.ByteBufUtil:run_time,io.netty.buffer.AbstractReferenceCountedByteBuf:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-hibernate-jpa-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/hibernate-jpa-graal/native-image.properties=org.jboss.logging:build_time,org.hibernate.internal:build_time,org.hibernate.jmx:build_time,org.hibernate.query:build_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-hibernate-jpa-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/hibernate-jpa-graal/native-image.properties=io.micronaut.configuration.hibernate.jpa.jcache.$HibernateJCacheManagerBinder$Definition:run_time,io.micronaut.configuration.hibernate.jpa.metrics.$HibernateMetricsBinder$Definition:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/tomcat-embed-websocket-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-reflection.json' \
'-H:ResourceConfigurationResources@jar:file:///home/app/libs/tomcat-embed-websocket-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-websocket/tomcat-resource.json' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-handler-4.1.82.Final.jar!/META-INF/native-image/io.netty/handler/native-image.properties=io.netty.handler.ssl.util.ThreadLocalInsecureRandom:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-data-tx-3.8.0.jar!/META-INF/native-image/io.micronaut.data/data-tx/native-image.properties=io.micronaut.transaction.test.$DefaultTestTransactionExecutionListener$Definition:run_time,io.micronaut.transaction.interceptor.$CoroutineTxHelper$Definition:run_time,io.micronaut.transaction.interceptor.CoroutineTxHelper:run_time' \
'-H:+InstallExitHandlers@jar:file:///home/app/libs/micronaut-runtime-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-runtime/native-image.properties' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-runtime-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-runtime/native-image.properties=io.micronaut.reactive.reactor.ReactorInstrumentation:run_time,io.micronaut.discovery.cloud.digitalocean.$DigitalOceanMetadataResolver$Definition:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-runtime-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-runtime/native-image.properties=ch.qos.logback:build_time,io.micronaut:build_time,io.reactivex:build_time,org.reactivestreams:build_time,org.slf4j:build_time,org.yaml.snakeyaml:build_time,javax.xml:build_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-runtime-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-runtime/native-image.properties=com.sun.org.apache.xerces.internal.util:build_time,com.sun.org.apache.xerces.internal.impl:build_time,jdk.xml.internal:build_time,com.sun.xml.internal.stream.util:build_time,com.sun.org.apache.xerces.internal.xni:build_time,com.sun.org.apache.xerces.internal.utils:build_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-codec-http-4.1.82.Final.jar!/META-INF/native-image/io.netty/codec-http/native-image.properties=io.netty:build_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-codec-http-4.1.82.Final.jar!/META-INF/native-image/io.netty/codec-http/native-image.properties=io.netty.handler.codec.http.HttpObjectEncoder:run_time,io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder:run_time,io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder:run_time,io.netty.handler.codec.compression.BrotliDecoder:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-http-server-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-http-server/native-image.properties=io.micronaut.http.server.exceptions.JsonExceptionHandler:run_time,io.micronaut.http.server.exceptions.$JsonExceptionHandler$Definition:run_time,io.micronaut.http.server.exceptions.$JsonExceptionHandler$Definition$Exec:run_time,io.micronaut.http.server.$CoroutineHelper$Definition:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-codec-http2-4.1.82.Final.jar!/META-INF/native-image/io.netty/codec-http2/native-image.properties=io.netty:build_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-codec-http2-4.1.82.Final.jar!/META-INF/native-image/io.netty/codec-http2/native-image.properties=io.netty.handler.codec.http2.Http2CodecUtil:run_time,io.netty.handler.codec.http2.Http2ClientUpgradeCodec:run_time,io.netty.handler.codec.http2.Http2ConnectionHandler:run_time,io.netty.handler.codec.http2.DefaultHttp2FrameWriter:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-common-4.1.82.Final.jar!/META-INF/native-image/io.netty/common/native-image.properties=io.netty.util.AbstractReferenceCounted:run_time,io.netty.util.concurrent.GlobalEventExecutor:run_time,io.netty.util.concurrent.ImmediateEventExecutor:run_time,io.netty.util.concurrent.ScheduledFutureTask:run_time,io.netty.util.internal.ThreadLocalRandom:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-common-4.1.82.Final.jar!/META-INF/native-image/io.netty/common/native-image.properties=io.netty.util.NetUtilSubstitutions$NetUtilLocalhost4LazyHolder:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-common-4.1.82.Final.jar!/META-INF/native-image/io.netty/common/native-image.properties=io.netty.util.NetUtilSubstitutions$NetUtilLocalhost6LazyHolder:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/netty-common-4.1.82.Final.jar!/META-INF/native-image/io.netty/common/native-image.properties=io.netty.util.NetUtilSubstitutions$NetUtilLocalhostLazyHolder:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-jackson-core-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-jackson-core/native-image.properties=com.fasterxml.jackson:build_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/tomcat-embed-el-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-reflection.json' \
'-H:ResourceConfigurationResources@jar:file:///home/app/libs/tomcat-embed-el-9.0.65.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/native-image.properties=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-el/tomcat-resource.json' \
'-H:IncludeResources@jar:file:///home/app/libs/micronaut-http-3.7.1.jar!/META-INF/native-image/io.micronaut.http/micronaut-http/native-image.properties=META-INF/http/mime.types' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-http-3.7.1.jar!/META-INF/native-image/io.micronaut.http/micronaut-http/native-image.properties=io.micronaut.http.bind.binders.ContinuationArgumentBinder:run_time,io.micronaut.http.server.CoroutineHelper:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/micronaut-jdbc-hikari-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/micronaut-jdbc-hikari/reflect-config.json=META-INF/native-image/io.micronaut.sql/micronaut-jdbc-hikari/reflect-config.json' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/micronaut-graphql-3.1.0.jar!/META-INF/native-image/io.micronaut.graphql/micronaut-graphql/reflect-config.json=META-INF/native-image/io.micronaut.graphql/micronaut-graphql/reflect-config.json' \
'-H:ResourceConfigurationResources@jar:file:///home/app/libs/micronaut-graphql-3.1.0.jar!/META-INF/native-image/io.micronaut.graphql/micronaut-graphql/resource-config.json=META-INF/native-image/io.micronaut.graphql/micronaut-graphql/resource-config.json' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-data-runtime-3.8.0.jar!/META-INF/native-image/io.micronaut.data/micronaut-data-runtime/native-image.properties=io.micronaut.data.runtime.intercept.criteria.AbstractSpecificationInterceptor:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/netty-transport-4.1.82.Final.jar!/META-INF/native-image/io.netty/transport/native-image.properties=META-INF/native-image/io.netty/transport/reflection-config.json' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-core-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core/native-image.properties=io.micronaut.core.io.socket.SocketUtils:run_time' \
'-H:ReflectionConfigurationResources@jar:file:///home/app/libs/micronaut-core-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-core/reflect-config.json=META-INF/native-image/io.micronaut/micronaut-core/reflect-config.json' \
'-H:DynamicProxyConfigurationResources@jar:file:///home/app/libs/micronaut-jdbc-4.7.2.jar!/META-INF/native-image/io.micronaut.sql/micronaut-jdbc/native-image.properties=META-INF/native-image/io.micronaut.sql/micronaut-jdbc/dynamic-proxy-config.json' \
'-H:+AllowIncompleteClasspath@jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/native-image.properties' \
'-H:EnableURLProtocols@jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/native-image.properties=http,https' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/native-image.properties=io.micronaut.inject.provider.JakartaProviderBeanDefinition:run_time' \
'-H:ClassInitialization@jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/native-image.properties=io.micronaut.context.env.CachedEnvironment:run_time' \
'-H:ResourceConfigurationResources@jar:file:///home/app/libs/micronaut-inject-3.7.1.jar!/META-INF/native-image/io.micronaut/micronaut-inject/resource-config.json=META-INF/native-image/io.micronaut/micronaut-inject/resource-config.json' \
-H:ResourceConfigurationResources@file:///home/app/classes/META-INF/native-image/com.example/demo/resource-config.json=META-INF/native-image/com.example/demo/resource-config.json
]

[INFO] ========================================================================================================================
GraalVM Native Image: Generating 'application' (
[INFO] executable)...
========================================================================================================================

[INFO] [1/7] Initializing...                                                                                    (9.0s @ 0.36GB)

[INFO]  Version info: 'GraalVM 22.2.0 Java 17 CE'
 Java version info
[INFO] : '17.0.4+8-jvmci-22.2-b06
[INFO] '
 C compiler: 
[INFO] gcc (redhat, x86_64, 4.8.5)
 Garbage collector: 
[INFO] Serial GC

[INFO]  6 user-specific feature(s)

[INFO]  - io.micronaut.buffer.netty.NettyFeature
 - io.micronaut.configuration.hibernate.jpa.graal.HibernateFeature
 - io.micronaut.core.graal.ServiceLoaderFeature
 - 
[INFO] io.micronaut.http.netty.graal.HttpNettyFeature

[INFO]  - io.micronaut.jackson.JacksonDatabindFeature
 - io.micronaut.jdbc.nativeimage.JdbcFeature

[INFO] [2/7] Performing analysis...  [*]                                                                       (10.3s @ 1.71GB)

[INFO]    7,683 (77.50%) of  9,913 classes reachable

[INFO]    7,565 (48.07%) of 15,736 fields reachable

[INFO]   26,275 (37.10%) of 70,816 methods reachable

[INFO]    1,032 classes,   778 fields, and 4,734 methods 
[INFO] registered for reflection

[INFO] 

[INFO] Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.hibernate.hql.internal.ast.tree.DotNode.resolve(boolean, boolean, java.lang.String, antlr.collections.AST, antlr.collections.AST) 
Parsing context:
   at org.hibernate.hql.internal.ast.tree.DotNode.resolve(DotNode.java:204)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:114)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:89)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)
   at org.hibernate.hql.internal.ast.tree.FromReferenceNode.recursiveResolve(FromReferenceNode.java:73)

	at com.oracle.graal.pointsto.util.AnalysisError.parsingError(AnalysisError.java:152)
	at com.oracle.graal.pointsto.flow.MethodTypeFlow.createFlowsGraph(MethodTypeFlow.java:104)
	at com.oracle.graal.pointsto.flow.MethodTypeFlow.ensureFlowsGraphCreated(MethodTypeFlow.java:83)
	at com.oracle.graal.pointsto.flow.MethodTypeFlow.getOrCreateMethodFlowsGraph(MethodTypeFlow.java:65)
	at com.oracle.graal.pointsto.typestate.DefaultVirtualInvokeTypeFlow.onObservedUpdate(DefaultVirtualInvokeTypeFlow.java:109)
	at com.oracle.graal.pointsto.flow.TypeFlow.update(TypeFlow.java:558)
[INFO] 
	at com.oracle.graal.pointsto.PointsToAnalysis$1.run(PointsToAnalysis.java:635)
	at com.oracle.graal.pointsto.util.CompletionExecutor.executeCommand(CompletionExecutor.java:193)
	at com.oracle.graal.pointsto.util.CompletionExecutor.lambda$executeService$0(CompletionExecutor.java:177)
	at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
[INFO] 
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
[INFO] 

[INFO] 	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

[INFO] Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of org.apache.logging.slf4j.SLF4JLogger are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use --trace-object-instantiation=org.apache.logging.slf4j.SLF4JLogger.
	at com.oracle.svm.hosted.classinitialization.ClassInitializationFeature.checkImageHeapInstance(ClassInitializationFeature.java:140)
	at com.oracle.graal.pointsto.meta.AnalysisUniverse.replaceObject(AnalysisUniverse.java:583)
	at com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.replaceObject(AnalysisConstantReflectionProvider.java:257)
	at com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.interceptValue(AnalysisConstantReflectionProvider.java:228)

[INFO] 	at com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.readValue(AnalysisConstantReflectionProvider.java:105)
	at com.oracle.svm.hosted.ameta.AnalysisConstantReflectionProvider.readFieldValue(AnalysisConstantReflectionProvider.java:84)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.util.ConstantFoldUtil$1.readValue(ConstantFoldUtil.java:55)

[INFO] 	at jdk.internal.vm.compiler/org.graalvm.compiler.core.common.spi.JavaConstantFieldProvider.readConstantField(JavaConstantFieldProvider.java:78)
	at com.oracle.svm.hosted.ameta.AnalysisConstantFieldProvider.readConstantField(AnalysisConstantFieldProvider.java:72)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.util.ConstantFoldUtil.tryConstantFold(ConstantFoldUtil.java:51)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.java.LoadFieldNode.asConstant(LoadFieldNode.java:178)
[INFO] 
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.java.LoadFieldNode.canonical(LoadFieldNode.java:144)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.java.LoadFieldNode.canonical(LoadFieldNode.java:135)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.java.LoadFieldNode.canonical(LoadFieldNode.java:72)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.spi.Canonicalizable$Unary.canonical(Canonicalizable.java:101)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.SimplifyingGraphDecoder.canonicalizeFixedNode(SimplifyingGraphDecoder.java:214)
	at jdk.internal.vm.compiler/org.graalvm.compiler.replacements.PEGraphDecoder.canonicalizeFixedNode(PEGraphDecoder.java:1572)
[INFO] 

[INFO] 	at com.oracle.graal.pointsto.phases.InlineBeforeAnalysisGraphDecoder.canonicalizeFixedNode(InlineBeforeAnalysis.java:192)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.SimplifyingGraphDecoder.handleFixedNode(SimplifyingGraphDecoder.java:193)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.GraphDecoder.processNextNode(GraphDecoder.java:821)
	at com.oracle.graal.pointsto.phases.InlineBeforeAnalysisGraphDecoder.processNextNode(InlineBeforeAnalysis.java:240)
	at jdk.internal.vm.compiler/org.graalvm.compiler.nodes.GraphDecoder.decode(GraphDecoder.java:548)
	at jdk.internal.vm.compiler/org.graalvm.compiler.replacements.PEGraphDecoder.decode(PEGraphDecoder.java:833)
[INFO] 

[INFO] 	at com.oracle.graal.pointsto.phases.InlineBeforeAnalysis.decodeGraph(InlineBeforeAnalysis.java:98)

[INFO] 	at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse(MethodTypeFlowBuilder.java:176)
	at com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply(MethodTypeFlowBuilder.java:343)
[INFO] 

[INFO] 	at com.oracle.graal.pointsto.flow.MethodTypeFlow.createFlowsGraph(MethodTypeFlow.java:93)

[INFO] ------------------------------------------------------------------------------------------------------------------------

[INFO] 	... 13 more

[INFO]                         1.1s (5.2% of total time) in 21 GCs | Peak RSS: 
[INFO] 3.95GB | 
[INFO] CPU load: 
[INFO] 6.13
[INFO] 

[INFO] ========================================================================================================================

[INFO] Failed generating 'application' 
[INFO] after 19.6s
[INFO] .

[INFO] Error: Image build request failed with exit status 1
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
	at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1716)
	at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1413)
	at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1374)
	at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1361)

[ERROR] The command '/bin/sh -c native-image ${GRAALVM_ARGS} -H:Class=${CLASS_NAME} -H:Name=application --no-fallback -cp "/home/app/libs/*:/home/app/classes/"' returned a non-zero code: 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  27.652 s
[INFO] Finished at: 2022-09-29T20:29:54+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.micronaut.build:micronaut-maven-plugin:3.4.0:docker-native (default-docker-native) on project demo: Execution default-docker-native of goal io.micronaut.build:micronaut-maven-plugin:3.4.0:docker-native failed: Could not build image: The command '/bin/sh -c native-image ${GRAALVM_ARGS} -H:Class=${CLASS_NAME} -H:Name=application --no-fallback -cp "/home/app/libs/*:/home/app/classes/"' returned a non-zero code: 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Process finished with exit code 1

@lbovolini
Copy link

Same error here

18:36:09.761 [main] INFO  i.m.c.DefaultApplicationContext$RuntimeConfiguredEnvironment - Established active environments: [function, lambda]
18:36:09.773 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
18:36:10.056 [main] INFO  com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@60fc8917
18:36:10.056 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
18:36:10.072 [main] INFO  org.hibernate.Version - HHH000412: Hibernate ORM core version [WORKING]
18:36:10.073 [main] INFO  org.hibernate.cfg.Environment - HHH000406: Using bytecode reflection optimizer
18:36:10.155 [main] INFO  o.h.b.i.BytecodeProviderInitiator - HHH000021: Bytecode provider name : bytebuddy
18:36:10.155 [main] ERROR i.m.f.aws.MicronautRequestHandler - Exception initializing handler
io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [io.micronaut.data.connection.jdbc.advice.ContextualConnection$Intercepted] could not be loaded: Error instantiating bean of type  [org.hibernate.SessionFactory]

Message: No classes have been predefined during the image build to load from bytecodes at runtime.
Path Taken: new HibernateConnectionConnectionOperations(HibernateConnectionOperations hibernateConnectionOperations) --> new HibernateConnectionConnectionOperations([HibernateConnectionOperations hibernateConnectionOperations]) --> new HibernateConnectionOperations([SessionFactory sessionFactory],Interceptor entityInterceptor) --> SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder([SessionFactoryBuilder sessionFactoryBuilder])
	at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1979)
	at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:279)
	at io.micronaut.context.DefaultBeanContext.readAllBeanDefinitionClasses(DefaultBeanContext.java:3340)
	at io.micronaut.context.DefaultBeanContext.finalizeConfiguration(DefaultBeanContext.java:3694)
	at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:345)
	at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:191)
	at io.micronaut.function.executor.AbstractExecutor.startEnvironment(AbstractExecutor.java:124)
	at io.micronaut.function.aws.MicronautRequestHandler.buildApplicationContext(MicronautRequestHandler.java:140)
	at io.micronaut.function.aws.MicronautRequestHandler.<init>(MicronautRequestHandler.java:67)
	at com.github.lbovolini.handler.LambdaHandler.<init>(LambdaHandler.java:27)
	at com.github.lbovolini.handler.FunctionLambdaRuntime.createRequestHandler(FunctionLambdaRuntime.java:38)
	at io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime.createHandler(AbstractMicronautLambdaRuntime.java:237)
	at io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime.startRuntimeApiEventLoop(AbstractMicronautLambdaRuntime.java:368)
	at io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime.run(AbstractMicronautLambdaRuntime.java:164)
	at com.github.lbovolini.handler.FunctionLambdaRuntime.main(FunctionLambdaRuntime.java:29)
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [org.hibernate.SessionFactory]

Message: No classes have been predefined during the image build to load from bytecodes at runtime.
Path Taken: new HibernateConnectionConnectionOperations(HibernateConnectionOperations hibernateConnectionOperations) --> new HibernateConnectionConnectionOperations([HibernateConnectionOperations hibernateConnectionOperations]) --> new HibernateConnectionOperations([SessionFactory sessionFactory],Interceptor entityInterceptor) --> SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder([SessionFactoryBuilder sessionFactoryBuilder])
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2322)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2166)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1328)
	at io.micronaut.configuration.hibernate.jpa.conf.$SessionFactoryPerDataSourceFactory$BuildHibernateSessionFactoryBuilder4$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2166)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1328)
	at io.micronaut.data.hibernate.connection.$HibernateConnectionOperations$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2166)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1328)
	at io.micronaut.data.hibernate.connection.$HibernateConnectionConnectionOperations$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:840)
	at io.micronaut.data.connection.jdbc.advice.ContextualConnectionInterceptor.<init>(ContextualConnectionInterceptor.java:51)
	at io.micronaut.data.connection.jdbc.advice.$ContextualConnectionInterceptor$Definition.instantiate(Unknown Source)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2946)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2893)
	at io.micronaut.context.DefaultBeanContext.addCandidateToList(DefaultBeanContext.java:3521)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistrations(DefaultBeanContext.java:3473)
	at io.micronaut.context.DefaultBeanContext.getBeanRegistrations(DefaultBeanContext.java:3447)
	at io.micronaut.context.AbstractBeanResolutionContext.getBeanRegistrations(AbstractBeanResolutionContext.java:118)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBeanRegistrations(AbstractInitializableBeanDefinition.java:2322)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanRegistrationsForConstructorArgument(AbstractInitializableBeanDefinition.java:1500)
	at io.micronaut.data.connection.jdbc.advice.$ContextualConnection$Intercepted$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.initializeEagerBean(DefaultBeanContext.java:2667)
	at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1973)
	... 14 common frames omitted
Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: No classes have been predefined during the image build to load from bytecodes at runtime.
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:92)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.PredefinedClassesSupport.throwNoBytecodeClasses(PredefinedClassesSupport.java:76)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.PredefinedClassesSupport.loadClass(PredefinedClassesSupport.java:130)
	at [email protected]/java.lang.ClassLoader.defineClass(ClassLoader.java:294)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher$DynamicClassLoader.invoker(JavaDispatcher.java:1383)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher$InvokerCreationAction.run(JavaDispatcher.java:459)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher$InvokerCreationAction.run(JavaDispatcher.java:452)
	at [email protected]/java.security.AccessController.executePrivileged(AccessController.java:171)
	at [email protected]/java.security.AccessController.doPrivileged(AccessController.java:318)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher.doPrivileged(JavaDispatcher.java)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher.<clinit>(JavaDispatcher.java:87)
	at net.bytebuddy.description.type.TypeDescription$ForLoadedType.<clinit>(TypeDescription.java:8659)
	at net.bytebuddy.matcher.ElementMatchers.isFinalizer(ElementMatchers.java:1624)
	at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers.<init>(ByteBuddyState.java:296)
	at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState.<clinit>(ByteBuddyState.java:71)
	at org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl.<init>(BytecodeProviderImpl.java:124)
	at org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl.<init>(BytecodeProviderImpl.java:116)
	at org.hibernate.bytecode.internal.BytecodeProviderInitiator.buildBytecodeProvider(BytecodeProviderInitiator.java:59)
	at org.hibernate.bytecode.internal.BytecodeProviderInitiator.initiateService(BytecodeProviderInitiator.java:36)
	at org.hibernate.bytecode.internal.BytecodeProviderInitiator.initiateService(BytecodeProviderInitiator.java:22)
	at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:119)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:239)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:216)
	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:68)
	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:45)
	at org.hibernate.boot.internal.DefaultSessionFactoryBuilderService.createSessionFactoryBuilder(DefaultSessionFactoryBuilderService.java:26)
	at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:170)
	at io.micronaut.configuration.hibernate.jpa.conf.AbstractHibernateFactory.buildHibernateSessionFactoryBuilder(AbstractHibernateFactory.java:96)
	at io.micronaut.configuration.hibernate.jpa.conf.SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder(SessionFactoryPerDataSourceFactory.java:100)
	at io.micronaut.configuration.hibernate.jpa.conf.$SessionFactoryPerDataSourceFactory$BuildHibernateSessionFactoryBuilder3$Definition.doInstantiate(Unknown Source)
	at io.micronaut.context.AbstractInitializableBeanDefinition.instantiate(AbstractInitializableBeanDefinition.java:774)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:156)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	... 89 common frames omitted
io.micronaut.context.exceptions.BeanInstantiationException: Bean definition [io.micronaut.data.connection.jdbc.advice.ContextualConnection$Intercepted] could not be loaded: Error instantiating bean of type  [org.hibernate.SessionFactory]

Message: No classes have been predefined during the image build to load from bytecodes at runtime.
Path Taken: new HibernateConnectionConnectionOperations(HibernateConnectionOperations hibernateConnectionOperations) --> new HibernateConnectionConnectionOperations([HibernateConnectionOperations hibernateConnectionOperations]) --> new HibernateConnectionOperations([SessionFactory sessionFactory],Interceptor entityInterceptor) --> SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder([SessionFactoryBuilder sessionFactoryBuilder])
	at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1979)
	at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:279)
	at io.micronaut.context.DefaultBeanContext.readAllBeanDefinitionClasses(DefaultBeanContext.java:3340)
	at io.micronaut.context.DefaultBeanContext.finalizeConfiguration(DefaultBeanContext.java:3694)
	at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:345)
	at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:191)
	at io.micronaut.function.executor.AbstractExecutor.startEnvironment(AbstractExecutor.java:124)
	at io.micronaut.function.aws.MicronautRequestHandler.buildApplicationContext(MicronautRequestHandler.java:140)
	at io.micronaut.function.aws.MicronautRequestHandler.<init>(MicronautRequestHandler.java:67)
	at com.github.lbovolini.handler.LambdaHandler.<init>(LambdaHandler.java:27)
	at com.github.lbovolini.handler.FunctionLambdaRuntime.createRequestHandler(FunctionLambdaRuntime.java:38)
	at io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime.createHandler(AbstractMicronautLambdaRuntime.java:237)
	at io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime.startRuntimeApiEventLoop(AbstractMicronautLambdaRuntime.java:368)
	at io.micronaut.function.aws.runtime.AbstractMicronautLambdaRuntime.run(AbstractMicronautLambdaRuntime.java:164)
	at com.github.lbovolini.handler.FunctionLambdaRuntime.main(FunctionLambdaRuntime.java:29)
Caused by: io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type  [org.hibernate.SessionFactory]

Message: No classes have been predefined during the image build to load from bytecodes at runtime.
Path Taken: new HibernateConnectionConnectionOperations(HibernateConnectionOperations hibernateConnectionOperations) --> new HibernateConnectionConnectionOperations([HibernateConnectionOperations hibernateConnectionOperations]) --> new HibernateConnectionOperations([SessionFactory sessionFactory],Interceptor entityInterceptor) --> SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder([SessionFactoryBuilder sessionFactoryBuilder])
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2322)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2166)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1328)
	at io.micronaut.configuration.hibernate.jpa.conf.$SessionFactoryPerDataSourceFactory$BuildHibernateSessionFactoryBuilder4$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2166)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1328)
	at io.micronaut.data.hibernate.connection.$HibernateConnectionOperations$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.AbstractBeanResolutionContext.getBean(AbstractBeanResolutionContext.java:89)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBean(AbstractInitializableBeanDefinition.java:2166)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanForConstructorArgument(AbstractInitializableBeanDefinition.java:1328)
	at io.micronaut.data.hibernate.connection.$HibernateConnectionConnectionOperations$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2919)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2730)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1693)
	at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:840)
	at io.micronaut.data.connection.jdbc.advice.ContextualConnectionInterceptor.<init>(ContextualConnectionInterceptor.java:51)
	at io.micronaut.data.connection.jdbc.advice.$ContextualConnectionInterceptor$Definition.instantiate(Unknown Source)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2946)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistration(DefaultBeanContext.java:2893)
	at io.micronaut.context.DefaultBeanContext.addCandidateToList(DefaultBeanContext.java:3521)
	at io.micronaut.context.DefaultBeanContext.resolveBeanRegistrations(DefaultBeanContext.java:3473)
	at io.micronaut.context.DefaultBeanContext.getBeanRegistrations(DefaultBeanContext.java:3447)
	at io.micronaut.context.AbstractBeanResolutionContext.getBeanRegistrations(AbstractBeanResolutionContext.java:118)
	at io.micronaut.context.AbstractInitializableBeanDefinition.resolveBeanRegistrations(AbstractInitializableBeanDefinition.java:2322)
	at io.micronaut.context.AbstractInitializableBeanDefinition.getBeanRegistrationsForConstructorArgument(AbstractInitializableBeanDefinition.java:1500)
	at io.micronaut.data.connection.jdbc.advice.$ContextualConnection$Intercepted$Definition.instantiate(Unknown Source)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:159)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2277)
	at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:2289)
	at io.micronaut.context.DefaultBeanContext.createRegistration(DefaultBeanContext.java:3056)
	at io.micronaut.context.SingletonScope.getOrCreate(SingletonScope.java:81)
	at io.micronaut.context.DefaultBeanContext.findOrCreateSingletonBeanRegistration(DefaultBeanContext.java:2958)
	at io.micronaut.context.DefaultBeanContext.initializeEagerBean(DefaultBeanContext.java:2667)
	at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1973)
	... 14 more
Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: No classes have been predefined during the image build to load from bytecodes at runtime.
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:92)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.PredefinedClassesSupport.throwNoBytecodeClasses(PredefinedClassesSupport.java:76)
	at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.PredefinedClassesSupport.loadClass(PredefinedClassesSupport.java:130)
	at [email protected]/java.lang.ClassLoader.defineClass(ClassLoader.java:294)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher$DynamicClassLoader.invoker(JavaDispatcher.java:1383)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher$InvokerCreationAction.run(JavaDispatcher.java:459)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher$InvokerCreationAction.run(JavaDispatcher.java:452)
	at [email protected]/java.security.AccessController.executePrivileged(AccessController.java:171)
	at [email protected]/java.security.AccessController.doPrivileged(AccessController.java:318)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher.doPrivileged(JavaDispatcher.java)
	at net.bytebuddy.utility.dispatcher.JavaDispatcher.<clinit>(JavaDispatcher.java:87)
	at net.bytebuddy.description.type.TypeDescription$ForLoadedType.<clinit>(TypeDescription.java:8659)
	at net.bytebuddy.matcher.ElementMatchers.isFinalizer(ElementMatchers.java:1624)
	at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState$ProxyDefinitionHelpers.<init>(ByteBuddyState.java:296)
	at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState.<clinit>(ByteBuddyState.java:71)
	at org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl.<init>(BytecodeProviderImpl.java:124)
	at org.hibernate.bytecode.internal.bytebuddy.BytecodeProviderImpl.<init>(BytecodeProviderImpl.java:116)
	at org.hibernate.bytecode.internal.BytecodeProviderInitiator.buildBytecodeProvider(BytecodeProviderInitiator.java:59)
	at org.hibernate.bytecode.internal.BytecodeProviderInitiator.initiateService(BytecodeProviderInitiator.java:36)
	at org.hibernate.bytecode.internal.BytecodeProviderInitiator.initiateService(BytecodeProviderInitiator.java:22)
	at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:119)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:239)
	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:216)
	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:68)
	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.<init>(SessionFactoryBuilderImpl.java:45)
	at org.hibernate.boot.internal.DefaultSessionFactoryBuilderService.createSessionFactoryBuilder(DefaultSessionFactoryBuilderService.java:26)
	at org.hibernate.boot.internal.MetadataImpl.getSessionFactoryBuilder(MetadataImpl.java:170)
	at io.micronaut.configuration.hibernate.jpa.conf.AbstractHibernateFactory.buildHibernateSessionFactoryBuilder(AbstractHibernateFactory.java:96)
	at io.micronaut.configuration.hibernate.jpa.conf.SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder(SessionFactoryPerDataSourceFactory.java:100)
	at io.micronaut.configuration.hibernate.jpa.conf.$SessionFactoryPerDataSourceFactory$BuildHibernateSessionFactoryBuilder3$Definition.doInstantiate(Unknown Source)
	at io.micronaut.context.AbstractInitializableBeanDefinition.instantiate(AbstractInitializableBeanDefinition.java:774)
	at io.micronaut.context.BeanDefinitionDelegate.instantiate(BeanDefinitionDelegate.java:156)
	at io.micronaut.context.DefaultBeanContext.resolveByBeanFactory(DefaultBeanContext.java:2307)
	... 89 more
Request loop failed with: Bean definition [io.micronaut.data.connection.jdbc.advice.ContextualConnection$Intercepted] could not be loaded: Error instantiating bean of type  [org.hibernate.SessionFactory]

Message: No classes have been predefined during the image build to load from bytecodes at runtime.
Path Taken: new HibernateConnectionConnectionOperations(HibernateConnectionOperations hibernateConnectionOperations) --> new HibernateConnectionConnectionOperations([HibernateConnectionOperations hibernateConnectionOperations]) --> new HibernateConnectionOperations([SessionFactory sessionFactory],Interceptor entityInterceptor) --> SessionFactoryPerDataSourceFactory.buildHibernateSessionFactoryBuilder([SessionFactoryBuilder sessionFactoryBuilder])

@radovanradic
Copy link
Contributor

Don't know if last comment error is the same as OP error, but error No classes have been predefined during the image build to load from bytecodes at runtime. is usually fixed this way: micronaut-projects/micronaut-data#2462 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants