This one time, at band camp, Jeff Bagens said:

JB >
JB >I think I've correctly setup lazy lady, but I keep getting this error when 
querying objects with lazied collections:
JB >
JB >java.lang.NullPointerException
JB >at 
org.exolab.castor.persist.TransactionContext.markCreate(TransactionContext.java:695)
JB >at org.exolab.castor.persist.ClassMolder.preStore(ClassMolder.java:1332)
JB >at org.exolab.castor.persist.LockEngine.preStore(LockEngine.java:723)
JB >at 
org.exolab.castor.persist.TransactionContext.prepare(TransactionContext.java:1403)
JB >at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:507)
JB >at test.doGet(test.java:45)
JB >at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
JB >at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
JB >at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
JB >at com.evermind._bxb._crd(.:501)
JB >at com.evermind._bxb._ukb(.:170)
JB >at com.evermind._cn._uab(.:576)
JB >at com.evermind._cn._fm(.:189)
JB >
JB >My mapping is simply:
JB >
JB >...
JB >
JB ><field name="Person" type="Person" lazy="true" collection="collection" 
required="false">
JB >   <sql many-key="PersonID" />
JB >   <xml name="Persons" node="element" />
JB >      </field>
JB >
JB >
JB >
JB >Any suggestions?? I could really use any friendly advice.

Jeff,

Let's see more of your mapping. I can't really tell from the chunk
above how things are actually mapped. I'm wondering if you've modeled
bi-directional relations in the involved classes.

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

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

Reply via email to