I managed to battle through the ClassMolder
nullpointer exception I was facing few weeks back to
get all the config files loaded without problem...so I
thought. I'm now getting the following error trying to
do a "select all" on a class that has a mapping
present in the database file and the xml file is a
valid structure.  I noticed another email on this same
thread with reference to the example.  Is this a
regression in 0.9.5.2 or (more likely) another
misconfiguration on my part?

Nov-02-2003 7:28:30:459 PM, PST [ERROR]
(apex.common.SystemException:?) -- Failed to execute
query executeFind: ooqlStatement='SELECT object FROM
com.apex.chronos.app.domains.GeneratedBillingType
object' bindValues=[]
org.exolab.castor.jdo.QueryException: Could not find
mapping for class
com.apex.chronos.app.domains.GeneratedBillingType
        at
org.exolab.castor.jdo.oql.ParseTreeWalker.checkFromPart(ParseTreeWalker.java:305)
        at
org.exolab.castor.jdo.oql.ParseTreeWalker.checkErrors(ParseTreeWalker.java:222)
        at
org.exolab.castor.jdo.oql.ParseTreeWalker.<init>(ParseTreeWalker.java:137)
        at
org.exolab.castor.jdo.engine.OQLQueryImpl.create(OQLQueryImpl.java:278)
        at
org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(DatabaseImpl.java:467)

<!DOCTYPE database PUBLIC "-//EXOLAB/Castor JDO
Configuration DTD Version 1.0//EN"
"http://castor.exolab.org/jdo-conf.dtd";>
<database name="chronos" engine="oracle">

   <jndi name="java:comp/env/jdbc/ChronosPool"/>

   <mapping href="./GeneratedAddressMapping.xml"/>
   <mapping href="./GeneratedBillingTypeMapping.xml"/>
   <!-- rest of mappings excluded for brevity -->   
</database>


p.s. IMHO...a warning should be logged in ClassMolder
after the following line if the "relatedType" doesn't
exist.  This was the problem with my mapping which led
to a null pointer trying to compare the number of many
fields mapped in the current file with those in the
source object (second line of code below).

//NEEDS WARNING IF relDesc is null
ClassDescriptor relDesc = loader.getDescriptor(
ds.resolve( relatedType ) );

//Causes null pointer without helpful logging if 
//relDesc above was null
if ( manyName.length != relatedIdSQL.length )

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to