openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <>
Subject [jira] Commented: (OPENJPA-1960) openjpa.InitializeEagerly breaks bean-validation integration
Date Fri, 18 Mar 2011 16:10:30 GMT


Rick Curtis commented on OPENJPA-1960:

Gerhard -

Please give the attached patch a try. 

I really don't like the change, but I want to make sure I am looking at fixing the same path
that you are reporting. Once I get the thumbs up from you I'll see about fixing this another


> openjpa.InitializeEagerly breaks bean-validation integration
> ------------------------------------------------------------
>                 Key: OPENJPA-1960
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel, validation
>    Affects Versions: 2.1.0
>            Reporter: Gerhard Petracek
>            Assignee: Rick Curtis
>         Attachments: OPENJPA-1960-test_fix.jar
> <property name="openjpa.InitializeEagerly" value="true"/> breaks the bean-validation
> AbstractBrokerFactory#makeReadOnly
> evaluates conf.isInitializeEagerly() which returns true (due to the config) and calls
> + 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:

View raw message