Community
Participate
Working Groups
(first, excuse my bad english...) Kotlin always add annotation @kotlin.Metadata on compiled class. it makes infinite loop when scanning annotations. I found it with kotlin, but some java annotations also has circulation so can reproduce this error. Can avoid with well-known blacklist or block re-visit? some part of error logs are: -------- Caused by: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.7.1.v20171221-bd47e8f): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [default] failed. Internal Exception: java.lang.StackOverflowError at org.eclipse.persistence.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:231) ... 120 more Caused by: java.lang.StackOverflowError at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAsmFactory.getMetadataClass(MetadataAsmFactory.java:152) at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAsmFactory.getMetadataClass(MetadataAsmFactory.java:140) at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215) at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAnnotatedElement.getAnnotation(MetadataAnnotatedElement.java:215) ... --------
I can confirm this Bug on both EclipseLink 2.7.0 and 2.7.1 versions. It is very serious as it prevents any kotlin classes to be used as entities. Version 2.6.5 doesn't have this bug.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink