[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] What cause this exception
|
Hello Joel,
I didn't get the email with your entities, and likely others on the list didn't either if you sent them via a zip file. I can't say why it is unable to load the IndirectSet class when it attempts to reserialize the enitity though - it seems like an osgi loading issue. The stack trace shows that an object is marked with a basic mapping that has references to other entities. This is not recommended, as object identity will not be preserved. So if ProjectRegistration is marked with a basic mapping, what does it look like?
Best Regards,
Chris
- but I don't see why you would mark an object with a basic mapp
----- Original Message -----
From: "Joel Rosi-Schwartz" <Joel.Rosi-Schwartz@xxxxxxxxx>
To: "Eclipselink-Users" <eclipselink-users@xxxxxxxxxxx>
Sent: Friday, January 2, 2009 11:22:06 o'clock AM (GMT-0500) America/New_York
Subject: Re: [eclipselink-users] What cause this exception
Hi Tim,
It a simply unidirectional association. I have always used @Basic with Hibernate 3.x and Toplink. I have not had problems in the past.
@Basic
This annotation is used to define a field of the class as persistent. Specified on the field/method.
Attribute Type Description Default
fetch FetchType Type of fetching for this field LAZY | EAGER
optional boolean Whether this field having a value is optional (can it have nulls) true | false
@Entity
public class Person
{
@Id
long id;
@Basic(optional=false)
String forename;
...
}
Thanks,
Joel
On 2 Jan 2009, at 15:13, Tim Hollosy wrote:
Joel,
Please just post code samples/traces inline instead of as attachments,
many people aren't going to go through the trouble of downloading
attachments.
Anyway, looks like it's having a problem deserializing UsemeSession
from your @Basic mapping on ProjectRegistration.
I don't have any experience with using @Basic, what's the relationship
in your model between ProjectRegistration and UsemeSession? A
OneToOne? OneToMany?
Thanks,
Tim
On Thu, Jan 1, 2009 at 9:44 AM, Joel Rosi-Schwartz
<
Joel.Rosi-Schwartz@xxxxxxxxx> wrote:
I've attached the entities. I am not casting at all as far as I can tell.
But yes this seems weird to me :-(
On 1 Jan 2009, at 14:23, Tim Hollosy wrote:
Maybe post your entities? It looks like it's trying to do some weird
casting...
./tch
On Thu, Jan 1, 2009 at 9:21 AM, Joel Rosi-Schwartz
<Joel.Rosi-Schwartz@xxxxxxxxx> wrote:
Allow me to detail my environment as I should have done originally. I am
using "EclipseLink 1.0.2 OSGi Bundles" <eclipselink-plugins-1.0.2.zip> in
an
OSGi environment using Equinox 3.4.1.
Thanks,
Joel
On 31 Dec 2008, at 22:38, Joel Rosi-Schwartz wrote:
Hi,
I have Googled for an answer, but I do not even find any hints. What
have
I done wrong to be getting the exception in the attached stacktrace.
Many thanks,
Joel
<stacktrace.txt>
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/eclipselink-users