ClassCastException « Load « JPA Q&A





1. ClassCastException after joined-subclass load    forum.hibernate.org

...

2. ClassLoader causes ClassCastException    forum.hibernate.org

Hi, I posted this morning a message describing a ClassNotFoundException (see below) which appears in my application as soon as I deploy to tomcat...but the application works fine as stand alone. Now I found out the reason and the reason is really astonishing: the results within my list are produced from the following ClassLoader: sun.misc.Launcher$AppClassLoader@e80a59 ...and the User object I use ...

3. ClassCastException for SerializableProxy when lazy loading    forum.hibernate.org

Newbie Joined: Wed Jan 18, 2006 7:25 am Posts: 3 I first want to say that I know I have posted this problem on the EJB3 forum a couple of days ago, but because that forum is a lot less active than the hibernate forum, I got no response there, and the problem concerns hibernate completely I thought I would do ...

4. ClassCastException when from session.load?    forum.hibernate.org

When I fetch by an object by name using an hql query, I can cast it. If I fetch it by ID, if I cast it, I get a ClassCastException. There is something strange that I don't understand about doing a query vs. doing a session.load. I would appreciate a good slapping on what docs I didn't read. Googling for hours ...

5. java.lang.ClassCastException with lazy loading class    forum.hibernate.org

Hi all, I am using Spring with Hibernate 3.1. An ClassCastException is throw in the follwoing code: HibernateTemplate temp = getHibernateTemplate(); Object load = temp.load(FormSubmission.class, submissionId); return (FormSubmissionInterface) load; (Exeption occure this line) In debug mode, I can see the load=FormSubmissonInterface$$EnhanceByCGLIB$$ My mapping file is:

6. ClassCastException loading union-subclass collection    forum.hibernate.org

Newbie Joined: Thu Apr 19, 2007 10:38 am Posts: 10 Hi to all. I made this test using the base class org.hibernate.test.TestCase which is bundled in every hibernate source distribution. Can someone give me a comment about it? The object model is very simple: a superclass A and two subclasses, B and C. B has a list of C's and C ...

7. Possible solution to ClassCastException / Lazy loading issue    forum.hibernate.org

Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message nbsherid Post subject: Possible solution to ClassCastException / Lazy loading issue Posted: Thu May 03, 2007 6:44 am Newbie Joined: Sat Jan 13, 2007 5:09 am Posts: 2 Location: Sydney, Australia I've been having a problem ...