Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] JPA CustomSequencing - uuid

The issue is the example does not have a default constructor in the
UUIDSequence, but all SessionCustomizers requre this.  I updated the
example.  In general it would probably be better to define the
SessionCustomizer and Sequence object as separate classes.



amerigo5 wrote:
> 
> Anyone been able to make this work:
> http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomSequencing
> 
> I've followed the instruction in the above link but I am getting this
> error:
> 
> Exception [EclipseLink-28014] (Eclipse Persistence Services - 1.0.1 (Build
> 20080905)): org.eclipse.persistence.exceptions.EntityManagerSetupException
> Exception Description: Exception was thrown while processing property
> [eclipselink.session.customizer] with value
> [eclipselink.example.UUIDSequence].
> Internal Exception: java.lang.InstantiationException:
> eclipselink.example.UUIDSequence
>         at
> org.eclipse.persistence.exceptions.EntityManagerSetupException.failedWhileProcessingProperty(EntityManagerSetupException.java:178)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.processSessionCustomizer(EntityManagerSetupImpl.java:1222)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateServerSession(EntityManagerSetupImpl.java:1198)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:237)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:69)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:118)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:112)
>         at
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:100)
> 
> Am I missing something here?  Thanks.
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/JPA-CustomSequencing---uuid-tp19850500p19857592.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top