Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 69291 invoked from network); 22 Mar 2011 20:52:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 20:52:43 -0000 Received: (qmail 41798 invoked by uid 500); 22 Mar 2011 20:52:43 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 41775 invoked by uid 500); 22 Mar 2011 20:52:43 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 41767 invoked by uid 99); 22 Mar 2011 20:52:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 20:52:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 20:52:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B517C42FBC for ; Tue, 22 Mar 2011 20:52:05 +0000 (UTC) Date: Tue, 22 Mar 2011 20:52:05 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: <639585605.4664.1300827125723.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <329926854.5427.1300231169625.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (OPENJPA-1960) openjpa.InitializeEagerly breaks bean-validation integration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis updated OPENJPA-1960: --------------------------------- Affects Version/s: 2.2.0 Fix Version/s: 2.2.0 > 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 > > > 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