Open mingchiuli opened 16 hours ago
Can you provide a minimal sample application that reproduces the problem please?
@waileong can you provide a minimal sample application? This would help us speed us the resolution process.
Having the same error.
The usecase to reproduce is not ideal, but cannot find a better one for now.
I have an empty spring Application
@SpringBootApplication
public class MyApplication
{
public static void main(final String[] args)
{
SpringApplication.run(MyApplication.class, args);
}
}
But these dependencies in my pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
I get the StackOverflowError during AOT. If I remove one or the other dependency, it works. I'm stuck here since it seems to have nothing to do with my apps.
Having the same error.
The usecase to reproduce is not ideal, but cannot find a better one for now.
I have an empty spring Application
@SpringBootApplication public class MyApplication { public static void main(final String[] args) { SpringApplication.run(MyApplication.class, args); } }
But these dependencies in my pom.xml
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency>
I get the StackOverflowError during AOT. If I remove one or the other dependency, it works. I'm stuck here since it seems to have nothing to do with my apps.
I can confirm that removing "spring-boot-starter-validation" and "spring-cloud-stream-binder-kafka" "fixed" the issue for me.
For me the issue was the combination of "spring-boot-starter-validation" and "org.springdoc:springdoc-openapi-starter-webmvc-api:2.6.0". I have created a minimum application here: https://github.com/bsgrd/spring-framework-issues-33936
+1 on the above aot + spring-starter-validation
For me the issue was the combination of "spring-boot-starter-validation" and "org.springdoc:springdoc-openapi-starter-webmvc-api:2.6.0". I have created a minimum application here: https://github.com/bsgrd/spring-framework-issues-33936
@bclozel This instance can show my problem
Problem generate in spring boot Version: 3.4.0. It's normal in spring boot 3.3.6.
error log: