CLONE - AssertionFailure: Fail to process type argument in a generic declaration

Description

The following exception is thrown when an entity exists with a collection containing a parameterized type:

2018-06-27 06:50:24.306 ERROR 9632 — [ restartedMain] o.h.annotations.common.AssertionFailure : HCANN000002: An assertion failure occurred (this may indicate a bug in Hibernate)

org.hibernate.annotations.common.AssertionFailure: Fail to process type argument in a generic declaration. Member : digital.equinox.spring.study.springsecurityxandr.data.entity.security.User#acess_roles Type: class sun.reflect.generics.reflectiveObjects.WildcardTypeImpl
at org.hibernate.metamodel.internal.AttributeFactory$PluralAttributeMetadataImpl.getClassFromGenericArgument(AttributeFactory.java:884) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.metamodel.internal.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:793) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.metamodel.internal.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:767) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.metamodel.internal.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:548) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.metamodel.internal.AttributeFactory.buildAttribute(AttributeFactory.java:77) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.metamodel.internal.MetadataContext.wrapUp(MetadataContext.java:214) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:230) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:295) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:467) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:939) [hibernate-core-5.3.1.Final.jar:5.3.1.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) [spring-orm-5.0.7.RELEASE.jar:5.0.7.RELEASE]

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Rutta Aleksandr

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.3.1

Components

Affects versions

5.3.1

Priority

Major