Here is the code where the Stack trace is from. As you can see,
nothing special going on:
/*
 * ClientDataManager.java
 *
 * Created on September 10, 2004, 9:32 AM
 */

package com.vort.utils;

import com.vort.beans.Client;
import org.exolab.castor.jdo.Database;
import org.exolab.castor.jdo.JDO;
import org.exolab.castor.jdo.PersistenceException;


/**
 *
 * @author  nstuart
 */
public class ClientDataManager extends DataManager {
    ....
    public void delete(Object object) throws PersistenceException {
        Client client = (Client)object;
        Database db = null;        
        client.getUser().removeClients(client);
        try{
            db = jdo.getDatabase();
            db.begin();
            db.update(client.getUser());
            db.commit();
        }catch (PersistenceException pe){
            rollback(db);
            throw new PersistenceException("Could not delete client.", pe);
        }finally{
            closeDatabase(db);
        }
    }
   ....
}

The only thing thats 'kinda' tricky is that Client depends on UserInfo
and some relationships going down as well, but still it works with an
older checkout of Castor but not the newest. I'll try and see if I can
come up with a small case tonight thats repeatable.



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

Reply via email to