Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

ArrayStoreException in SnsWebConfiguration. #549

Closed
kingbbode opened this issue May 1, 2020 · 1 comment
Closed

ArrayStoreException in SnsWebConfiguration. #549

kingbbode opened this issue May 1, 2020 · 1 comment
Labels
component: sns SNS integration related issue status: duplicate A duplicate of another issue

Comments

@kingbbode
Copy link
Contributor

kingbbode commented May 1, 2020

Hello,

Because implement and ConditionalOnClass are specified in SnsWebConfiguration at the same time, an exception occurs during the class load.

When WebMvcConfigurer does not exist,

Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
	at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
	at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
	at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
	at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
	at java.lang.Class.createAnnotationData(Class.java:3521)
	at java.lang.Class.annotationData(Class.java:3510)
	at java.lang.Class.getDeclaredAnnotations(Class.java:3477)
	at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotations(AnnotationsScanner.java:499)
	at org.springframework.core.annotation.AnnotationTypeMappings.addMetaAnnotationsToQueue(AnnotationTypeMappings.java:85)
	at org.springframework.core.annotation.AnnotationTypeMappings.addAllMappings(AnnotationTypeMappings.java:79)
	at org.springframework.core.annotation.AnnotationTypeMappings.<init>(AnnotationTypeMappings.java:68)
	at org.springframework.core.annotation.AnnotationTypeMappings.<init>(AnnotationTypeMappings.java:46)
	at org.springframework.core.annotation.AnnotationTypeMappings$Cache.createMappings(AnnotationTypeMappings.java:251)
	at java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:324)
	at org.springframework.core.annotation.AnnotationTypeMappings$Cache.get(AnnotationTypeMappings.java:247)
	at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:204)
	at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:186)
	at org.springframework.core.annotation.AnnotationTypeMappings.forAnnotationType(AnnotationTypeMappings.java:173)
	at org.springframework.core.annotation.TypeMappedAnnotation.of(TypeMappedAnnotation.java:634)
	at org.springframework.core.annotation.MergedAnnotation.of(MergedAnnotation.java:596)
	at org.springframework.core.type.classreading.MergedAnnotationReadingVisitor.visitEnd(MergedAnnotationReadingVisitor.java:96)
	at org.springframework.asm.ClassReader.readElementValues(ClassReader.java:2985)
	at org.springframework.asm.ClassReader.accept(ClassReader.java:582)
	at org.springframework.asm.ClassReader.accept(ClassReader.java:401)
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:50)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103)
	at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.createMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:86)
	at org.springframework.boot.type.classreading.ConcurrentReferenceCachingMetadataReaderFactory.getMetadataReader(ConcurrentReferenceCachingMetadataReaderFactory.java:73)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81)
	at org.springframework.context.annotation.ConfigurationClassParser.asSourceClass(ConfigurationClassParser.java:695)
	at org.springframework.context.annotation.ConfigurationClassParser$SourceClass.getMemberClasses(ConfigurationClassParser.java:992)
	at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:354)
	at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:271)
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:249)
	at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:599)
	... 82 more
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 1, 2020
kingbbode pushed a commit to kingbbode/spring-cloud-aws that referenced this issue May 1, 2020
kingbbode pushed a commit to kingbbode/spring-cloud-aws that referenced this issue May 1, 2020
kingbbode pushed a commit to kingbbode/spring-cloud-aws that referenced this issue May 1, 2020
kingbbode pushed a commit to kingbbode/spring-cloud-aws that referenced this issue May 1, 2020
kingbbode added a commit to kingbbode/spring-cloud-aws that referenced this issue May 1, 2020
@kingbbode kingbbode changed the title Wrong writing for Enhance in SnsWebConfiguration. ArrayStoreException in SnsWebConfiguration. May 9, 2020
@maciejwalkowiak maciejwalkowiak added the component: sns SNS integration related issue label May 29, 2020
@maciejwalkowiak
Copy link
Contributor

Thanks @kingbbode for reporting and providing PR. I am closing this one as a duplicate of #503 and will go through your PR in upcoming days.

@maciejwalkowiak maciejwalkowiak added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels May 29, 2020
@maciejwalkowiak maciejwalkowiak modified the milestone: 2.2.3 Jun 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: sns SNS integration related issue status: duplicate A duplicate of another issue
Development

No branches or pull requests

3 participants