Re: ClassCast exception while iterating over an element collection of embeddables

2012-07-23 Thread Rick Curtis
Mark - Is there any way that you could put together a small standalone unit test that recreates this issue? I am unable to put a test together that demonstrates the ClassCastException. Thanks, Rick On Fri, Jul 20, 2012 at 9:05 PM, Mark Youwanes mark_youwa...@yahoo.comwrote: Hi Rick, I'm

Re: ClassCast exception while iterating over an element collection of embeddables

2012-07-23 Thread Rick Curtis
Sorry, I missed that you opened a JIRA already... I'll try to take a look sometime in the coming days. On Mon, Jul 23, 2012 at 8:44 AM, Rick Curtis curti...@gmail.com wrote: Mark - Is there any way that you could put together a small standalone unit test that recreates this issue? I am

Re: ClassCast exception while iterating over an element collection of embeddables

2012-07-21 Thread Mark Youwanes
Hi Rick, I'm using OpenJPA 2.2.0 and build-time enhancement. The ftp connection is getting retrieved eagerly as a member of a ClientRegion object: @Entity @Table(name = client_region) public class ClientRegion extends AbstractNamedEntity { private static final long serialVersionUID =

Re: ClassCast exception while iterating over an element collection of embeddables

2012-06-24 Thread Rick Curtis
Mark - Can we see the code that shows how you are getting a FtpConnection? Also, what version of OpenJPA are you running and how are you enhancing your Entities? One note, I'm pretty certain you can get rid of the 'targetClass = FtpSubdirectory.class' attribute of your ElementCollection

ClassCast exception while iterating over an element collection of embeddables

2012-06-22 Thread markyo
) private SubdirectoryType type; @Column(name = description) private String description; public String getPath() { return path; } ... -- View this message in context: http://openjpa.208410.n2.nabble.com/ClassCast-exception-while-iterating-over-an-element-collection