oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.39k stars 1.64k forks source link

No instances of sun.nio.ch.Iocp are allowed in the image heap as this class should be initialized at image runtime. #3248

Closed dragosroban closed 2 years ago

dragosroban commented 3 years ago

Hello,

I am dealing with this issue for 2 days now and I don't understand if it's on my side or it's actually a bug. Yesterday I managed to have a native-image out of a simple spring-boot aplication (hello world). Today I added just a simple h2 database with a JPA feature to be able to manipulate some data.

I had this issue before but somehow it worked suddelny after playing with this two commands: --rerun-class-initialization-at-runtime=sun.nio.ch.Iocp or --initialize-at-build-time=sun.nio.ch.Iocp

Now, after I added the h2/jpa features the error comes again an neither of these commands work anymore.

Here is the stack trace:

[com.springnative.demo.demoapplication:28968]     (clinit):   2,903.05 ms,  6.69 GB
[com.springnative.demo.demoapplication:28968]   (typeflow): 117,219.22 ms,  6.69 GB
[com.springnative.demo.demoapplication:28968]    (objects): 178,872.05 ms,  6.69 GB
[com.springnative.demo.demoapplication:28968]   (features):  19,354.82 ms,  6.69 GB
[com.springnative.demo.demoapplication:28968]     analysis: 328,027.07 ms,  6.69 GB
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of sun.nio.ch.Iocp 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=sun.nio.ch.Iocp.
Detailed message:
Trace:
        at parsing sun.nio.ch.WindowsAsynchronousFileChannelImpl.open(WindowsAsynchronousFileChannelImpl.java:105)
Call path from entry point to sun.nio.ch.WindowsAsynchronousFileChannelImpl.open(FileDescriptor, boolean, boolean, ThreadPool):
        at sun.nio.ch.WindowsAsynchronousFileChannelImpl.open(WindowsAsynchronousFileChannelImpl.java:104)
        at sun.nio.fs.WindowsChannelFactory.newAsynchronousFileChannel(WindowsChannelFactory.java:208)
        at sun.nio.fs.WindowsFileSystemProvider.newAsynchronousFileChannel(WindowsFileSystemProvider.java:140)
        at java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:248)
        at java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:301)
        at org.h2.store.fs.FileAsync.<init>(FilePathAsync.java:121)
        at org.h2.store.fs.FilePathAsync.open(FilePathAsync.java:53)
        at org.h2.store.fs.FilePathSplit.open(FilePathSplit.java:128)
        at org.h2.store.fs.FilePathSplit.newOutputStream(FilePathSplit.java:179)
        at org.h2.store.fs.FileUtils.newOutputStream(FileUtils.java:239)
        at org.h2.server.web.WebServer$TranslateThread.run(WebServer.java:853)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
        at com.oracle.svm.core.code.IsolateEnterStub.WindowsJavaThreads_osThreadStartRoutine_4bc03aa26f8cdfc97ebd54050e8ae4bce1023851(generated:0)

Am I missing something? If I have to post the pom.xml or any details please let me know.

oubidar-Abderrahim commented 3 years ago

Could you please provide the complete native-image command executed with all the flags?

Also, please describe your environment:

dragosroban commented 3 years ago

@oubidar-Abderrahim Hello. I tried with thwo GraalVM versions. One was 20.3.1.2 and one was 21.0.0.2 ( The behaviour was the same). Community Edition. JDK 8 (1.8.0_282). I am running Windows 10 Enterprise LTSC edition x64

Thank you for responding. I removed the H2 dependency and as well the code which was using it and it works. Seems to be something H2 specific which I heard that may be a problem with GraalVM but not sure now.

dragosroban commented 3 years ago

@oubidar-Abderrahim I am posting here the pom.xml in order to have a look. The procedure I am doing to get the native-image running is that I package my project first and after I run the native-image agent to scan the jar file and spit the ouput under src/main/resources/META-INF/native-image. All the scanned classes are in the files generated there. java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image -jar target\demo.jar

the pom.xml

