users@glassfish.java.net

Re: Glassfish V3, EclipseLink and _at_OneToOne(fetch = FetchType.LAZY) problem

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Wed, 03 Mar 2010 18:18:49 -0800

Hi Steve,

This normally occurs if some how EclipseLink is not able to access
dynamically weaved classes. Can you try deploying your app after
restarting V3. In any case, it would be nice to know what exact steps
and configuration got you into this issue. Can you please try to come up
with minimal steps required to reproduce.

Thanks,
Mitesh

On 3/1/2010 1:21 AM, glassfish_at_javadesktop.org wrote:
> Hi All,
>
> I see that the problem with dynamic weaving of one-to-one relationships still seems to exist in Glassfish V3 with EclipseLink. This eventually got fixed in Glassfish V2 with TopLink Essentials. I am using the latest Glassfish V3 updates from a couple of days ago.
> I am using the same set of entities as I do in a Glassfish V2 application, only now with Glassfish V3, and it will only work correctly if I comment out the FetchType.LAZY. If left in, the partial stack trace looks like this :-
>
> Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.IntegrityException
> Descriptor Exceptions:
> ---------------------------------------------------------
> Exception [EclipseLink-60] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: The method [_persistence_setdetails_vh] or
> SEVERE: [_persistence_getdetails_vh] is not defined in the object [com.cashpower.suprima.data.usersgroups.UserEntry].
> Internal Exception: java.lang.NoSuchMethodException: com.cashpower.suprima.data.usersgroups.UserEntry._persistence_getdetails_vh()
> Mapping: org.eclipse.persistence.mappings.OneToOneMapping[details]
> Descriptor: RelationalDescriptor(com.cashpower.suprima.data.usersgroups.UserEntry --> [DatabaseTable(user_entry)])
> Runtime Exceptions:
> ---------------------------------------------------------
> java.lang.NullPointerException
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:478)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:406)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:671)
> at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:620)
> at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:228)
> at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:369)
> ... 162 more
>
> Should I be posting this to EclipseLink forums, or can someone in the Glassfish area help ?
>
> Thanks,
>
> Steve.
> [Message sent by forum member 'suttridge_farm' (steve_at_vanrhynsdorp.co.za)]
>
> http://forums.java.net/jive/thread.jspa?messageID=389324
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>