users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Mon, 01 Mar 2010 01:21:33 PST

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