Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-3411

EJB/JPA error when call to persist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 8.1.0.CR1, 8.1.0.CR2
    • Fix Version/s: 8.1.0.Final
    • Component/s: EJB
    • Environment:
      • WildFly 8.1.0.CR2
      • EclipseLink 2.5.1 (Added)
      • JSF
      • Netbeans 8
    • Steps to Reproduce:
      Hide
      • I have an entity with ID = 1 stored in the database.

      Steps to reproduce:
      1) Create a new object using the JSF interface, add like ID the number 1.
      2) Try to save (internally the application calls the EJB method to persist the entity), we get an exception because of duplicate primary key.
      3) Change the ID (using the interface) with other number, for example 2. We are using the same referenced object in memory.
      4) Try to save again, we will get an exception like this: "Communication failure detected when attempting to perform read query outside of a transaction"

      As I said before, this error is not fired with the same eclipselink version on glassfish 4.

      Show
      I have an entity with ID = 1 stored in the database. Steps to reproduce: 1) Create a new object using the JSF interface, add like ID the number 1. 2) Try to save (internally the application calls the EJB method to persist the entity), we get an exception because of duplicate primary key. 3) Change the ID (using the interface) with other number, for example 2. We are using the same referenced object in memory. 4) Try to save again, we will get an exception like this: "Communication failure detected when attempting to perform read query outside of a transaction" As I said before, this error is not fired with the same eclipselink version on glassfish 4.
    • Affects:
      Compatibility/Configuration

      Description

      I'm getting an exception when I try to persist an object for second time, after get an exception because of duplicate primary key.

      I have tested the same application on GlassFish 4 with JSF(Mojarra) 2.2.6, EclipsLink 2.5.1 and this error is not fired, all works fine.

      I also tried changing the default datasource setting in Wildfly.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dmlloyd David Lloyd
                Reporter:
                Lynx6 Wilber Saca
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: