Apache JDO Project - Re: Help request: initial commit of detachable shopping cart object

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > January 2006 > Re: Help request: initial commit of detachable shopping cart object





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Help request: initial commit of detachable shopping cart object
Michelle Caisse

2006-01-04, 8:45 pm

Hi Matthew,

There is an enhancement error with application identity in
org.apache.jdo.tck.pc.shoppingcart.Cart. Perhaps a cut-and-paste error
in package.jdo? Changing Product to Cart for the oid class of Cart fixes
this problem. Then it appears that application and datastore identity
have the same issues. I'm not certain which problem you were asking for
help with. I'll continue to take a look at the errors and see what I
can find.

org.jpox.metadata.InvalidPrimaryKeyException: Class
org.apache.jdo.tck.pc.shoppingcart.Cart has been specified with an
object-id class org.apache.jdo.tck.pc.shoppingcart.Product$Oid which has
a field sku, but this field was not found in Class
org.apache.jdo.tck.pc.shoppingcart.Cart.
at
org.jpox.metadata.MetaDataUtils.processPrimaryKeyClass(MetaDataUtils.java:331)
at
org.jpox.metadata.MetaDataUtils.isValidPrimaryKeyClass(MetaDataUtils.java:266)
at
org.jpox.metadata.ClassMetaData.determineObjectIdClass(ClassMetaData.java:982)
at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:455)
at
org.jpox.metadata.MetaDataManager.populateClassesInFile(MetaDataManager.java:853)
at
org.jpox.metadata.MetaDataManager.loadMetaDataForClass(MetaDataManager.java:1377)
at
org.jpox.metadata.MetaDataManager.getFileMetaDataForClass(MetaDataManager.java:529)
at
org.jpox.metadata.MetaDataManager. getMetaDataForClassOrInterface(MetaDataM
anager.java:467)
at
org.jpox.metadata.MetaDataManager.getClassMetaData(MetaDataManager.java:432)
at
org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:363)
at
org.jpox.metadata.CollectionMetaData.populate(CollectionMetaData.java:237)
at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java:858)
at
org.jpox.enhancer.metadata.EnhancerFieldMetaData.populate(EnhancerFieldMetaData.java:280)
at
org.jpox.metadata.ClassMetaData.populateFieldMetaData(ClassMetaData.java:879)
at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:453)
at
org.jpox.metadata.MetaDataManager.populateClassesInFile(MetaDataManager.java:853)
at
org.jpox.enhancer.metadata.EnhancerMetaDataManager. populateRegisteredFile(EnhancerMetaDataM
anager.java:92)
at
org.jpox.enhancer.GeneratorBase.readJDOConfig(GeneratorBase.java:1344)
at org.jpox.enhancer.JPOXEnhancer.main(JPOXEnhancer.java:254)

-- Michelle

Matthew T. Adams wrote:

> Hi guys,
>
> I added some artifacts in the name of JDO-272. Currently, only
> application identity is working, and the JDOHelper test class
> IsDetached is broken, but due to project config/setup/classpath
> issues, which probably has to do with the fact that I'm introducing a
> new PC object model, schema, etc.
>
> Can someone grab the latest, run
>
> maven -o -Djdo.tck.cfglist installSchema
> maven -o -Djdo.tck.cfglist=detach.conf runtck.jdori
>
> and tell me what's wrong with the config?
>
> Thanks,
> Matthew
>
> *Matthew T. Adams*
> Corporate Technical Advisor & Senior Consultant
> Mobile: +1 253 732 1051
> Phone: +1 206 331 3833
> Fax: +1 815 331 0952
> matthew.adams@xcalia.com <mailto:matthew.adams@xcalia.com>
> P.O. Box 24163
> Federal Way, WA 98093
> www.xcalia.com <http://www.xcalia.com/>
>
>
> Xcalia makes implementing SOA easy with agile business intermediation
> software that combines heterogeneous data with services to easily
> develop and deploy transactional composite applications. Enterprises
> can quickly respond to changing business requirements and dramatically
> reduce the costs of data access and service integration.
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com