openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (OPENJPA-1960) openjpa.InitializeEagerly breaks bean-validation integration
Date Thu, 02 Feb 2012 17:08:54 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Albert Lee closed OPENJPA-1960.
-------------------------------


Close issue in preparation for 2.2.0 release.
                
> 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, 2.2.0
>            Reporter: Gerhard Petracek
>            Assignee: Rick Curtis
>             Fix For: 2.2.0
>
>         Attachments: OPENJPA-1960-test_fix.jar
>
>
> <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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message