<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.4.1</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.spring-native</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <main.class>com.springnative.demo.DemoApplication</main.class>
        <builder>paketobuildpacks/builder:tiny</builder>
        <java.version>1.8</java.version>
        <sring-graalvm.version>0.9.0-SNAPSHOT</sring-graalvm.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.experimental</groupId>
            <artifactId>spring-graalvm-native</artifactId>
            <version>${sring-graalvm.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.tomcat.embed</groupId>
                    <artifactId>tomcat-embed-core</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.tomcat.embed</groupId>
                    <artifactId>tomcat-embed-websocket</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.experimental</groupId>
            <artifactId>tomcat-embed-programmatic</artifactId>
            <version>9.0.38</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <finalName>
            ${project.artifactId}
        </finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>

        </plugins>
    </build>
    <profiles>
        <profile>
            <id>graal</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.graalvm.nativeimage</groupId>
                        <artifactId>native-image-maven-plugin</artifactId>
                        <version>21.0.0.2</version>
                        <configuration>
                            <buildArgs>
                                -J-Xmx16G
                                --enable-all-security-services
                                --allow-incomplete-classpath
                                --no-fallback
                                --verbose
                                -Dspring.graal.mode=initialization-only
                                --trace-class-initialization=sun.nio.ch.Iocp

                                --initialize-at-build-time=net.bytebuddy.matcher.StringMatcher
                                --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Super$Instantiation
                                --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$AbstractBase
                                --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$ForLoadedType
                                --initialize-at-build-time=sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder
                                --initialize-at-build-time=sun.instrument.InstrumentationImpl

                                --rerun-class-initialization-at-runtime=sun.nio.ch.Iocp

                            </buildArgs>
                            <mainClass>com.springnative.demo.DemoApplication</mainClass>
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>native-image</goal>
                                </goals>
                                <phase>package</phase>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-maven-plugin</artifactId>
                        <configuration>
                            <image>
                                <builder>${builder}</builder>
                                <env>
                                    <BP_BOOT_NATIVE_IMAGE>true</BP_BOOT_NATIVE_IMAGE>
                                    <BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS>
                                        -Dspring.spel.ignore=true
                                        -Dspring.native.remove-yaml-support=true
                                    </BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS>
                                </env>
                            </image>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <url>https://repo.maven.apache.org/maven2</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-release</id>
            <name>Spring release</name>
            <url>https://repo.spring.io/release</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-snapshot</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>spring-milestone</id>
            <name>Spring Milestone</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
    <repositories>
        <repository>
            <id>central</id>
            <url>https://repo.maven.apache.org/maven2</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-release</id>
            <name>Spring release</name>
            <url>https://repo.spring.io/release</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-snapshot</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>spring-milestone</id>
            <name>Spring Milestone</name>
            <url>https://repo.spring.io/milestone</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

</project>
dragosroban commented 3 years ago

This is the execution of the command that comes out of building the maven profile with the native plugin

'C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\boot\graal-sdk.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\boot\graaljs-scriptengine.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\library-support.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\experimental\spring-graalvm-native\0.9.0-SNAPSHOT\spring-graalvm-native-0.9.0-SNAPSHOT.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.4.1\spring-boot-starter-data-jpa-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.4.1\spring-boot-starter-aop-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.4.1\spring-boot-starter-jdbc-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jdbc\5.3.2\spring-jdbc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\hibernate-core\5.4.25.Final\hibernate-core-5.4.25.Final.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;C:\Users\dragos.roban\.m2\repository\org\javassist\javassist\3.27.0-GA\javassist-3.27.0-GA.jar;C:\Users\dragos.roban\.m2\repository\net\bytebuddy\byte-buddy\1.10.18\byte-buddy-1.10.18.jar;C:\Users\dragos.roban\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\jandex\2.1.3.Final\jandex-2.1.3.Final.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\dragos.roban\.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.3\jaxb-runtime-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\txw2\2.3.3\txw2-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.11\istack-commons-runtime-3.0.11.jar;C:\Users\dragos.roban\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-jpa\2.4.2\spring-data-jpa-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-commons\2.4.2\spring-data-commons-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-orm\5.3.2\spring-orm-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-context\5.3.2\spring-context-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-tx\5.3.2\spring-tx-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-beans\5.3.2\spring-beans-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aspects\5.3.2\spring-aspects-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-security\2.4.1\spring-boot-starter-security-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter\2.4.1\spring-boot-starter-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot\2.4.1\spring-boot-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.4.1\spring-boot-autoconfigure-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.4.1\spring-boot-starter-logging-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\dragos.roban\.m2\repository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aop\5.3.2\spring-aop-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-config\5.4.2\spring-security-config-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-web\5.4.2\spring-security-web-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-expression\5.3.2\spring-expression-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.4.1\spring-boot-starter-web-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.4.1\spring-boot-starter-json-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.3\jackson-core-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.3\jackson-datatype-jdk8-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson-datatype-jsr310-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter-names-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.4.1\spring-boot-starter-tomcat-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-web\5.3.2\spring-web-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-webmvc\5.3.2\spring-webmvc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\com\h2database\h2\1.4.200\h2-1.4.200.jar;C:\Users\dragos.roban\.m2\repository\org\apache\tomcat\experimental\tomcat-embed-programmatic\9.0.38\tomcat-embed-programmatic-9.0.38.jar;C:\Users\dragos.roban\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-core\5.3.2\spring-core-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jcl\5.3.2\spring-jcl-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-core\5.4.2\spring-security-core-5.4.2.jar;C:\CeBAS\Tasks\2366\demo\target\demo.jar' \
'-H:Path=C:\CeBAS\Tasks\2366\demo\target' \
-H:+ReportUnsupportedElementsAtRuntime \
-H:+InstallExitHandlers \
-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-programmatic/tomcat-reflection.json \
-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-programmatic/tomcat-resource.json \
-H:JNIConfigurationResources=META-INF/native-image/jni-config.json \
-H:ReflectionConfigurationResources=META-INF/native-image/reflect-config.json \
-H:ResourceConfigurationResources=META-INF/native-image/resource-config.json \
-H:DynamicProxyConfigurationResources=META-INF/native-image/proxy-config.json \
-H:SerializationConfigurationResources=META-INF/native-image/serialization-config.json \
-H:+EnableAllSecurityServices \
-H:+AllowIncompleteClasspath \
-H:FallbackThreshold=0 \
-H:ClassInitialization=net.bytebuddy.matcher.StringMatcher:build_time \
'-H:ClassInitialization=net.bytebuddy.implementation.bind.annotation.Super$Instantiation:build_time' \
'-H:ClassInitialization=net.bytebuddy.description.type.TypeDescription$AbstractBase:build_time' \
'-H:ClassInitialization=net.bytebuddy.description.type.TypeDescription$ForLoadedType:build_time' \
'-H:ClassInitialization=sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder:build_time' \
-H:ClassInitialization=sun.instrument.InstrumentationImpl:build_time \
-H:ClassInitialization=sun.nio.ch.Iocp:rerun \
-H:Class=com.springnative.demo.DemoApplication \
'-H:CLibraryPath=C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\clibraries\windows-amd64' \
-H:TraceClassInitialization=sun.nio.ch.Iocp \
-H:Name=com.springnative.demo.demoapplication \
oubidar-Abderrahim commented 3 years ago

@dragosroban could you try with the following commands:

                                -J-Xmx16G
                                --enable-all-security-services
                                --allow-incomplete-classpath
                                --no-fallback
                                --verbose
                                -Dspring.graal.mode=initialization-only
                                --trace-object-instantiation=sun.nio.ch.Iocp
                                --initialize-at-build-time=net.bytebuddy.matcher.StringMatcher
                                --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Super$Instantiation
                                --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$AbstractBase
                                --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$ForLoadedType
                                --initialize-at-build-time=sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder
                                --initialize-at-build-time=sun.instrument.InstrumentationImpl 
                                --initialize-at-run-time=org.h2.store.fs.FileUtils.newOutputStream

If this doesn't work, please post the complete stacktrace you received from using these flags:

It could be helpful if we have access to a reproducer, maybe you can share the code you're using in a repo?

dragosroban commented 3 years ago

Hhello @oubidar-Abderrahim.

It didn't worked unfortunately. The repo made public: https://github.com/dragosroban/spring-native Here is the full stack trace:

[INFO] --- native-image-maven-plugin:21.0.0.2:native-image (default) @ demo ---
[INFO] ImageClasspath Entry: org.springframework.experimental:spring-graalvm-native:jar:0.9.0-SNAPSHOT:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/experimental/spring-graalvm-native/0.9.0-SNAPSHOT/spring-graalvm-native-0.9.0-SNAPSHOT.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-data-jpa:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/2.4.1/spring-boot-starter-data-jpa-2.4.1.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-aop:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.4.1/spring-boot-starter-aop-2.4.1.jar)
[INFO] ImageClasspath Entry: org.aspectj:aspectjweaver:jar:1.9.6:compile (file:///C:/Users/dragos.roban/.m2/repository/org/aspectj/aspectjweaver/1.9.6/aspectjweaver-1.9.6.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-jdbc:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.4.1/spring-boot-starter-jdbc-2.4.1.jar)
[INFO] ImageClasspath Entry: com.zaxxer:HikariCP:jar:3.4.5:compile (file:///C:/Users/dragos.roban/.m2/repository/com/zaxxer/HikariCP/3.4.5/HikariCP-3.4.5.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-jdbc:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-jdbc/5.3.2/spring-jdbc-5.3.2.jar)
[INFO] ImageClasspath Entry: jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile (file:///C:/Users/dragos.roban/.m2/repository/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.jar)
[INFO] ImageClasspath Entry: jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile (file:///C:/Users/dragos.roban/.m2/repository/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.jar)
[INFO] ImageClasspath Entry: org.hibernate:hibernate-core:jar:5.4.25.Final:compile (file:///C:/Users/dragos.roban/.m2/repository/org/hibernate/hibernate-core/5.4.25.Final/hibernate-core-5.4.25.Final.jar)
[INFO] ImageClasspath Entry: org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile (file:///C:/Users/dragos.roban/.m2/repository/org/jboss/logging/jboss-logging/3.4.1.Final/jboss-logging-3.4.1.Final.jar)
[INFO] ImageClasspath Entry: org.javassist:javassist:jar:3.27.0-GA:compile (file:///C:/Users/dragos.roban/.m2/repository/org/javassist/javassist/3.27.0-GA/javassist-3.27.0-GA.jar)
[INFO] ImageClasspath Entry: net.bytebuddy:byte-buddy:jar:1.10.18:compile (file:///C:/Users/dragos.roban/.m2/repository/net/bytebuddy/byte-buddy/1.10.18/byte-buddy-1.10.18.jar)
[INFO] ImageClasspath Entry: antlr:antlr:jar:2.7.7:compile (file:///C:/Users/dragos.roban/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar)
[INFO] ImageClasspath Entry: org.jboss:jandex:jar:2.1.3.Final:compile (file:///C:/Users/dragos.roban/.m2/repository/org/jboss/jandex/2.1.3.Final/jandex-2.1.3.Final.jar)
[INFO] ImageClasspath Entry: com.fasterxml:classmate:jar:1.5.1:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar)
[INFO] ImageClasspath Entry: org.dom4j:dom4j:jar:2.1.3:compile (file:///C:/Users/dragos.roban/.m2/repository/org/dom4j/dom4j/2.1.3/dom4j-2.1.3.jar)
[INFO] ImageClasspath Entry: org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile (file:///C:/Users/dragos.roban/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.1.2.Final/hibernate-commons-annotations-5.1.2.Final.jar)
[INFO] ImageClasspath Entry: org.glassfish.jaxb:jaxb-runtime:jar:2.3.3:compile (file:///C:/Users/dragos.roban/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.3/jaxb-runtime-2.3.3.jar)
[INFO] ImageClasspath Entry: org.glassfish.jaxb:txw2:jar:2.3.3:compile (file:///C:/Users/dragos.roban/.m2/repository/org/glassfish/jaxb/txw2/2.3.3/txw2-2.3.3.jar)
[INFO] ImageClasspath Entry: com.sun.istack:istack-commons-runtime:jar:3.0.11:compile (file:///C:/Users/dragos.roban/.m2/repository/com/sun/istack/istack-commons-runtime/3.0.11/istack-commons-runtime-3.0.11.jar)
[INFO] ImageClasspath Entry: com.sun.activation:jakarta.activation:jar:1.2.2:runtime (file:///C:/Users/dragos.roban/.m2/repository/com/sun/activation/jakarta.activation/1.2.2/jakarta.activation-1.2.2.jar)
[INFO] ImageClasspath Entry: org.springframework.data:spring-data-jpa:jar:2.4.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/data/spring-data-jpa/2.4.2/spring-data-jpa-2.4.2.jar)
[INFO] ImageClasspath Entry: org.springframework.data:spring-data-commons:jar:2.4.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/data/spring-data-commons/2.4.2/spring-data-commons-2.4.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-orm:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-orm/5.3.2/spring-orm-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-context:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-context/5.3.2/spring-context-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-tx:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-tx/5.3.2/spring-tx-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-beans:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-beans/5.3.2/spring-beans-5.3.2.jar)
[INFO] ImageClasspath Entry: org.slf4j:slf4j-api:jar:1.7.30:compile (file:///C:/Users/dragos.roban/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-aspects:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-aspects/5.3.2/spring-aspects-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-security:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-security/2.4.1/spring-boot-starter-security-2.4.1.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter/2.4.1/spring-boot-starter-2.4.1.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot/2.4.1/spring-boot-2.4.1.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-autoconfigure:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.4.1/spring-boot-autoconfigure-2.4.1.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-logging:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.4.1/spring-boot-starter-logging-2.4.1.jar)
[INFO] ImageClasspath Entry: ch.qos.logback:logback-classic:jar:1.2.3:compile (file:///C:/Users/dragos.roban/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar)
[INFO] ImageClasspath Entry: ch.qos.logback:logback-core:jar:1.2.3:compile (file:///C:/Users/dragos.roban/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar)
[INFO] ImageClasspath Entry: org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile (file:///C:/Users/dragos.roban/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.13.3/log4j-to-slf4j-2.13.3.jar)
[INFO] ImageClasspath Entry: org.apache.logging.log4j:log4j-api:jar:2.13.3:compile (file:///C:/Users/dragos.roban/.m2/repository/org/apache/logging/log4j/log4j-api/2.13.3/log4j-api-2.13.3.jar)
[INFO] ImageClasspath Entry: org.slf4j:jul-to-slf4j:jar:1.7.30:compile (file:///C:/Users/dragos.roban/.m2/repository/org/slf4j/jul-to-slf4j/1.7.30/jul-to-slf4j-1.7.30.jar)
[INFO] ImageClasspath Entry: jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile (file:///C:/Users/dragos.roban/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar)
[INFO] ImageClasspath Entry: org.yaml:snakeyaml:jar:1.27:compile (file:///C:/Users/dragos.roban/.m2/repository/org/yaml/snakeyaml/1.27/snakeyaml-1.27.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-aop:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-aop/5.3.2/spring-aop-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework.security:spring-security-config:jar:5.4.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/security/spring-security-config/5.4.2/spring-security-config-5.4.2.jar)
[INFO] ImageClasspath Entry: org.springframework.security:spring-security-web:jar:5.4.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/security/spring-security-web/5.4.2/spring-security-web-5.4.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-expression:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-expression/5.3.2/spring-expression-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-web:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.4.1/spring-boot-starter-web-2.4.1.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-json:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.4.1/spring-boot-starter-json-2.4.1.jar)
[INFO] ImageClasspath Entry: com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.11.3/jackson-databind-2.11.3.jar)
[INFO] ImageClasspath Entry: com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.11.3/jackson-annotations-2.11.3.jar)
[INFO] ImageClasspath Entry: com.fasterxml.jackson.core:jackson-core:jar:2.11.3:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.11.3/jackson-core-2.11.3.jar)
[INFO] ImageClasspath Entry: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.3:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.11.3/jackson-datatype-jdk8-2.11.3.jar)
[INFO] ImageClasspath Entry: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.11.3/jackson-datatype-jsr310-2.11.3.jar)
[INFO] ImageClasspath Entry: com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.3:compile (file:///C:/Users/dragos.roban/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.11.3/jackson-module-parameter-names-2.11.3.jar)
[INFO] ImageClasspath Entry: org.springframework.boot:spring-boot-starter-tomcat:jar:2.4.1:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.4.1/spring-boot-starter-tomcat-2.4.1.jar)
[INFO] ImageClasspath Entry: org.glassfish:jakarta.el:jar:3.0.3:compile (file:///C:/Users/dragos.roban/.m2/repository/org/glassfish/jakarta.el/3.0.3/jakarta.el-3.0.3.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-web:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-web/5.3.2/spring-web-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-webmvc:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-webmvc/5.3.2/spring-webmvc-5.3.2.jar)
[INFO] ImageClasspath Entry: com.h2database:h2:jar:1.4.200:runtime (file:///C:/Users/dragos.roban/.m2/repository/com/h2database/h2/1.4.200/h2-1.4.200.jar)
[INFO] ImageClasspath Entry: org.apache.tomcat.experimental:tomcat-embed-programmatic:jar:9.0.38:compile (file:///C:/Users/dragos.roban/.m2/repository/org/apache/tomcat/experimental/tomcat-embed-programmatic/9.0.38/tomcat-embed-programmatic-9.0.38.jar)
[WARNING] jar:file:///C:/Users/dragos.roban/.m2/repository/org/apache/tomcat/experimental/tomcat-embed-programmatic/9.0.38/tomcat-embed-programmatic-9.0.38.jar!/META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-programmatic/native-image.properties does not match recommended META-INF/native-image/${groupId}/${artifactId}/native-image.properties layout.
[INFO] ImageClasspath Entry: jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile (file:///C:/Users/dragos.roban/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.3/jakarta.xml.bind-api-2.3.3.jar)
[INFO] ImageClasspath Entry: jakarta.activation:jakarta.activation-api:jar:1.2.2:compile (file:///C:/Users/dragos.roban/.m2/repository/jakarta/activation/jakarta.activation-api/1.2.2/jakarta.activation-api-1.2.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-core:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-core/5.3.2/spring-core-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework:spring-jcl:jar:5.3.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/spring-jcl/5.3.2/spring-jcl-5.3.2.jar)
[INFO] ImageClasspath Entry: org.springframework.security:spring-security-core:jar:5.4.2:compile (file:///C:/Users/dragos.roban/.m2/repository/org/springframework/security/spring-security-core/5.4.2/spring-security-core-5.4.2.jar)
[INFO] ImageClasspath Entry: com.spring-native:demo:jar:0.0.1-SNAPSHOT (file:///C:/CeBAS/Tasks/2366/demo/target/demo.jar)
[INFO] Executing: C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\bin\native-image.exe -cp C:\Users\dragos.roban\.m2\repository\org\springframework\experimental\spring-graalvm-native\0.9.0-SNAPSHOT\spring-graalvm-native-0.9.0-SNAPSHOT.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.4.1\spring-boot-starter-data-jpa-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.4.1\spring-boot-starter-aop-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.4.1\spring-boot-starter-jdbc-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jdbc\5.3.2\spring-jdbc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\hibernate-core\5.4.25.Final\hibernate-core-5.4.25.Final.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;C:\Users\dragos.roban\.m2\repository\org\javassist\javassist\3.27.0-GA\javassist-3.27.0-GA.jar;C:\Users\dragos.roban\.m2\repository\net\bytebuddy\byte-buddy\1.10.18\byte-buddy-1.10.18.jar;C:\Users\dragos.roban\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\jandex\2.1.3.Final\jandex-2.1.3.Final.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\dragos.roban\.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.3\jaxb-runtime-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\txw2\2.3.3\txw2-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.11\istack-commons-runtime-3.0.11.jar;C:\Users\dragos.roban\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-jpa\2.4.2\spring-data-jpa-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-commons\2.4.2\spring-data-commons-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-orm\5.3.2\spring-orm-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-context\5.3.2\spring-context-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-tx\5.3.2\spring-tx-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-beans\5.3.2\spring-beans-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aspects\5.3.2\spring-aspects-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-security\2.4.1\spring-boot-starter-security-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter\2.4.1\spring-boot-starter-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot\2.4.1\spring-boot-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.4.1\spring-boot-autoconfigure-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.4.1\spring-boot-starter-logging-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\dragos.roban\.m2\repository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aop\5.3.2\spring-aop-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-config\5.4.2\spring-security-config-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-web\5.4.2\spring-security-web-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-expression\5.3.2\spring-expression-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.4.1\spring-boot-starter-web-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.4.1\spring-boot-starter-json-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.3\jackson-core-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.3\jackson-datatype-jdk8-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson-datatype-jsr310-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter-names-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.4.1\spring-boot-starter-tomcat-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-web\5.3.2\spring-web-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-webmvc\5.3.2\spring-webmvc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\com\h2database\h2\1.4.200\h2-1.4.200.jar;C:\Users\dragos.roban\.m2\repository\org\apache\tomcat\experimental\tomcat-embed-programmatic\9.0.38\tomcat-embed-programmatic-9.0.38.jar;C:\Users\dragos.roban\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-core\5.3.2\spring-core-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jcl\5.3.2\spring-jcl-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-core\5.4.2\spring-security-core-5.4.2.jar;C:\CeBAS\Tasks\2366\demo\target\demo.jar -J-Xmx16G --enable-all-security-services --allow-incomplete-classpath --no-fallback --verbose -Dspring.graal.mode=initialization-only --trace-object-instantiation=sun.nio.ch.Iocp --initialize-at-build-time=net.bytebuddy.matcher.StringMatcher --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Super$Instantiation --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$AbstractBase --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$ForLoadedType --initialize-at-build-time=sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder --initialize-at-build-time=sun.instrument.InstrumentationImpl --initialize-at-run-time=org.h2.store.fs.FileUtils.newOutputStream -H:Class=com.springnative.demo.DemoApplication
Warning: Ignoring server-mode native-image argument --no-server.
Executing [
'C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\bin\java.exe' \
-XX:+UseParallelGC \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-Dtruffle.TrustAllTruffleRuntimeProviders=true \
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=true \
-Dgraalvm.locatorDisabled=true \
-d64 \
-XX:-UseJVMCIClassLoader \
-XX:+UseJVMCINativeLibrary \
-Xss10m \
-Xms1g \
-Xmx13626048512 \
-Duser.country=US \
-Duser.language=en \
-Dorg.graalvm.version=21.0.0.2 \
-Dorg.graalvm.config= \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
'-Djvmci.class.path.append=C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\jvmci\graal.jar' \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-Xmx16G \
-Dspring.graal.mode=initialization-only \
-agentlib:native-image-diagnostics-agent=o=sun.nio.ch.Iocp \
'-javaagent:C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\builder\svm.jar=o=sun.nio.ch.Iocp' \
'-Xbootclasspath/a:C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\boot\graal-sdk.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\boot\graaljs-scriptengine.jar' \
-cp \
'C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\builder\objectfile.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\builder\pointsto.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\builder\svm.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\jvmci\graal-management.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\jvmci\graal-truffle-jfr-impl.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\jvmci\graal.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\jvmci\jvmci-api.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\jvmci\jvmci-hotspot.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\resources.jar' \
com.oracle.svm.hosted.NativeImageGeneratorRunner \
-imagecp \
'C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\boot\graal-sdk.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\boot\graaljs-scriptengine.jar;C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\library-support.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\experimental\spring-graalvm-native\0.9.0-SNAPSHOT\spring-graalvm-native-0.9.0-SNAPSHOT.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.4.1\spring-boot-starter-data-jpa-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.4.1\spring-boot-starter-aop-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.4.1\spring-boot-starter-jdbc-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jdbc\5.3.2\spring-jdbc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\hibernate-core\5.4.25.Final\hibernate-core-5.4.25.Final.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;C:\Users\dragos.roban\.m2\repository\org\javassist\javassist\3.27.0-GA\javassist-3.27.0-GA.jar;C:\Users\dragos.roban\.m2\repository\net\bytebuddy\byte-buddy\1.10.18\byte-buddy-1.10.18.jar;C:\Users\dragos.roban\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\jandex\2.1.3.Final\jandex-2.1.3.Final.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\dragos.roban\.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.3\jaxb-runtime-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\txw2\2.3.3\txw2-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.11\istack-commons-runtime-3.0.11.jar;C:\Users\dragos.roban\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-jpa\2.4.2\spring-data-jpa-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-commons\2.4.2\spring-data-commons-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-orm\5.3.2\spring-orm-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-context\5.3.2\spring-context-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-tx\5.3.2\spring-tx-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-beans\5.3.2\spring-beans-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aspects\5.3.2\spring-aspects-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-security\2.4.1\spring-boot-starter-security-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter\2.4.1\spring-boot-starter-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot\2.4.1\spring-boot-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.4.1\spring-boot-autoconfigure-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.4.1\spring-boot-starter-logging-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\dragos.roban\.m2\repository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aop\5.3.2\spring-aop-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-config\5.4.2\spring-security-config-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-web\5.4.2\spring-security-web-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-expression\5.3.2\spring-expression-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.4.1\spring-boot-starter-web-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.4.1\spring-boot-starter-json-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.3\jackson-core-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.3\jackson-datatype-jdk8-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson-datatype-jsr310-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter-names-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.4.1\spring-boot-starter-tomcat-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-web\5.3.2\spring-web-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-webmvc\5.3.2\spring-webmvc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\com\h2database\h2\1.4.200\h2-1.4.200.jar;C:\Users\dragos.roban\.m2\repository\org\apache\tomcat\experimental\tomcat-embed-programmatic\9.0.38\tomcat-embed-programmatic-9.0.38.jar;C:\Users\dragos.roban\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-core\5.3.2\spring-core-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jcl\5.3.2\spring-jcl-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-core\5.4.2\spring-security-core-5.4.2.jar;C:\CeBAS\Tasks\2366\demo\target\demo.jar' \
'-H:Path=C:\CeBAS\Tasks\2366\demo\target' \
-H:+ReportUnsupportedElementsAtRuntime \
-H:+InstallExitHandlers \
-H:ReflectionConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-programmatic/tomcat-reflection.json \
-H:ResourceConfigurationResources=META-INF/native-image/org.apache.tomcat.embed/tomcat-embed-programmatic/tomcat-resource.json \
-H:JNIConfigurationResources=META-INF/native-image/jni-config.json \
-H:ReflectionConfigurationResources=META-INF/native-image/reflect-config.json \
-H:ResourceConfigurationResources=META-INF/native-image/resource-config.json \
-H:DynamicProxyConfigurationResources=META-INF/native-image/proxy-config.json \
-H:SerializationConfigurationResources=META-INF/native-image/serialization-config.json \
-H:+EnableAllSecurityServices \
-H:+AllowIncompleteClasspath \
-H:FallbackThreshold=0 \
-H:ClassInitialization=net.bytebuddy.matcher.StringMatcher:build_time \
'-H:ClassInitialization=net.bytebuddy.implementation.bind.annotation.Super$Instantiation:build_time' \
'-H:ClassInitialization=net.bytebuddy.description.type.TypeDescription$AbstractBase:build_time' \
'-H:ClassInitialization=net.bytebuddy.description.type.TypeDescription$ForLoadedType:build_time' \
'-H:ClassInitialization=sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder:build_time' \
-H:ClassInitialization=sun.instrument.InstrumentationImpl:build_time \
-H:ClassInitialization=org.h2.store.fs.FileUtils.newOutputStream:run_time \
-H:Class=com.springnative.demo.DemoApplication \
'-H:CLibraryPath=C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\clibraries\windows-amd64' \
-H:TraceObjectInstantiation=sun.nio.ch.Iocp \
-H:Name=com.springnative.demo.demoapplication \

]
[com.springnative.demo.demoapplication:12848]    classlist:   9,182.65 ms,  1.88 GB
[com.springnative.demo.demoapplication:12848]        (cap):   5,823.37 ms,  2.37 GB
WARNING: Could not resolve com.springnative.security.SecurityConfig$$EnhancerBySpringCGLIB$$6d514949 for reflection configuration. Reason: java.lang.ClassNotFoundException: com.springnative.security.SecurityConfig$$EnhancerBySpringCGLIB$$6d514949.
WARNING: Method com.sun.proxy.$Proxy72.addNamedEntityGraph(String, EntityGraph) not found.
WARNING: Method com.sun.proxy.$Proxy72.addNamedQuery(String, Query) not found.
WARNING: Method com.sun.proxy.$Proxy72.close() not found.
WARNING: Method com.sun.proxy.$Proxy72.containsFetchProfileDefinition(String) not found.
WARNING: Method com.sun.proxy.$Proxy72.createEntityManager() not found.
WARNING: Method com.sun.proxy.$Proxy72.createEntityManager(Map) not found.
WARNING: Method com.sun.proxy.$Proxy72.createEntityManager(SynchronizationType) not found.
WARNING: Method com.sun.proxy.$Proxy72.createEntityManager(SynchronizationType, Map) not found.
WARNING: Method com.sun.proxy.$Proxy72.createNativeEntityManager(Map) not found.
WARNING: Method com.sun.proxy.$Proxy72.findEntityGraphsByType(Class) not found.
WARNING: Method com.sun.proxy.$Proxy72.getAllClassMetadata() not found.
WARNING: Method com.sun.proxy.$Proxy72.getAllCollectionMetadata() not found.
WARNING: Method com.sun.proxy.$Proxy72.getBeanClassLoader() not found.
WARNING: Method com.sun.proxy.$Proxy72.getCache() not found.
WARNING: Method com.sun.proxy.$Proxy72.getClassMetadata(Class) not found.
WARNING: Method com.sun.proxy.$Proxy72.getClassMetadata(String) not found.
WARNING: Method com.sun.proxy.$Proxy72.getCollectionMetadata(String) not found.
WARNING: Method com.sun.proxy.$Proxy72.getCriteriaBuilder() not found.
WARNING: Method com.sun.proxy.$Proxy72.getCurrentSession() not found.
WARNING: Method com.sun.proxy.$Proxy72.getDataSource() not found.
WARNING: Method com.sun.proxy.$Proxy72.getDefinedFilterNames() not found.
WARNING: Method com.sun.proxy.$Proxy72.getEntityManagerFactoryName() not found.
WARNING: Method com.sun.proxy.$Proxy72.getEntityManagerInterface() not found.
WARNING: Method com.sun.proxy.$Proxy72.getEntityTypeByName(String) not found.
WARNING: Method com.sun.proxy.$Proxy72.getFilterDefinition(String) not found.
WARNING: Method com.sun.proxy.$Proxy72.getJpaDialect() not found.
WARNING: Method com.sun.proxy.$Proxy72.getMetamodel() not found.
WARNING: Method com.sun.proxy.$Proxy72.getNativeEntityManagerFactory() not found.
WARNING: Method com.sun.proxy.$Proxy72.getPersistenceProvider() not found.
WARNING: Method com.sun.proxy.$Proxy72.getPersistenceUnitInfo() not found.
WARNING: Method com.sun.proxy.$Proxy72.getPersistenceUnitName() not found.
WARNING: Method com.sun.proxy.$Proxy72.getPersistenceUnitUtil() not found.
WARNING: Method com.sun.proxy.$Proxy72.getProperties() not found.
WARNING: Method com.sun.proxy.$Proxy72.getReference() not found.
WARNING: Method com.sun.proxy.$Proxy72.getSessionFactory() not found.
WARNING: Method com.sun.proxy.$Proxy72.getSessionFactoryOptions() not found.
WARNING: Method com.sun.proxy.$Proxy72.getStatistics() not found.
WARNING: Method com.sun.proxy.$Proxy72.getTypeHelper() not found.
WARNING: Method com.sun.proxy.$Proxy72.isClosed() not found.
WARNING: Method com.sun.proxy.$Proxy72.isOpen() not found.
WARNING: Method com.sun.proxy.$Proxy72.openSession() not found.
WARNING: Method com.sun.proxy.$Proxy72.openStatelessSession() not found.
WARNING: Method com.sun.proxy.$Proxy72.openStatelessSession(Connection) not found.
WARNING: Method com.sun.proxy.$Proxy72.unwrap(Class) not found.
WARNING: Method com.sun.proxy.$Proxy72.withOptions() not found.
WARNING: Method com.sun.proxy.$Proxy72.withStatelessOptions() not found.
WARNING: Could not register org.apache.catalina.core.ApplicationContextFacade: allDeclaredMethods for reflection. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not resolve org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration$$Lambda$732/1201454821 for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration$$Lambda$732/1201454821.
WARNING: Could not resolve org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration$$Lambda$733/2139788441 for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration$$Lambda$733/2139788441.
WARNING: Could not resolve org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration$HikariPoolDataSourceMetadataProviderConfiguration$$Lambda$545/243194708 for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.autoconfigure.jdbc.metadata.DataSourcePoolMetadataProvidersConfiguration$HikariPoolDataSourceMetadataProviderConfiguration$$Lambda$545/243194708.
WARNING: Could not resolve org.springframework.boot.loader.LaunchedURLClassLoader for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.loader.LaunchedURLClassLoader.
WARNING: Could not resolve org.springframework.boot.validation.beanvalidation.MethodValidationExcludeFilter$$Lambda$738/1390913202 for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.boot.validation.beanvalidation.MethodValidationExcludeFilter$$Lambda$738/1390913202.
WARNING: Could not resolve org.springframework.cglib.core.MethodWrapper$MethodWrapperKey$$KeyFactoryByCGLIB$$552be97a for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.cglib.core.MethodWrapper$MethodWrapperKey$$KeyFactoryByCGLIB$$552be97a.
WARNING: Could not resolve org.springframework.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$4ce19e8f for reflection configuration. Reason: java.lang.ClassNotFoundException: org.springframework.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$4ce19e8f.
Took: 35ms to find META-INF/native-image/build-time-computed-config.properties returning 0 entries: []
   _____                     _                             _   __           __     _
  / ___/    ____    _____   (_)   ____    ____ _          / | / /  ____ _  / /_   (_) _   __  ___
  \__ \    / __ \  / ___/  / /   / __ \  / __ `/         /  |/ /  / __ `/ / __/  / / | | / / / _ \
 ___/ /   / /_/ / / /     / /   / / / / / /_/ /         / /|  /  / /_/ / / /_   / /  | |/ / /  __/
/____/   / .___/ /_/     /_/   /_/ /_/  \__, /         /_/ |_/   \__,_/  \__/  /_/   |___/  \___/
        /_/                            /____/
Removing unused configurations
Verification turned on
Removing XML support
Removing JMX support
Use -Dspring.native.verbose=true on native-image call to see more detailed information from the feature
feature operating mode: agent (spring init active? false)
Attempting proxy registration of #12 proxies
Skipped registration of #3 statically declared proxies - relevant types not on classpath
[com.springnative.demo.demoapplication:12848]        setup:  10,150.41 ms,  2.37 GB
Configuring initialization time for specific types and packages:
Warning: class initialization of class org.springframework.boot.validation.MessageInterpolatorFactory failed with exception java.lang.NoClassDefFoundError: javax/validation/ValidationException. This class will be initialized at run time because option --allow-incomplete-classpath is used for image building. Use the option --initialize-at-run-time=org.springframework.boot.validation.MessageInterpolatorFactory to explicitly request delayed initialization of this class.
[verification] The type org.springframework.web.servlet.config.annotation.ResourceChainRegistration is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.webjars.WebJarAssetLocator]
[verification] The type org.springframework.transaction.annotation.AnnotationTransactionAttributeSource is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.transaction.Transactional, javax.ejb.TransactionAttribute]
[verification] The type org.springframework.data.repository.util.QueryExecutionConverters is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [io.vavr.control.Try]
[verification] The type org.springframework.data.repository.core.support.ReactiveRepositoryFactorySupport$RxJavaOneConversionSetup is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.reactivestreams.Publisher]
[verification] The type org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.instrument.InstrumentationSavingAgent]
[verification] The type org.springframework.web.servlet.config.ResourcesBeanDefinitionParser is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.webjars.WebJarAssetLocator]
[verification] The type org.springframework.web.servlet.function.DefaultAsyncServerResponse is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.reactivestreams.Publisher]
[verification] The type org.springframework.web.servlet.view.InternalResourceViewResolver is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.servlet.jsp.jstl.core.Config]
[verification] The type org.springframework.data.jpa.util.BeanDefinitionUtils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.jndi.JndiObjectFactoryBean]
[verification] The type org.springframework.context.annotation.AnnotationConfigUtils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.annotation.Resource, javax.persistence.EntityManagerFactory, org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor]
[verification] The type org.springframework.web.servlet.config.AnnotationDrivenBeanDefinitionParser is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.validation.Validator, com.rometools.rome.feed.WireFeed, javax.xml.bind.Binder, com.fasterxml.jackson.databind.ObjectMapper, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.dataformat.xml.XmlMapper, com.fasterxml.jackson.dataformat.smile.SmileFactory, com.fasterxml.jackson.dataformat.cbor.CBORFactory, com.google.gson.Gson]
[verification] The type org.springframework.security.core.parameters.DefaultSecurityParameterNameDiscoverer is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.data.repository.query.Param]
[verification] The type org.springframework.cache.config.AnnotationDrivenCacheBeanDefinitionParser is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.cache.Cache, org.springframework.cache.jcache.interceptor.DefaultJCacheOperationSource]
[verification] The type org.springframework.web.context.request.RequestContextHolder is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.faces.context.FacesContext]
[verification] The type org.springframework.core.KotlinDetector is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [kotlin.reflect.full.KClasses]
[verification] The type org.springframework.data.jpa.repository.query.Jpa21Utils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.persistence.NamedEntityGraph]
[verification] The type org.springframework.data.querydsl.QuerydslUtils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [com.querydsl.core.types.Predicate]
[verification] The type org.springframework.web.servlet.support.RequestContext is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.servlet.jsp.jstl.core.Config]
[verification] The type org.springframework.transaction.interceptor.TransactionAspectSupport is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [io.vavr.control.Try, org.reactivestreams.Publisher]
[verification] The type org.springframework.transaction.config.JtaTransactionManagerFactoryBean is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [weblogic.transaction.UserTransaction, com.ibm.wsspi.uow.UOWManager]
[verification] The type org.springframework.transaction.support.TransactionSynchronizationUtils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.aop.scope.ScopedObject]
[verification] The type org.springframework.boot.autoconfigure.web.format.WebConversionService is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.money.MonetaryAmount]
[verification] The type org.springframework.data.repository.util.ReactiveWrappers is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [reactor.core.publisher.Flux, rx.Observable, rx.RxReactiveStreams, io.reactivex.Flowable, io.reactivex.rxjava3.core.Flowable, kotlinx.coroutines.reactor.MonoKt]
[verification] The type org.springframework.web.context.support.WebApplicationContextUtils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.faces.context.FacesContext]
[verification] The type org.springframework.data.util.NullableWrapperConverters is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [com.google.common.base.Optional, scala.Option, io.vavr.control.Option]
[verification] The type org.springframework.data.convert.ThreeTenBackPortConverters is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.threeten.bp.LocalDateTime]
[verification] The type org.springframework.http.codec.xml.XmlEventDecoder is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [com.fasterxml.aalto.AsyncXMLStreamReader]
[verification] The type org.springframework.context.event.ApplicationListenerMethodAdapter is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.reactivestreams.Publisher]
[verification] The type org.springframework.boot.jdbc.DataSourceUnwrapper is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.jdbc.datasource.DelegatingDataSource]
[verification] The type org.springframework.security.config.annotation.web.reactive.WebFluxSecurityConfiguration is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository]
[verification] The type org.springframework.data.convert.JodaTimeConverters is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.joda.time.LocalDate]
[verification] The type org.springframework.context.config.MBeanServerBeanDefinitionParser is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [weblogic.management.Helper, com.ibm.websphere.management.AdminServiceFactory]
[verification] The type org.springframework.format.support.DefaultFormattingConversionService is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.money.MonetaryAmount, org.joda.time.YearMonth]
[verification] The type org.springframework.data.auditing.AnnotationAuditingMetadata is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [java.time.Clock]
[verification] The type org.springframework.cache.annotation.CachingConfigurationSelector is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [javax.cache.Cache, org.springframework.cache.jcache.config.ProxyJCacheConfiguration]
[verification] The type org.springframework.web.servlet.view.tiles3.TilesConfigurer is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.apache.tiles.el.ELAttributeEvaluator]
[verification] The type org.springframework.transaction.reactive.TransactionSynchronizationUtils is making isPresent() calls in the static initializer, could be worth specifying build-time-initialization. It appears to be making isPresent() checks on [org.springframework.aop.scope.ScopedObject]
Registering resources - #0 bundles
Processing META-INF/spring.factories files...
Took: 35ms to find META-INF/spring.factories returning 6 entries: [/C:/Users/dragos.roban/.m2/repository/org/springframework/experimental/spring-graalvm-native/0.9.0-SNAPSHOT/spring-graalvm-native-0.9.0-SNAPSHOT.jar!META-INF/spring.factories, /C:/Users/dragos.roban/.m2/repository/org/springframework/data/spring-data-commons/2.4.2/spring-data-commons-2.4.2.jar!META-INF/spring.factories, /C:/Users/dragos.roban/.m2/repository/org/springframework/spring-beans/5.3.2/spring-beans-5.3.2.jar!META-INF/spring.factories, /C:/Users/dragos.roban/.m2/repository/org/springframework/data/spring-data-jpa/2.4.2/spring-data-jpa-2.4.2.jar!META-INF/spring.factories, /C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.4.1/spring-boot-autoconfigure-2.4.1.jar!META-INF/spring.factories, /C:/Users/dragos.roban/.m2/repository/org/springframework/boot/spring-boot/2.4.1/spring-boot-2.4.1.jar!META-INF/spring.factories]
Processing spring.factories - EnableAutoConfiguration lists #130 configurations
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Netty because HttpServer not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Undertow because Undertow not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Jetty because WebAppContext not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Netty because HttpServer not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Undertow because Undertow not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Jetty because WebAppContext not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Undertow because Undertow not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Netty because HttpServer not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Jetty because WebAppContext not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Netty because HttpServer not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Undertow because Undertow not around
Reducing access on org.springframework.boot.autoconfigure.web.ServerProperties$Jetty because WebAppContext not around
Excluding 94 auto-configurations from spring.factories file
Took: 34ms to find META-INF/spring.components returning 0 entries: []
Found no META-INF/spring.components -> synthesizing one...
Computed spring.components is
vvv
com.springnative.rest.RestNative=org.springframework.stereotype.Component
com.springnative.service.StudentService=org.springframework.stereotype.Component
com.springnative.demo.DemoApplication=org.springframework.stereotype.Component
com.springnative.repository.StudentRepository=org.springframework.data.repository.Repository
com.springnative.security.SecurityConfig=org.springframework.stereotype.Component
com.springnative.model.Student=javax.persistence.Entity,javax.persistence.Table
^^^
hybrid: Processing controller com.springnative.rest.RestNative
Adding dynamic proxy for [org.springframework.web.bind.annotation.PathVariable, org.springframework.core.annotation.SynthesizedAnnotation]
hybrid: adding access to Type:com/springnative/demo/DemoApplication since @SpringBootApplication
WARNING: Could not register reflection metadata for org.springframework.http.ReactiveHttpInputMessage. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Flux.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/neo4j/driver/Driver.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.AtomikosJtaConfiguration. Reason: java.lang.NoClassDefFoundError: com/atomikos/icatch/config/UserTransactionService.
WARNING: Could not register reflection metadata for javax.servlet.ServletContext. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat. Reason: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource.
WARNING: Could not register reflection metadata for org.springframework.transaction.ReactiveTransactionManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.apache.catalina.core.ApplicationContextFacade. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration. Reason: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder.
WARNING: Could not register reflection metadata for org.springframework.http.server.reactive.HttpHandler. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/json/bind/Jsonb.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp2. Reason: java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource.
WARNING: Could not register reflection metadata for org.springframework.security.authentication.ReactiveAuthenticationManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.security.SecurityDataConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.
WARNING: Could not register reflection metadata for org.springframework.web.multipart.commons.CommonsMultipartResolver. Reason: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$OracleUcp. Reason: java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceImpl.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration. Reason: java.lang.NoClassDefFoundError: bitronix/tm/Configuration.
12:27:56.675 [ForkJoinPool-2-worker-1] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider
WARNING: Could not register reflection metadata for org.springframework.http.ReactiveHttpInputMessage. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Flux.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/neo4j/driver/Driver.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.AtomikosJtaConfiguration. Reason: java.lang.NoClassDefFoundError: com/atomikos/icatch/config/UserTransactionService.
WARNING: Could not register reflection metadata for javax.servlet.ServletContext. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat. Reason: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource.
WARNING: Could not register reflection metadata for org.springframework.transaction.ReactiveTransactionManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.apache.catalina.core.ApplicationContextFacade. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration. Reason: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder.
WARNING: Could not register reflection metadata for org.springframework.http.server.reactive.HttpHandler. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/json/bind/Jsonb.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp2. Reason: java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource.
WARNING: Could not register reflection metadata for org.springframework.security.authentication.ReactiveAuthenticationManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.security.SecurityDataConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.
WARNING: Could not register reflection metadata for org.springframework.web.multipart.commons.CommonsMultipartResolver. Reason: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$OracleUcp. Reason: java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceImpl.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration. Reason: java.lang.NoClassDefFoundError: bitronix/tm/Configuration.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/neo4j/driver/Driver.
WARNING: Could not register reflection metadata for org.springframework.http.server.reactive.HttpHandler. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/json/bind/Jsonb.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp2. Reason: java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource.
WARNING: Could not register reflection metadata for org.springframework.security.authentication.ReactiveAuthenticationManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.security.SecurityDataConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration. Reason: java.lang.NoClassDefFoundError: bitronix/tm/Configuration.
WARNING: Could not register reflection metadata for org.springframework.http.ReactiveHttpInputMessage. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Flux.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.AtomikosJtaConfiguration. Reason: java.lang.NoClassDefFoundError: com/atomikos/icatch/config/UserTransactionService.
WARNING: Could not register reflection metadata for javax.servlet.ServletContext. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat. Reason: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource.
WARNING: Could not register reflection metadata for org.springframework.transaction.ReactiveTransactionManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.apache.catalina.core.ApplicationContextFacade. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration. Reason: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder.
WARNING: Could not register reflection metadata for org.springframework.web.multipart.commons.CommonsMultipartResolver. Reason: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$OracleUcp. Reason: java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceImpl.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/neo4j/driver/Driver.
WARNING: Could not register reflection metadata for org.springframework.http.server.reactive.HttpHandler. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/json/bind/Jsonb.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp2. Reason: java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource.
WARNING: Could not register reflection metadata for org.springframework.security.authentication.ReactiveAuthenticationManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.security.SecurityDataConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration. Reason: java.lang.NoClassDefFoundError: bitronix/tm/Configuration.
WARNING: Could not register reflection metadata for org.springframework.http.ReactiveHttpInputMessage. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Flux.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.AtomikosJtaConfiguration. Reason: java.lang.NoClassDefFoundError: com/atomikos/icatch/config/UserTransactionService.
WARNING: Could not register reflection metadata for javax.servlet.ServletContext. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat. Reason: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource.
WARNING: Could not register reflection metadata for org.springframework.transaction.ReactiveTransactionManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.apache.catalina.core.ApplicationContextFacade. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration. Reason: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder.
WARNING: Could not register reflection metadata for org.springframework.web.multipart.commons.CommonsMultipartResolver. Reason: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$OracleUcp. Reason: java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceImpl.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/neo4j/driver/Driver.
WARNING: Could not register reflection metadata for org.springframework.http.server.reactive.HttpHandler. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/json/bind/Jsonb.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp2. Reason: java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource.
WARNING: Could not register reflection metadata for org.springframework.security.authentication.ReactiveAuthenticationManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.security.SecurityDataConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration. Reason: java.lang.NoClassDefFoundError: bitronix/tm/Configuration.
WARNING: Could not register reflection metadata for org.springframework.http.ReactiveHttpInputMessage. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Flux.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.AtomikosJtaConfiguration. Reason: java.lang.NoClassDefFoundError: com/atomikos/icatch/config/UserTransactionService.
WARNING: Could not register reflection metadata for javax.servlet.ServletContext. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat. Reason: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource.
WARNING: Could not register reflection metadata for org.springframework.transaction.ReactiveTransactionManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.apache.catalina.core.ApplicationContextFacade. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration. Reason: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder.
WARNING: Could not register reflection metadata for org.springframework.web.multipart.commons.CommonsMultipartResolver. Reason: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$OracleUcp. Reason: java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceImpl.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/neo4j/driver/Driver.
WARNING: Could not register reflection metadata for org.springframework.http.server.reactive.HttpHandler. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jsonb.JsonbAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/json/bind/Jsonb.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Dbcp2. Reason: java.lang.NoClassDefFoundError: org/apache/commons/dbcp2/BasicDataSource.
WARNING: Could not register reflection metadata for org.springframework.security.authentication.ReactiveAuthenticationManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.security.SecurityDataConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/security/data/repository/query/SecurityEvaluationContextExtension.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration. Reason: java.lang.NoClassDefFoundError: bitronix/tm/Configuration.
WARNING: Could not register reflection metadata for org.springframework.http.ReactiveHttpInputMessage. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Flux.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.transaction.jta.AtomikosJtaConfiguration. Reason: java.lang.NoClassDefFoundError: com/atomikos/icatch/config/UserTransactionService.
WARNING: Could not register reflection metadata for javax.servlet.ServletContext. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration. Reason: java.lang.NoClassDefFoundError: javax/validation/ValidatorFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Tomcat. Reason: java.lang.NoClassDefFoundError: org/apache/tomcat/jdbc/pool/DataSource.
WARNING: Could not register reflection metadata for org.springframework.transaction.ReactiveTransactionManager. Reason: java.lang.NoClassDefFoundError: reactor/core/publisher/Mono.
WARNING: Could not register reflection metadata for org.apache.catalina.core.ApplicationContextFacade. Reason: java.lang.NoClassDefFoundError: javax/servlet/descriptor/JspConfigDescriptor.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration. Reason: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder.
WARNING: Could not register reflection metadata for org.springframework.web.multipart.commons.CommonsMultipartResolver. Reason: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration. Reason: java.lang.NoClassDefFoundError: org/springframework/data/rest/webmvc/config/RepositoryRestConfigurer.
WARNING: Could not register reflection metadata for org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$OracleUcp. Reason: java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceImpl.
[com.springnative.demo.demoapplication:12848]     (clinit):   2,705.52 ms,  7.37 GB
[com.springnative.demo.demoapplication:12848]   (typeflow): 106,586.63 ms,  7.37 GB
[com.springnative.demo.demoapplication:12848]    (objects): 162,443.69 ms,  7.37 GB
[com.springnative.demo.demoapplication:12848]   (features):  15,956.70 ms,  7.37 GB
[com.springnative.demo.demoapplication:12848]     analysis: 296,679.83 ms,  7.37 GB
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of sun.nio.ch.Iocp are allowed in the image heap as this class should be initialized at image runtime. Object has been initialized by the sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder class initializer with a trace:
        at sun.nio.ch.Iocp.<init>(Iocp.java:71)
        at sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder.defaultIocp(WindowsAsynchronousFileChannelImpl.java:56)
        at sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder.<clinit>(WindowsAsynchronousFileChannelImpl.java:53)
