-
Bug
-
Resolution: Unresolved
-
P3
-
repo-leyden
5-step training followed by a deployment run with -Dspring.aot.enabled=false intermittently fails with the following exception:
2024-01-23T15:42:12.933-08:00 INFO 16023 --- [ main] o.s.s.petclinic.PetClinicApplication : Starting PetClinicApplication using Java 23-internal with PID 16023 (/Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic/dist.aot1/BOOT-INF/classes/classes.jar started by vlivanov in /Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic)
2024-01-23T15:42:12.938-08:00 INFO 16023 --- [ main] o.s.s.petclinic.PetClinicApplication : No active profile set, falling back to 1 default profile: "default"
2024-01-23T15:42:12.961-08:00 WARN 16023 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic/dist.aot1/BOOT-INF/classes/classes.jar!/org/springframework/samples/petclinic/system/CacheConfiguration.class]
2024-01-23T15:42:12.976-08:00 ERROR 16023 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic/dist.aot1/BOOT-INF/classes/classes.jar!/org/springframework/samples/petclinic/system/CacheConfiguration.class]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:463) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:317) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:276) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:128) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:289) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:243) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:196) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:164) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:415) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:287) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:344) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:771) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:589) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:436) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.samples.petclinic.PetClinicApplication.main(PetClinicApplication.java:38) ~[classes.jar:na]
Caused by: java.lang.annotation.AnnotationFormatError: java.lang.IllegalArgumentException: Not an annotation type
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:78) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:635) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:633) ~[na:na]
at java.base/java.lang.reflect.Executable.getDeclaredAnnotations(Executable.java:621) ~[na:na]
at java.base/java.lang.reflect.Method.getDeclaredAnnotations(Method.java:802) ~[na:na]
at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotations(AnnotationsScanner.java:451) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotation(AnnotationsScanner.java:435) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMapping.resolveAliasedForTargets(AnnotationTypeMapping.java:144) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMapping.<init>(AnnotationTypeMapping.java:122) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.addIfPossible(AnnotationTypeMappings.java:112) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.addAllMappings(AnnotationTypeMappings.java:75) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.<init>(AnnotationTypeMappings.java:68) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings$Cache.createMappings(AnnotationTypeMappings.java:245) ~[spring-core-6.0.10.jar:6.0.10]
at java.base/java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:330) ~[na:na]
at org.springframework.core.annotation.AnnotationTypeMappings$Cache.get(AnnotationTypeMappings.java:241) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:199) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:182) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:169) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.TypeMappedAnnotation.of(TypeMappedAnnotation.java:616) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.MergedAnnotation.of(MergedAnnotation.java:612) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitEnd(MergedAnnotationReadingVisitor.java:98) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.readElementValues(ClassReader.java:3010) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.readMethod(ClassReader.java:1415) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.accept(ClassReader.java:746) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.accept(ClassReader.java:426) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:48) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:122) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:435) ~[spring-context-6.0.10.jar:6.0.10]
... 20 common frames omitted
Caused by: java.lang.IllegalArgumentException: Not an annotation type
at java.base/sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:106) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:124) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73) ~[na:na]
... 48 common frames omitted
2024-01-23T15:42:12.933-08:00 INFO 16023 --- [ main] o.s.s.petclinic.PetClinicApplication : Starting PetClinicApplication using Java 23-internal with PID 16023 (/Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic/dist.aot1/BOOT-INF/classes/classes.jar started by vlivanov in /Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic)
2024-01-23T15:42:12.938-08:00 INFO 16023 --- [ main] o.s.s.petclinic.PetClinicApplication : No active profile set, falling back to 1 default profile: "default"
2024-01-23T15:42:12.961-08:00 WARN 16023 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic/dist.aot1/BOOT-INF/classes/classes.jar!/org/springframework/samples/petclinic/system/CacheConfiguration.class]
2024-01-23T15:42:12.976-08:00 ERROR 16023 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/vlivanov/ws/tmp/LEYDEN/spring-petclinic/dist.aot1/BOOT-INF/classes/classes.jar!/org/springframework/samples/petclinic/system/CacheConfiguration.class]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:463) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:317) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:276) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:128) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:289) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:243) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:196) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:164) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:415) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:287) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:344) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:115) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:771) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:589) ~[spring-context-6.0.10.jar:6.0.10]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:436) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-3.1.1.jar:3.1.1]
at org.springframework.samples.petclinic.PetClinicApplication.main(PetClinicApplication.java:38) ~[classes.jar:na]
Caused by: java.lang.annotation.AnnotationFormatError: java.lang.IllegalArgumentException: Not an annotation type
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:78) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:635) ~[na:na]
at java.base/java.lang.reflect.Executable.declaredAnnotations(Executable.java:633) ~[na:na]
at java.base/java.lang.reflect.Executable.getDeclaredAnnotations(Executable.java:621) ~[na:na]
at java.base/java.lang.reflect.Method.getDeclaredAnnotations(Method.java:802) ~[na:na]
at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotations(AnnotationsScanner.java:451) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotation(AnnotationsScanner.java:435) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMapping.resolveAliasedForTargets(AnnotationTypeMapping.java:144) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMapping.<init>(AnnotationTypeMapping.java:122) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.addIfPossible(AnnotationTypeMappings.java:112) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.addAllMappings(AnnotationTypeMappings.java:75) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.<init>(AnnotationTypeMappings.java:68) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings$Cache.createMappings(AnnotationTypeMappings.java:245) ~[spring-core-6.0.10.jar:6.0.10]
at java.base/java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:330) ~[na:na]
at org.springframework.core.annotation.AnnotationTypeMappings$Cache.get(AnnotationTypeMappings.java:241) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:199) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:182) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:169) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.TypeMappedAnnotation.of(TypeMappedAnnotation.java:616) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.annotation.MergedAnnotation.of(MergedAnnotation.java:612) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitEnd(MergedAnnotationReadingVisitor.java:98) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.readElementValues(ClassReader.java:3010) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.readMethod(ClassReader.java:1415) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.accept(ClassReader.java:746) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.asm.ClassReader.accept(ClassReader.java:426) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:48) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:122) ~[spring-core-6.0.10.jar:6.0.10]
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scanCandidateComponents(ClassPathScanningCandidateComponentProvider.java:435) ~[spring-context-6.0.10.jar:6.0.10]
... 20 common frames omitted
Caused by: java.lang.IllegalArgumentException: Not an annotation type
at java.base/sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:106) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:124) ~[na:na]
at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73) ~[na:na]
... 48 common frames omitted