cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marco turchi" <>
Subject Commit Exception Error
Date Tue, 08 Jan 2008 18:02:22 GMT
Dear experts,
I'm running a java software that gets some data from the DB, computes them
and the writes the result to the DB... Unfortunately, the computation of the
data gets 10 hs...
I'm able to get the data, compute them, but when I try to write to the DB, I
get this error:
org.objectstyle.cayenne.CayenneRuntimeException: [v.1.2.3 May 6 2007] Commit
        at org.objectstyle.cayenne.access.DataContext.flushToParent(
        at org.objectstyle.cayenne.access.DataContext.commitChanges (
        at com.translation.alg.WriterData.insert(
        at com.translation.alg.News.write(
        at :66)
        at com.translation.alg.TranslationNews.main(
Caused by: java.sql.SQLException: Connection.close() has already been
called. Invalid operation in this state.
        at com.mysql.jdbc.Connection.getMutex (
        at com.mysql.jdbc.Statement.execute(
        at org.objectstyle.cayenne.dba.mysql.MySQLPkGenerator.pkFromDatabase
        at org.objectstyle.cayenne.dba.JdbcPkGenerator.generatePkForDbEntity(
        at org.objectstyle.cayenne.access.DataDomainSyncBucket.appendQueries
        at org.objectstyle.cayenne.access.DataDomainFlushAction.preprocess (
        at org.objectstyle.cayenne.access.DataDomainFlushAction.flush(
        at org.objectstyle.cayenne.access.DataDomain.onSyncFlush( :846)
        at org.objectstyle.cayenne.access.DataDomain$2.transform(
        at org.objectstyle.cayenne.access.DataDomain.runInTransaction(
        at org.objectstyle.cayenne.access.DataDomain.onSync (
        at org.objectstyle.cayenne.access.DataContext.flushToParent(
        ... 5 more

I have tried to delete and recreate the DataContext using
createDataContext() before to write to the table, but I get the same error.
(I have created the DataContext the first time when I start the program...)
Can u help me?
Thanks a lot

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message