Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-810

ArgumentException thrown during query compilation in multithreaded application

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.0
    • None
    • None
    • 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

      Attachments

        1. OPENJPA-810_trace.zip
          9 kB
          Jeremy Bauer

        Activity

          People

            Unassigned Unassigned
            techhusky Jeremy Bauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: