Skip to content

Spring boot 4.0-RC2 spring-data Caused by: java.lang.NoClassDefFoundError: org/springframework/data/util/TypeInformation #3132

@bxvs888

Description

@bxvs888

Describe the bug

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryDslQuerydslPredicateOperationCustomizer' defined in class path resource [org/springdoc/core/configuration/SpringDocConfiguration$QuerydslProvider.class]: Post-processing of merged bean definition failed
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1218) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1184) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:983) ~[spring-context-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:620) ~[spring-context-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-web-server-4.0.0-RC1.jar:4.0.0-RC1]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:765) ~[spring-boot-4.0.0-RC1.jar:4.0.0-RC1]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:454) ~[spring-boot-4.0.0-RC1.jar:4.0.0-RC1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) ~[spring-boot-4.0.0-RC1.jar:4.0.0-RC1]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:154) ~[spring-boot-4.0.0-RC1.jar:4.0.0-RC1]
at com.aeccs.pandora.boot.launcher.PandoraBootStarpApplication.startup(PandoraBootStarpApplication.java:48) ~[pandora-launcher-2025.3.0-SNAPSHOT.jar:2025.3.0-SNAPSHOT]
at com.aeccs.pandora.boot.launcher.PlatformJavaApplication.main(PlatformJavaApplication.java:86) ~[pandora-launcher-2025.3.0-SNAPSHOT.jar:2025.3.0-SNAPSHOT]
at RebotsTest.main(RebotsTest.java:25) ~[test/:?]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springdoc.core.customizers.QuerydslPredicateOperationCustomizer] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:483) ~[spring-core-7.0.0-RC3.jar:7.0.0-RC3]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springdoc.core.customizers.QuerydslPredicateOperationCustomizer] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@5bc2b487]

at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:320) ~[spring-core-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:295) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:272) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:201) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:181) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:290) ~[spring-context-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1114) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:577) ~[spring-beans-7.0.0-RC3.jar:7.0.0-RC3]
... 18 more

Caused by: java.lang.NoClassDefFoundError: org/springframework/data/util/TypeInformation
Caused by: java.lang.NoClassDefFoundError: org/springframework/data/util/TypeInformation

at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3010) ~[?:?]
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2329) ~[?:?]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:465) ~[spring-core-7.0.0-RC3.jar:7.0.0-RC3]
... 26 more

Caused by: java.lang.ClassNotFoundException: org.springframework.data.util.TypeInformation
Caused by: java.lang.ClassNotFoundException: org.springframework.data.util.TypeInformation

at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490) ~[?:?]
... 30 more

To Reproduce

Class from. org.springframework.data.util.TypeInformation to org.springframework.data.core.TypeInformation
Expected behavior

  • A clear and concise description of what you expected to happen.
  • What is the expected result using OpenAPI Description (yml or json)?

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
spring boot 4.0-RC2
spring data 2025.1.0-RC2
spring framework 7.0.0-RC3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions