db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Caisse <Michelle.Cai...@Sun.COM>
Subject Re: Collections of interfaces
Date Wed, 27 Apr 2005 17:07:28 GMT
Hi, Erik,

Does this extension work with SchemaTool also?  When I try it I get:

JPOX SchemaTool (version 1.1.0-beta-3) : Creation of the schema

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/jdo/tck/pc/fieldtypes/SimpleInterface
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at 
org.jpox.metadata.MetaDataUtils.resolvedClassForName(MetaDataUtils.java:348)
        at 
org.jpox.metadata.CollectionMetaData.populate(CollectionMetaData.java:116)
        at org.jpox.metadata.FieldMetaData.populate(FieldMetaData.java:618)
        at org.jpox.metadata.ClassMetaData.populate(ClassMetaData.java:647)
        at 
org.jpox.metadata.MetaDataManager.initialiseMetaDataForClass(MetaDataManager.java:753)
        at 
org.jpox.metadata.MetaDataManager.getMetaDataForClassOrInterface(MetaDataManager.java:407)
        at 
org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:259)
        at 
org.jpox.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:244)
        at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.getReferencedClasses(RDBMSManager.java:2323)
        at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTables(RDBMSManager.java:2118)
        at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.addClassTablesAndValidate(RDBMSManager.java:2395)
        at 
org.jpox.store.rdbms.RDBMSManager$ClassAdder.execute(RDBMSManager.java:2066)
        at 
org.jpox.store.rdbms.RDBMSManager$MgmtTransaction.execute(RDBMSManager.java:1936)
        at 
org.jpox.store.rdbms.RDBMSManager.addClasses(RDBMSManager.java:477)
        at org.jpox.SchemaTool.createSchemaTables(SchemaTool.java:176)
        at org.jpox.SchemaTool.main(SchemaTool.java:610)

The metadata was:
...
<field name="ListOfSimpleInterface6" >
<extension vendor-name="jpox" key="implementation-classes" 
value="org.apache.jdo.tck.pc.fieldtypes.SimpleInterface"/>
<collection element-type="org.apache.jdo.tck.pc.fieldtypes.SimpleInterface">
</collection>
</field>
<field name="ListOfSimpleInterface7" >
<extension vendor-name="jpox" key="implementation-classes" 
value="org.apache.jdo.tck.pc.fieldtypes.SimpleInterface"/>
<collection 
element-type="org.apache.jdo.tck.pc.fieldtypes.SimpleInterface" 
embedded-element="true">
</collection>
</field>
...

-- Michelle

erik@jpox.org wrote:

>??? JPOX supports it using the extension implementation-classes and
>listing all implementations there.
>
>Erik Bengtson 
>
>-----Original Message-----
>From: Craig Russell [mailto:Craig.Russell@Sun.COM] 
>Sent: Wednesday, April 27, 2005 2:17 AM
>To: JDO Expert Group
>Subject: Collections of interfaces
>
>Javadogs,
>
>The JPOX team has pointed out that JDO doesn't require support for 
>Collections of interfaces as persistent field types.
>
>Clearly, this was an oversight, as it was meant to be required and 
>there are actually TCK tests for it.
>
>I'd like to correct the oversight in the JDO 2.0 spec.
>
>So I need to know:
>
>Are there any JDO implementations that do not support this? All 
>implementations that claimed to pass the TCK should have run into 
>this...
>
>Thanks,
>
>Craig
>
>Craig Russell
>Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>408 276-5638 mailto:Craig.Russell@sun.com
>P.S. A good JDO? O, Gasp!
>
>  
>


Mime
View raw message