Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] QueryBasedValueHolder cannot be cast to UnitOfWorkValueHolder

That is odd, please log a bug for this and include as much detail as
possible.



Andreas König-2 wrote:
> 
> Thanks for the reply, James.
> 
> There wasn't more stack. What I found out by now is that it seems to be 
> a mapping problem: I have an embeddable with a ManyToMany-relationship.
> If I change it to FetchType.EAGER it all works well...
> Strange. Is this a bug?
> 
> 
> Best regards,
> Andreas
> 
> 
> James Sutherland wrote:
>> Most of the stack is your app or spring, the EclipseLink part is only at
>> the
>> end, but seems to be missing the caused by, is there more to the stack?
>> 
>> Also please describe exactly what you are doing to get this error,
>> ideally
>> your code for your commit.
>> 
>> Caused by: javax.persistence.RollbackException:
>> java.lang.ClassCastException:
>> org.eclipse.persistence.internal.indirection.QueryBasedValueHolder
>> cannot be cast to
>> org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
>>         at
>> org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commitInternal(EntityTransactionImpl.java:102)
>>         at
>> org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:63)
>>         at
>> org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:456)
>>         ... 105 more 
>> 
>>
> 
> 


-----
---
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/QueryBasedValueHolder-cannot-be-cast-to-UnitOfWorkValueHolder-tp22811338p22847363.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top