Hi
I've got a class that works perfectly under unit test but fails at the
broker.beginTransaction() line when running under Tomcat 4.  It looks
like I'm getting a StackOverFlow
The output in the LOG is 
[org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] DEBUG: Request
new connection from ConnectionFactory: [EMAIL PROTECTED]
[org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] DEBUG:
localBegin was called for con [EMAIL PROTECTED]
[org.apache.ojb.broker.accesslayer.ConnectionManagerImpl] DEBUG: Try to
change autoCommit state to 'false'
107769 DEBUG [http8080-Processor3] persistence.Registrar - In Finally
clause
The method being run is
 try
           {
                LOG.debug("In try block");
                   broker = PersistenceBrokerFactory.defaultPersistenceBroker();
                   LOG.debug("Got broker "+broker);
                   broker.beginTransaction();
                   LOG.debug("User is "+user);
                   broker.store(user);
                   LOG.debug("\n\n\n\n\nUser id is "+((User)user).getId());
                  broker.commitTransaction();
           }
           catch(PersistenceBrokerException pbe)
           {
                LOG.error("PersistenceBrokerException"+pbe);
                   if(broker != null) broker.abortTransaction();
                   // do more exception handling
           }
           catch(Throwable e)
           {
                LOG.error("Throwable "+e);
           }

The database is Mysql. OJB version is db-ojb-1.0.rc6

Would appreciate any help.

Alan Halley


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to