.  To fix the issue mark sun.nio.ch.Iocp for build-time initialization with --initialize-at-build-time=sun.nio.ch.Iocp or use the the information from the trace to find the culprit and --initialize-at-run-time=<culprit> to prevent its instantiation.

Detailed message:
Trace:
        at parsing sun.nio.ch.WindowsAsynchronousFileChannelImpl.open(WindowsAsynchronousFileChannelImpl.java:105)
Call path from entry point to sun.nio.ch.WindowsAsynchronousFileChannelImpl.open(FileDescriptor, boolean, boolean, ThreadPool):
        at sun.nio.ch.WindowsAsynchronousFileChannelImpl.open(WindowsAsynchronousFileChannelImpl.java:104)
        at sun.nio.fs.WindowsChannelFactory.newAsynchronousFileChannel(WindowsChannelFactory.java:208)
        at sun.nio.fs.WindowsFileSystemProvider.newAsynchronousFileChannel(WindowsFileSystemProvider.java:140)
        at java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:248)
        at java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:301)
        at org.h2.store.fs.FileAsync.<init>(FilePathAsync.java:121)
        at org.h2.store.fs.FilePathAsync.open(FilePathAsync.java:53)
        at org.h2.store.fs.FilePathSplit.open(FilePathSplit.java:128)
        at org.h2.store.fs.FilePathSplit.newOutputStream(FilePathSplit.java:179)
        at org.h2.store.fs.FileUtils.newOutputStream(FileUtils.java:239)
        at org.h2.server.web.WebServer$TranslateThread.run(WebServer.java:853)
        at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
        at com.oracle.svm.core.windows.WindowsJavaThreads.osThreadStartRoutine(WindowsJavaThreads.java:138)
        at com.oracle.svm.core.code.IsolateEnterStub.WindowsJavaThreads_osThreadStartRoutine_4bc03aa26f8cdfc97ebd54050e8ae4bce1023851(generated:0)

Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
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:1676)
        at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1426)
        at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1387)
        at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1374)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:43 min
[INFO] Finished at: 2021-03-10T12:32:40+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.graalvm.nativeimage:native-image-maven-plugin:21.0.0.2:native-image (default) on project demo: Execution of C:\Program Files\graalvm-ce-java8-21.0.0.2\jre\lib\svm\bin\native-image.exe -cp C:\Users\dragos.roban\.m2\repository\org\springframework\experimental\spring-graalvm-native\0.9.0-SNAPSHOT\spring-graalvm-native-0.9.0-SNAPSHOT.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.4.1\spring-boot-starter-data-jpa-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.4.1\spring-boot-starter-aop-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\aspectj\aspectjweaver\1.9.6\aspectjweaver-1.9.6.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.4.1\spring-boot-starter-jdbc-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jdbc\5.3.2\spring-jdbc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\jakarta\transaction\jakarta.transaction-api\1.3.3\jakarta.transaction-api-1.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\persistence\jakarta.persistence-api\2.2.3\jakarta.persistence-api-2.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\hibernate-core\5.4.25.Final\hibernate-core-5.4.25.Final.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;C:\Users\dragos.roban\.m2\repository\org\javassist\javassist\3.27.0-GA\javassist-3.27.0-GA.jar;C:\Users\dragos.roban\.m2\repository\net\bytebuddy\byte-buddy\1.10.18\byte-buddy-1.10.18.jar;C:\Users\dragos.roban\.m2\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;C:\Users\dragos.roban\.m2\repository\org\jboss\jandex\2.1.3.Final\jandex-2.1.3.Final.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\dragos.roban\.m2\repository\org\dom4j\dom4j\2.1.3\dom4j-2.1.3.jar;C:\Users\dragos.roban\.m2\repository\org\hibernate\common\hibernate-commons-annotations\5.1.2.Final\hibernate-commons-annotations-5.1.2.Final.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\jaxb-runtime\2.3.3\jaxb-runtime-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jaxb\txw2\2.3.3\txw2-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\com\sun\istack\istack-commons-runtime\3.0.11\istack-commons-runtime-3.0.11.jar;C:\Users\dragos.roban\.m2\repository\com\sun\activation\jakarta.activation\1.2.2\jakarta.activation-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-jpa\2.4.2\spring-data-jpa-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\data\spring-data-commons\2.4.2\spring-data-commons-2.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-orm\5.3.2\spring-orm-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-context\5.3.2\spring-context-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-tx\5.3.2\spring-tx-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-beans\5.3.2\spring-beans-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aspects\5.3.2\spring-aspects-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-security\2.4.1\spring-boot-starter-security-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter\2.4.1\spring-boot-starter-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot\2.4.1\spring-boot-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.4.1\spring-boot-autoconfigure-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.4.1\spring-boot-starter-logging-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;C:\Users\dragos.roban\.m2\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;C:\Users\dragos.roban\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\dragos.roban\.m2\repository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-aop\5.3.2\spring-aop-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-config\5.4.2\spring-security-config-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-web\5.4.2\spring-security-web-5.4.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-expression\5.3.2\spring-expression-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.4.1\spring-boot-starter-web-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.4.1\spring-boot-starter-json-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.11.3\jackson-core-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.3\jackson-datatype-jdk8-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson-datatype-jsr310-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter-names-2.11.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.4.1\spring-boot-starter-tomcat-2.4.1.jar;C:\Users\dragos.roban\.m2\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-web\5.3.2\spring-web-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-webmvc\5.3.2\spring-webmvc-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\com\h2database\h2\1.4.200\h2-1.4.200.jar;C:\Users\dragos.roban\.m2\repository\org\apache\tomcat\experimental\tomcat-embed-programmatic\9.0.38\tomcat-embed-programmatic-9.0.38.jar;C:\Users\dragos.roban\.m2\repository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;C:\Users\dragos.roban\.m2\repository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-core\5.3.2\spring-core-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\spring-jcl\5.3.2\spring-jcl-5.3.2.jar;C:\Users\dragos.roban\.m2\repository\org\springframework\security\spring-security-core\5.4.2\spring-security-core-5.4.2.jar;C:\CeBAS\Tasks\2366\demo\target\demo.jar -J-Xmx16G --enable-all-security-services --allow-incomplete-classpath --no-fallback --verbose -Dspring.graal.mode=initialization-only --trace-object-instantiation=sun.nio.ch.Iocp --initialize-at-build-time=net.bytebuddy.matcher.StringMatcher --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Super$Instantiation --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$AbstractBase --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$ForLoadedType --initialize-at-build-time=sun.nio.ch.WindowsAsynchronousFileChannelImpl$DefaultIocpHolder --initialize-at-build-time=sun.instrument.InstrumentationImpl --initialize-at-run-time=org.h2.store.fs.FileUtils.newOutputStream -H:Class=com.springnative.demo.DemoApplication returned non-zero result -> [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/MojoExecutionException
messages-one commented 3 years ago

The problem seems to be with the h2 dependency.

after commenting the h2 dependency in the pom.xml and using mysql jdbc driver to interact with a mysql instance;

the native compilation generates the executable file.

os : windows 10 enterprise graal vm: 21

gruenich commented 3 years ago

I am associated with dragosroban and a project partner made some progress with regard to h2. We are going to join our knowledge: Either the problem is solved by this knowledge or we get a hopefully more helpful error message. Either way, we are going to report back.

dragosroban commented 3 years ago

@gradinac @oubidar-Abderrahim

Thanks for your response here. Indeed, MySQL serves well creating the native-image, but still problems on running it. The application itself works well ( the java one). The created image outputs the following errros:

C:\Tasks\2366\native-sql>com.springnative.demo.demoapplication.exe

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.4.1)

