Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDB1EE695 for ; Tue, 22 Jan 2013 15:31:43 +0000 (UTC) Received: (qmail 18311 invoked by uid 500); 22 Jan 2013 15:31:43 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 18130 invoked by uid 500); 22 Jan 2013 15:31: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 Delivered-To: moderator for dev@openjpa.apache.org Received: (qmail 15578 invoked by uid 99); 22 Jan 2013 07:12:07 -0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bjliuwei@cn.ibm.com designates 202.81.31.147 as permitted sender) Subject: May be issue about OpenJPA 2.2.1 or configuration issue, could you help me to solve this issue. X-KeepSent: BB04B324:D58AA9C1-48257AFB:0026A147; type=4; name=$KeepSent To: dev@openjpa.apache.org X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: Wei AL Liu Date: Tue, 22 Jan 2013 15:10:10 +0800 X-MIMETrack: Serialize by Router on D23ML022/23/M/IBM(Release 8.5.3FP2HF29 | July 24, 2012) at 01/22/2013 15:10:12 MIME-Version: 1.0 Content-type: multipart/alternative; Boundary="0__=C7BBF068DFB527D78f9e8a93df938690918cC7BBF068DFB527D7" Content-Disposition: inline X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13012207-1396-0000-0000-00000272F196 X-Virus-Checked: Checked by ClamAV on apache.org --0__=C7BBF068DFB527D78f9e8a93df938690918cC7BBF068DFB527D7 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable Hi all, Our project(base on osgi) upgrade openJPA from 2.1.0 to 2.2.1. I fol= low the user guide add the property in the persistence.xml as following but after adding it into the persistence.xml, when we do the enhanceme= nt of the Entity, we run into such kind of error in red color. my enhancement script in eclipse: Anything we missed? = [main] openjpa.Tool - No targets were given. Running on all classes in= your persistent classes list, or all metadata files in classpath directories if you have not listed your persistent classes. = Use -help to display tool usage information. Exception in thread "main" org.apache.openjpa.lib.util.ParseException:= There was an error while setting up the configuration plugin option "Compatibility". The plugin was of type "class org.apache.openj= pa.conf.Compatibility". The plugin property "CheckDatabaseForCascadePersistToDetachedEntity" had no corresponding = setter method or accessible field. The plugin property closely matches "CascadeWithDetach"; perhaps the property was misspelled. Ensu= re that your plugin configuration string uses key values that correspond to setter methods in the plugin class. All possible plugin = properties are: [AbstractMappingUniDirectional, AutoOff, CascadeWithDetach, CloseOnManagedCommit, CopyObjectIds, CopyOnDetach, = FlushBeforeDetach, IgnoreDetachedStateFieldForProxySerialization, JPQL, JPQL_EXTENDED, JP= QL_STRICT, JPQL_WARN, NonDefaultMappingAllowed, NonOptimisticVersionCheck, PrivatePersistentProperties, QuotedNumbersI= nQueries, ReloadOnDetach, StoreMapCollectionInEntityAsBlob, StrictIdentityValues, SuperclassDiscriminatorStrategyByDefault, UseJPA= 2DefaultOrderColumnName, ValidateFalseReturnsHollow, ValidateTrueChecksStore]. = at org.apache.openjpa.lib.conf.Configurations.configureInstance(Config= urations.java:515) at org.apache.openjpa.lib.conf.Configurations.configureInstance(Config= urations.java:443) at org.apache.openjpa.lib.conf.PluginValue.configure(PluginValue.java:= 115) at org.apache.openjpa.lib.conf.ObjectValue.configure(ObjectValue.java:= 98) at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getCompatibilityIn= stance(OpenJPAConfigurationImpl.java:1490) at org.apache.openjpa.persistence.PersistenceMetaDataDefaults.determin= eImplicitAccessType(PersistenceMetaDataDefaults.java:376) at org.apache.openjpa.persistence.PersistenceMetaDataDefaults.determin= eAccessType(PersistenceMetaDataDefaults.java:332) at org.apache.openjpa.persistence.PersistenceMetaDataDefaults.populate= (PersistenceMetaDataDefaults.java:274) at org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepo= sitory.java:914) at org.apache.openjpa.meta.MetaDataRepository.addMetaData(MetaDataRepo= sitory.java:899) at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.= getMetaData(AnnotationPersistenceMetaDataParser.java:746) at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.= parseClassAnnotations (AnnotationPersistenceMetaDataParser.java:545) = at org.apache.openjpa.persistence.AnnotationPersistenceMetaDataParser.= parse(AnnotationPersistenceMetaDataParser.java:415) at org.apache.openjpa.persistence.PersistenceMetaDataFactory.load(Pers= istenceMetaDataFactory.java:260) at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(Meta= DataRepository.java:580) at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(Meta= DataRepository.java:400) at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepo= sitory.java:384) at org.apache.openjpa.enhance.PCEnhancer.(PCEnhancer.java:283) = at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4675) = at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4622) = at org.apache.openjpa.enhance.PCEnhancer$1.run(PCEnhancer.java:4592) = at org.apache.openjpa.lib.conf.Configurations.launchRunnable(Configura= tions.java:741) at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors(Con= figurations.java:731) at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4587) = at org.apache.openjpa.enhance.PCEnhancer.main(PCEnhancer.java:4578) = = = and I download the source code of openJPA, and there is no method invok= e the method of setCheckDatabaseForCascadePersistToDetachedEntity of Compatibility class. Thanks for any help or info for this issue= --0__=C7BBF068DFB527D78f9e8a93df938690918cC7BBF068DFB527D7--