Skip to content

Instantly share code, notes, and snippets.

@scottmarlow
Created January 3, 2025 14:42
Show Gist options
  • Save scottmarlow/946bf81fd372b605e25b5483db90b16b to your computer and use it in GitHub Desktop.
Save scottmarlow/946bf81fd372b605e25b5483db90b16b to your computer and use it in GitHub Desktop.
Caused by: java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface org.hibernate.bytecode.enhance.spi.EnhancementInfo: @org.hibernate.bytecode.enhance.spi.EnhancementInfo(version="6.6.5-SNAPSHOT")
[javatest.batch] at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:126)
[javatest.batch] at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
[javatest.batch] at java.base/java.lang.Class.createAnnotationData(Class.java:4069)
[javatest.batch] at java.base/java.lang.Class.annotationData(Class.java:4058)
[javatest.batch] at java.base/java.lang.Class.getAnnotation(Class.java:3941)
[javatest.batch] at java.base/java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:292)
[javatest.batch] at java.base/java.lang.Class.isAnnotationPresent(Class.java:3951)
[javatest.batch] at [email protected]//org.hibernate.annotations.common.reflection.java.JavaAnnotationReader.isAnnotationPresent(JavaAnnotationReader.java:30)
[javatest.batch] at [email protected]//org.hibernate.annotations.common.reflection.java.JavaXAnnotatedElement.isAnnotationPresent(JavaXAnnotatedElement.java:40)
[javatest.batch] at [email protected]//org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.categorizeAnnotatedClass(AnnotationMetadataSourceProcessorImpl.java:163)
[javatest.batch] at [email protected]//org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.<init>(AnnotationMetadataSourceProcessorImpl.java:104)
[javatest.batch] at [email protected]//org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.<init>(MetadataBuildingProcess.java:206)
[javatest.batch] at [email protected]//org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:200)
[javatest.batch] at [email protected]//org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1431)
[javatest.batch] at [email protected]//org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1502)
[javatest.batch] at [email protected]//org.jboss.as.jpa.hibernate.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:32)
[javatest.batch] at [email protected]//org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:159)
[javatest.batch] ... 10 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment