ZeroTurnaround Support Forum » JRebel Support

Glassfish v3 Eclipselink Load time weaving

(8 posts)
  • Started 8 months ago by Sven
  • Latest reply from Sven
  • 1 Members Subscribed To Topic

  1. Sven

    Member
    Posts: 2

    The jrebel agent interferes somehow with eclipselink of glassfish v3
    using two Entities:

    @Entity
    Measurement {
    ...
    @ManyToOne(fetch = FetchType.LAZY)
    private User user;
    ...
    }
    @Entity
    User {
    ...
    @OneToMany(mappedBy = "user", fetch = FetchType.LAZY)
    private List<Measurement> measurements;
    ...
    }

    yields this Exception in glassfish:
    javax.ejb.EJBException
    at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5070)
    <snip>
    Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.IntegrityException
    Descriptor Exceptions:
    ---------------------------------------------------------
    Exception [EclipseLink-60] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: The method [_persistence_setuser_vh] or [_persistence_getuser_vh] is not defined in the object [Measurement].
    Internal Exception: java.lang.NoSuchMethodException: Measurement._persistence_getuser_vh()
    Mapping: org.eclipse.persistence.mappings.OneToOneMapping[user]
    Descriptor: RelationalDescriptor(Measurement --> [DatabaseTable(measurements)])

    I guess I could work around this Issue using static-weaving for my entities, will try later.

    Sven

    Posted 8 months ago #
  2. ekabanov

    LeadRebel
    Posts: 546

    Thanks for the report, it seems to be a bug in our GlassFish integration, the case has been assigned and we'll update the thread when there are news.

    Posted 8 months ago #
  3. rein

    ExtremeRebel
    Posts: 240

    Hi Sven,
    Please add -Drebel.log=trace JVM option and send the jrebel.log file to support@zeroturnaround.com.
    Also what exact Glassfish version are you using?

    Posted 8 months ago #
  4. Sven

    guest

    I was using Glassfish 3, the final Version from
    https://glassfish.dev.java.net/downloads/v3-final.html
    this one to be exact:
    http://download.java.net/glassfish/v3/release/glassfish-v3-unix.sh

    jrebel.log will follow this evening/night...

    Posted 8 months ago #
  5. Sven

    Member
    Posts: 2

    Hi,
    the above is slightly incorrect, this is the GlassFish v3 Web Profile (en) from
    http://download.java.net/glassfish/v3/release/glassfish-v3-web-unix.sh
    in the server.log, it identifies itself as 'Running GlassFish Version: GlassFish v3 (build 74.2)'
    email with jrebel.log is send.
    Thanks.

    Posted 8 months ago #
  6. toomasr

    CoreRebel
    Posts: 482

    Currently we've been unable to reproduce. Is there any special configuration for eclipselink used? I just used vanilla Glassfishv3 and a sample application where I've outlined <provider>org.eclipse.persistence.jpa.PersistenceProvider </provider> so that EclipseLink would be used.

    Posted 7 months ago #
  7. lauri

    Member
    Posts: 480

    Fixed in nightly build http://www.zeroturnaround.com/nightly-build/jrebel-nightly-dev.zip

    Posted 7 months ago #
  8. Sven

    guest

    Yes, it is fixed in nightly builds.

    Great Work!

    Posted 7 months ago #

RSS feed for this topic

Reply

(required)

(required)

(optional)

(required)

Allowed markup: a blockquote code em strong ul ol li.
Put code in between `backticks`.

Olark Livehelp