ArgumentException thrown during query compilation in multithreaded application
------------------------------------------------------------------------------

                 Key: OPENJPA-810
                 URL: https://issues.apache.org/jira/browse/OPENJPA-810
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Jeremy Bauer


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to