2021-03-16 13:55:59.102  INFO 13608 --- [           main] com.springnative.demo.DemoApplication    : Starting DemoApplication v0.0.1-SNAPSHOT using Java 1.8.0_282 on DRAGOSROBAN with PID 13608 (C:\CeBAS\Tasks\2366\native-sql\com.springnative.demo.demoapplication.exe started by dragos.roban in C:\CeBAS\Tasks\2366\native-sql)
2021-03-16 13:55:59.102  INFO 13608 --- [           main] com.springnative.demo.DemoApplication    : No active profile set, falling back to default profiles: default
2021-03-16 13:55:59.130  INFO 13608 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-03-16 13:55:59.131  INFO 13608 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 0 ms. Found 1 JPA repository interfaces.
2021-03-16 13:55:59.971  INFO 13608 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-03-16 13:55:59.972  INFO 13608 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-03-16 13:55:59.972  INFO 13608 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.38]
2021-03-16 13:55:59.979  INFO 13608 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-03-16 13:55:59.979  INFO 13608 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 876 ms
2021-03-16 13:55:59.995  INFO 13608 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-03-16 13:55:59.998  INFO 13608 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.25.Final
2021-03-16 13:55:59.998  INFO 13608 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-03-16 13:56:00.001  INFO 13608 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-03-16 13:56:00.031  INFO 13608 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-03-16 13:56:00.032  INFO 13608 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2021-03-16 13:56:00.044 ERROR 13608 --- [           main] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
2021-03-16 13:56:00.045  WARN 13608 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
2021-03-16 13:56:00.045  INFO 13608 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2021-03-16 13:56:00.048  INFO 13608 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
2021-03-16 13:56:00.048  INFO 13608 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2021-03-16 13:56:00.053  INFO 13608 --- [           main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-03-16 13:56:00.054 ERROR 13608 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788) ~[na:na]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609) ~[na:na]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[na:na]
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[na:na]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[na:na]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[na:na]
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1159) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[com.springnative.demo.demoapplication.exe:2.4.1]
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) [com.springnative.demo.demoapplication.exe:2.4.1]
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [com.springnative.demo.demoapplication.exe:2.4.1]
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [com.springnative.demo.demoapplication.exe:2.4.1]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [com.springnative.demo.demoapplication.exe:2.4.1]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309) [com.springnative.demo.demoapplication.exe:2.4.1]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298) [com.springnative.demo.demoapplication.exe:2.4.1]
        at com.springnative.demo.DemoApplication.main(DemoApplication.java:16) [com.springnative.demo.demoapplication.exe:0.0.1-SNAPSHOT]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:421) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847) ~[na:na]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784) ~[na:na]
        ... 17 common frames omitted
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:123) ~[com.springnative.demo.demoapplication.exe:na]
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:77) ~[com.springnative.demo.demoapplication.exe:na]
        at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:181) ~[com.springnative.demo.demoapplication.exe:na]
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:301) ~[na:na]
        at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:469) ~[na:na]
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1259) ~[na:na]
        at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) ~[na:na]
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) ~[com.springnative.demo.demoapplication.exe:5.3.2]
        ... 21 common frames omitted
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:91) ~[na:na]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:116) ~[na:na]
        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:426) ~[na:na]
        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:609) ~[com.springnative.demo.demoapplication.exe:5.4.25.Final]
        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:128) ~[com.springnative.demo.demoapplication.exe:5.4.25.Final]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:na]
        at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:96) ~[com.springnative.demo.demoapplication.exe:na]
        ... 29 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:na]
        at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:88) ~[na:na]
        ... 35 common frames omitted
