Skip to content

Instantly share code, notes, and snippets.

@scottmarlow
Created January 14, 2025 23:16
Show Gist options
  • Save scottmarlow/73c0a3b668de5a7a04e535e51e61ad9c to your computer and use it in GitHub Desktop.
Save scottmarlow/73c0a3b668de5a7a04e535e51e61ad9c to your computer and use it in GitHub Desktop.
duplicate annotation detected on class org.jboss.as.test.integration.jpa.hhh18901.Project class
The call stack of where error is thrown from is below.
Of interest may be that org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement
and is checking if interface jakarta.persistence.Converter is present when the duplicate error is thrown.
I assume this means that some other thread added the duplicate annotation by the moment that this error is thrown.
Call Stack:
parseAnnotations2:126, AnnotationParser (sun.reflect.annotation)
parseAnnotations:73, AnnotationParser (sun.reflect.annotation)
createAnnotationData:4069, Class (java.lang)
annotationData:4058, Class (java.lang)
getAnnotation:3941, Class (java.lang)
isAnnotationPresent:292, AnnotatedElement (java.lang.reflect)
isAnnotationPresent:3951, Class (java.lang)
isAnnotationPresent:30, JavaAnnotationReader (org.hibernate.annotations.common.reflection.java)
isAnnotationPresent:40, JavaXAnnotatedElement (org.hibernate.annotations.common.reflection.java)
categorizeAnnotatedClass:163, AnnotationMetadataSourceProcessorImpl (org.hibernate.boot.model.source.internal.annotations)
<init>:104, AnnotationMetadataSourceProcessorImpl (org.hibernate.boot.model.source.internal.annotations)
<init>:206, MetadataBuildingProcess$1 (org.hibernate.boot.model.process.spi)
complete:200, MetadataBuildingProcess (org.hibernate.boot.model.process.spi)
metadata:1431, EntityManagerFactoryBuilderImpl (org.hibernate.jpa.boot.internal)
build:1502, EntityManagerFactoryBuilderImpl (org.hibernate.jpa.boot.internal)
build:32, TwoPhaseBootstrapImpl (org.jboss.as.jpa.hibernate)
run:159, PersistenceUnitServiceImpl$1$1 (org.jboss.as.jpa.service)
run:117, PersistenceUnitServiceImpl$1$1 (org.jboss.as.jpa.service)
executePrivileged:776, AccessController (java.security)
doPrivileged:399, AccessController (java.security)
doChecked:664, WildFlySecurityManager (org.wildfly.security.manager)
run:202, PersistenceUnitServiceImpl$1 (org.jboss.as.jpa.service)
run:35, ContextClassLoaderSavingRunnable (org.jboss.threads)
safeRun:1990, EnhancedQueueExecutor (org.jboss.threads)
doRunTask:1486, EnhancedQueueExecutor$ThreadBody (org.jboss.threads)
run:1377, EnhancedQueueExecutor$ThreadBody (org.jboss.threads)
run:840, Thread (java.lang)
run:513, JBossThread (org.jboss.threads)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment