Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » @MappedSuperclass with Generic types(java.lang.IndexOutOfBoundsException)
@MappedSuperclass with Generic types [message #896422] Wed, 18 July 2012 11:04 Go to next message
Badr Elhouari is currently offline Badr ElhouariFriend
Messages: 2
Registered: July 2012
Junior Member
Hi I'm using EclipseLink for testing purpose with Arquillian 1.0.1.Final & glassfish embedded all 3.1.2

When running the test I get an error that the Predeployment of my PersistenceUnit failed due to an error regarding @MappedSuperclass with Generic types.

Here is the main cause of the exception:


Caused by: java.lang.IndexOutOfBoundsException: Index: 8, Size: 8
at java.util.ArrayList.RangeCheck(
at java.util.ArrayList.get(
at org.eclipse.persistence.internal.jpa.metadata.accessors.objects.MetadataAsmFactory.resolveGenericTypes(
at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.ClassAccessor.resolveGenericTypes(
at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.discoverMappedSuperclassesAndInheritanceParents(
at org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EntityAccessor.preProcess(
at org.eclipse.persistence.internal.jpa.metadata.MetadataProject.processStage1(
at org.eclipse.persistence.internal.jpa.metadata.MetadataProcessor.processORMMetadata(
at org.eclipse.persistence.internal.jpa.deployment.PersistenceUnitProcessor.processORMetadata(
at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(

I'm wondering if it's a bug? or my design isn't correct (The same design with same Test work fine with Hibernate !)

Here is the code I'm using:

public abstract class GenericEntity<PK> implements Serializable {

public abstract class SecondGenericEntity<PK> extends GenericEntity<PK> { 

@Table(name = "MY_ENTITY")
public class MyEntity extends SecondGenericEntity<Long> { 

Re: @MappedSuperclass with Generic types [message #896728 is a reply to message #896422] Thu, 19 July 2012 13:59 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1109
Registered: July 2009
Senior Member
Bug 372092 was filed for what looks like the same issue, but a reproducable test case was not provided and it works in EclipseLink's tests. Please upload a test case to this bug or a new one.

Best Regards,
Re: @MappedSuperclass with Generic types [message #898764 is a reply to message #896422] Fri, 27 July 2012 13:36 Go to previous message
Badr Elhouari is currently offline Badr ElhouariFriend
Messages: 2
Registered: July 2012
Junior Member
Here is a related test case (Attached "") see also

[Updated on: Fri, 27 July 2012 13:36]

Report message to a moderator

Previous Topic:EclipseLink workbench: where is BLOB column type?
Next Topic:MOXy + Tomcat6 + Maven
Goto Forum:

Current Time: Fri Nov 27 04:35:52 GMT 2015

Powered by FUDForum. Page generated in 0.08008 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software