OpenJPA
  1. OpenJPA
  2. OPENJPA-810

ArgumentException thrown during query compilation in multithreaded application

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      This problem was reported on the user mailing list by several users. It appeared to be an enhancement related problem similar to OPENJPA-234, but I was able to reproduce the problem (using a test app provided by Yann [1] via direct email) with classes that were enhanced with the PCEnhancer. Based on the trace, it appears that the metadata repository is being accessed concurrently by multiple threads and some persistent classes are not yet loaded while threads attempt to access them. The problem occurs more frequently when a) the persistent class list is large and b) trace is enabled.

      [1] http://n2.nabble.com/ArgumentException-%28Incomplete-initialisation-of-EntityManager%29-tc1577196.html#none

        Activity

        Jeremy Bauer created issue -
        Hide
        Jeremy Bauer added a comment -

        Attaching surefire reports which include trace.

        Show
        Jeremy Bauer added a comment - Attaching surefire reports which include trace.
        Jeremy Bauer made changes -
        Field Original Value New Value
        Attachment OPENJPA-810_trace.zip [ 12395113 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jeremy Bauer
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development