Community
Participate
Working Groups
Build Identifier: Bundle-Version: 2.0.1.v20100213-r6600 on GlassFish v3.0.1 First of all, I'm pretty sure that this issue is related to Bug 312132 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=312132). However I thought that it was better to open a separate entry in order to not introduce confusion as this one leads to a different exception. I'm using GlassFish v3.0.1. The exception: javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long This exception appears when calling entity.getId() when getId() is a public method of a generic MappedSuperclass that returns a generic IdType. Please refer to the files attached for more information. Reproducible: Always Steps to Reproduce: Please see the attached files stacktrace.txt and testcase.txt for a description on how to reproduce the issue.
Created attachment 175825 [details] The stack trace
Created attachment 175826 [details] The test case
F
Changed the headline as it doesn't really matter if there's a one to one relationship involved, it's rather the generic mapped super class id that seems to be the problem.
I was unable to reproduce this error off the 2.2 stream. I was able to reproduce it off the 2.1.1 stream however. Therefore, I suspect the following bug fix corrected this issue as well, BUG 312132 Nightly builds can be downloaded here: http://www.eclipse.org/eclipselink/downloads/nightly.php
Thanks Guy, I have tried the 2.2 stream and it seems to work so far, but as I ran into a couple of other issues I will have to reconfirm later.
Well, so far this issue seems to be resolved in deed. May be closed in my opinion.
Fixed in the latest streams.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink