spring-projects-experimental/spring-fu

Spring Native Image issue

Kotlin-GDE opened this issue · 1 comments

hi @sdeleuze

Error: Classes that should be initialized at run time got initialized during image building:
 org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter the class was requested to be initialized at run time (from the command line). org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked. Try avoiding to initialize the class that caused initialization of org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter
org.apache.commons.logging.LogAdapter$Slf4jLocationAwareLog the class was requested to be initialized at run time (from the command line). org.apache.commons.logging.LogAdapter$Slf4jLocationAwareLog has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked. Try avoiding to initialize the class that caused initialization of org.apache.commons.logging.LogAdapter$Slf4jLocationAwareLog
org.apache.commons.logging.LogAdapter$1 the class was requested to be initialized at run time (from the command line). org.apache.commons.logging.LogAdapter$1 has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked. Try avoiding to initialize the class that caused initialization of org.apache.commons.logging.LogAdapter$1
org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter the class was requested to be initialized at run time (from the command line and subtype of org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter). org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked. Try avoiding to initialize the class that caused initialization of org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter
org.springframework.core.SpringProperties the class was requested to be initialized at run time (from the command line). org.springframework.core.SpringProperties has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked. Try avoiding to initialize the class that caused initialization of org.springframework.core.SpringProperties
org.apache.commons.logging.LogAdapter the class was requested to be initialized at run time (from the command line). org.apache.commons.logging.LogAdapter has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked. Try avoiding to initialize the class that caused initialization of org.apache.commons.logging.LogAdapter

this issue provide with graal 20.1.0-java-11.0.7 spring boot 2.4.0-snapshot

  1. spring native image not support kofu dsl ?? (all exemples round about java code only)

https://github.com/spring-projects-experimental/spring-graalvm-native should be used for native applications support and Kofu is supported.