Caused by: java.lang.IllegalArgumentException: Could not create type
        at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:155) ~[na:na]
        at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:366) ~[na:na]
        at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:175) ~[na:na]
        at net.bytebuddy.TypeCache$WithInlineExpunction.findOrInsert(TypeCache.java:377) ~[na:na]
        at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState.load(ByteBuddyState.java:175) ~[na:na]
        at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState.loadProxy(ByteBuddyState.java:99) ~[na:na]
        at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyHelper.buildProxy(ByteBuddyProxyHelper.java:55) ~[na:na]
        at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory.postInstantiate(ByteBuddyProxyFactory.java:61) ~[na:na]
        at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:102) ~[com.springnative.demo.demoapplication.exe:5.4.25.Final]
        at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:160) ~[com.springnative.demo.demoapplication.exe:5.4.25.Final]
        at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:53) ~[com.springnative.demo.demoapplication.exe:5.4.25.Final]
        ... 37 common frames omitted
Caused by: java.lang.IllegalStateException: Error invoking Unsafe::defineClass
        at net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$Enabled.defineClass(ClassInjector.java:2097) ~[na:na]
        at net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe.injectRaw(ClassInjector.java:1874) ~[na:na]
        at net.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:110) ~[na:na]
        at net.bytebuddy.dynamic.loading.ClassLoadingStrategy$ForUnsafeInjection.load(ClassLoadingStrategy.java:567) ~[na:na]
        at net.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:100) ~[na:na]
        at net.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6292) ~[na:na]
        at org.hibernate.bytecode.internal.bytebuddy.ByteBuddyState.lambda$load$0(ByteBuddyState.java:179) ~[na:na]
        at net.bytebuddy.TypeCache.findOrInsert(TypeCache.java:153) ~[na:na]
        ... 47 common frames omitted
Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: Defining new classes at run time is not supported. All classes need to be known at image build time.
        at com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:87) ~[na:na]
        at sun.misc.Unsafe.defineClass(Unsafe.java:241) ~[com.springnative.demo.demoapplication.exe:na]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[com.springnative.demo.demoapplication.exe:na]
        at net.bytebuddy.dynamic.loading.ClassInjector$UsingUnsafe$Dispatcher$Enabled.defineClass(ClassInjector.java:2087) ~[na:na]
        ... 54 common frames omitted

