[ 
https://issues.apache.org/jira/browse/OPENJPA-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16770853#comment-16770853
 ] 

Jonathan Pomes commented on OPENJPA-2767:
-----------------------------------------

I'v been trying this fix and it's not effective. The fix here tries to reload 
the ValueMapDiscriminator cache from the open jpa registry if it fail once. 
However we cannot assume that the OpenJpa registry is ready yet even after a 
second cache load. One way to grantee this to work might be to wait for the 
OpenJpa registry to by fully loaded with all the jpa Classes available in the 
ClassLoader (not very effective thougth).

> Incomplete ValueMapDiscriminatorStrategy cache 
> -----------------------------------------------
>
>                 Key: OPENJPA-2767
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2767
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Will Dazey
>            Assignee: Will Dazey
>            Priority: Minor
>             Fix For: 2.2.3
>
>         Attachments: OJ2767_2.2.x_v4.patch, OJ2767_2.2.x_v5.patch
>
>
> There exists the possibility that the discriminator class cache in 
> ValueMapDiscriminatorStrategy was originally created before the server fully 
> loaded all classes. If this happens, the cache is incomplete and needs to be 
> rebuilt. A simple enough strategy would be to just try rebuilding the cache, 
> before giving up and throwing a CNFE, and check again.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to