Re: [base] how to get a db connection after call dc.commit()

2006-12-18 Thread Keith Ching
if i remove labeledExtract.countLabeledExtracts(); it all works fine.. i guess there wouldn't be any other labeled extracts since i'm making new extracts each time anyway.. Keith Ching wrote: thanks for the help and clarification.. i will debug anew and compare to the test code. -keith N

Re: [base] how to get a db connection after call dc.commit()

2006-12-17 Thread Keith Ching
thanks for the help and clarification.. i will debug anew and compare to the test code. -keith Nicklas Nordborg wrote: Keith Ching wrote: Hi, I am trying to write a plugin to automatically make objects from sample -> rawbioassay. however, after you call dc.commit() it closes the connecti

Re: [base] how to get a db connection after call dc.commit()

2006-12-17 Thread Nicklas Nordborg
Keith Ching wrote: > Hi, > > I am trying to write a plugin to automatically make objects from sample > -> rawbioassay. > however, after you call dc.commit() it closes the connection. what is > the normal way to > re-establish a connection? dc.reconnect() does not seem to work. > getting a ne

Re: [base] how to get a db connection after call dc.commit()

2006-12-15 Thread Keith Ching
sorry.. here is the stack trace if i don't call dc.commit() until after looping through all the samples. net.sf.basedb.core.BaseException: net.sf.basedb.core.data.ExtractData at net.sf.basedb.core.HibernateUtil.loadData(HibernateUtil.java:1120) at net.sf.basedb.core.Extract.countLabeledExtracts(E

[base] how to get a db connection after call dc.commit()

2006-12-15 Thread Keith Ching
Hi, I am trying to write a plugin to automatically make objects from sample -> rawbioassay. however, after you call dc.commit() it closes the connection. what is the normal way to re-establish a connection? dc.reconnect() does not seem to work. getting a new dc via dc = sc.newDbControl(); do