How should I figure out here? The only things that I've changed in the code is replacing the h2 dependency with mysql and the application.properties

spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=none

spring.datasource.url=jdbc:mysql://localhost:3306/mysql
spring.datasource.username=dragos
spring.datasource.password=password

Would appreciate your help here to understand.

messages-one commented 3 years ago

This doesn't seem like a GRAAL vm issue but rather to do with your jpa mappings.

dragosroban commented 3 years ago

This topic is open. Can someone please address this?

@messages-one This has nothing to do with the mappings. The application works just fine standalone. Are there some special mappings made for GRAAL? If yes, then please reveal some documentation in order to see this.

Thank you, Draogs.

messages-one commented 3 years ago

Hi! dragosroban

Can you share the project ?

dragosroban commented 3 years ago

Hello @messages-one,

The project is public: https://github.com/dragosroban/spring-native For this specific issue please use branch "fearture/mySqlConnectivity"

dragosroban commented 3 years ago

@gradinac See you got this story assigned to you. Do you have any update on this?

@messages-one something new?

Thanks. Appreciate the time.

gradinac commented 3 years ago

Hey @dragosroban! Sorry for a bit of a late answer on this one. From the initial look at the trace, this error does not seem to be the fault of native-image - the underlying dependencies are trying to dynamically define new classes at runtime which is currently not supported.

However, I've worked on something very similar to this recently: the issue is caused by Hibernate generating dynamic proxies using bytebuddy (not the standard JDK dynamic proxies). To work around this, you will need to enhance the entities used by hibernate during project build time using the hibernate enhance plugin: https://docs.jboss.org/hibernate/orm/5.0/topical/html/bytecode/BytecodeEnhancement.html

Make sure you are using the latest version of Spring Native, their Hibernate example might be useful for this as well: https://github.com/spring-projects-experimental/spring-native/tree/main/samples/hibernate. It shows how the Hibernate enhance plugin is set up in a Maven project.

Spring Native should itself also turn off this dynamic proxy generation mechanism. If you hit any issues with it, you can try to manually turn it off by running your app (both on the Java and native-image version) with -Dhibernate.bytecode.provider=none

gradinac commented 3 years ago

This may come in handy as well: https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/#support-spring-boot It contains a list of supported Spring starters, as well as notes regarding any extra tweaking that may be needed (such as the above for Hibernate)