You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Rick Curtis (JIRA)" <ji...@apache.org> on 2011/03/16 01:43:29 UTC

[jira] Commented: (OPENJPA-1960) openjpa.InitializeEagerly breaks bean-validation integration

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

Rick Curtis commented on OPENJPA-1960:
--------------------------------------

What is the exception / warning that you are getting?

Thanks,
Rick

> openjpa.InitializeEagerly breaks bean-validation integration
> ------------------------------------------------------------
>
>                 Key: OPENJPA-1960
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1960
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel, validation
>    Affects Versions: 2.1.0
>            Reporter: Gerhard Petracek
>
> <property name="openjpa.InitializeEagerly" value="true"/> breaks the bean-validation integration
> AbstractBrokerFactory#makeReadOnly
> evaluates conf.isInitializeEagerly() which returns true (due to the config) and calls _conf.setReadOnly(Configuration.INIT_STATE_FROZEN)
> + at the end of AbstractBrokerFactory#initializeBroker it gets called again
> that causes:
> the created BrokerFactory gets used as argument for PersistenceProviderImpl#loadValidator which fails (with a warning or an exception depending on the validation-mode configured in the persistence.xml) because the config is in state INIT_STATE_FROZEN

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira