Bugs item #1827, was opened at 22/04/2009 08:58 You can respond by visiting: http://labs.libre-entreprise.org/tracker/?func=detail&atid=113&aid=1827&group_id=8 Or by replying to this e-mail entering your response between the following markers: #+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+ (enter your response here) #+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+#+ Status: Open Priority: 5 Submitted By: Jean Couteau (jcouteau) Assigned to: Nobody (None) Summary: Bug simulation sur caparmor Category: simulation engine Group: EC-2009 Resolution: None Initial Comment: Sur 12 simulations lances sur caparmor, 2 sont en erreur pour la mme raison : ERROR|08:38:54,460|JDBCExceptionReporter.java|101|logExceptions|IO Exception: java.io.IOException: Bad file descriptor; SQL statement: update result set topiaVersion=?, topiaCreateDate=?, resultDate=?, name=?, matrix_name=?, matrix_dim=?, matrix_dimNames=?, matrix_semantics=?, matrix_data=? where topiaId=? and topiaVersion=? [90028-111] ERROR|08:38:54,462|AbstractFlushingEventListener.java|324|performExecutions|Could not synchronize database state with session org.hibernate.exception.GenericJDBCException: could not update: [fr.ifremer.isisfish.entities.ResultImpl#fr.ifremer.isisfish.entities.Result#1240389465269#0.17940674829936498] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2453) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027) at org.codelutin.topia.framework.TopiaContextImpl.commitTransaction(TopiaContextImpl.java:721) at simulators.DefaultSimulator.simulate(DefaultSimulator.java:318) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher.localSimulateSameThread(InProcessSimulatorLauncher.java:376) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher$SimThread.run(InProcessSimulatorLauncher.java:237) Caused by: org.h2.jdbc.JdbcSQLException: IO Exception: java.io.IOException: Bad file descriptor; SQL statement: update result set topiaVersion=?, topiaCreateDate=?, resultDate=?, name=?, matrix_name=?, matrix_dim=?, matrix_dimNames=?, matrix_semantics=?, matrix_data=? where topiaId=? and topiaVersion=? [90028-111] at org.h2.message.Message.getSQLException(Message.java:107) at org.h2.message.Message.convertIOException(Message.java:291) at org.h2.value.ValueLob.createFromReader(ValueLob.java:229) at org.h2.value.ValueLob.convertToFileIfRequired(ValueLob.java:734) at org.h2.store.DataPage.getValueLen(DataPage.java:549) at org.h2.result.Row.getByteCount(Row.java:60) at org.h2.store.Storage.addRecord(Storage.java:177) at org.h2.index.ScanIndex.add(ScanIndex.java:118) at org.h2.table.TableData.addRow(TableData.java:119) at org.h2.table.Table.updateRows(Table.java:382) at org.h2.command.dml.Update.update(Update.java:131) at org.h2.command.CommandContainer.update(CommandContainer.java:71) at org.h2.command.Command.executeUpdate(Command.java:207) at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:139) at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:128) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2435) ... 13 more Caused by: java.io.IOException: Bad file descriptor at java.io.RandomAccessFile.close0(Native Method) at java.io.RandomAccessFile.close(RandomAccessFile.java:543) at org.h2.store.FileStore.close(FileStore.java:229) at org.h2.store.FileStoreOutputStream.close(FileStoreOutputStream.java:77) at org.h2.value.ValueLob.createFromReader(ValueLob.java:226) ... 26 more ERROR|08:38:54,464|InProcessSimulatorLauncher.java|412|localSimulateSameThread|Error during simulation org.codelutin.topia.TopiaException: Error during commit at org.codelutin.topia.framework.TopiaContextImpl.commitTransaction(TopiaContextImpl.java:736) at simulators.DefaultSimulator.simulate(DefaultSimulator.java:318) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher.localSimulateSameThread(InProcessSimulatorLauncher.java:376) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher$SimThread.run(InProcessSimulatorLauncher.java:237) Caused by: org.hibernate.exception.GenericJDBCException: could not update: [fr.ifremer.isisfish.entities.ResultImpl#fr.ifremer.isisfish.entities.Result#1240389465269#0.17940674829936498] at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2453) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027) at org.codelutin.topia.framework.TopiaContextImpl.commitTransaction(TopiaContextImpl.java:721) ... 3 more Caused by: org.h2.jdbc.JdbcSQLException: IO Exception: java.io.IOException: Bad file descriptor; SQL statement: update result set topiaVersion=?, topiaCreateDate=?, resultDate=?, name=?, matrix_name=?, matrix_dim=?, matrix_dimNames=?, matrix_semantics=?, matrix_data=? where topiaId=? and topiaVersion=? [90028-111] at org.h2.message.Message.getSQLException(Message.java:107) at org.h2.message.Message.convertIOException(Message.java:291) at org.h2.value.ValueLob.createFromReader(ValueLob.java:229) at org.h2.value.ValueLob.convertToFileIfRequired(ValueLob.java:734) at org.h2.store.DataPage.getValueLen(DataPage.java:549) at org.h2.result.Row.getByteCount(Row.java:60) at org.h2.store.Storage.addRecord(Storage.java:177) at org.h2.index.ScanIndex.add(ScanIndex.java:118) at org.h2.table.TableData.addRow(TableData.java:119) at org.h2.table.Table.updateRows(Table.java:382) at org.h2.command.dml.Update.update(Update.java:131) at org.h2.command.CommandContainer.update(CommandContainer.java:71) at org.h2.command.Command.executeUpdate(Command.java:207) at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:139) at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:128) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2435) ... 13 more Caused by: java.io.IOException: Bad file descriptor at java.io.RandomAccessFile.close0(Native Method) at java.io.RandomAccessFile.close(RandomAccessFile.java:543) at org.h2.store.FileStore.close(FileStore.java:229) at org.h2.store.FileStoreOutputStream.close(FileStoreOutputStream.java:77) at org.h2.value.ValueLob.createFromReader(ValueLob.java:226) ... 26 more ERROR|08:38:54,483|AbstractFlushingEventListener.java|324|performExecutions|Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [fr.ifremer.isisfish.entities.ResultImpl#fr.ifremer.isisfish.entities.Result#1240389465240#0.9140950007622116] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1792) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2435) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2335) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2635) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:115) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027) at org.codelutin.topia.framework.TopiaContextImpl.commitTransaction(TopiaContextImpl.java:721) at fr.ifremer.isisfish.simulator.SimulationContext.closeDBResult(SimulationContext.java:134) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher.localSimulateSameThread(InProcessSimulatorLauncher.java:424) at fr.ifremer.isisfish.simulator.launcher.InProcessSimulatorLauncher$SimThread.run(InProcessSimulatorLauncher.java:237) INFO|08:38:55,438|InProcessSimulatorLauncher.java|444|localSimulateSameThread|Simulation time: 143.227 ---------------------------------------------------------------------- You can respond by visiting: http://labs.libre-entreprise.org/tracker/?func=detail&atid=113&aid=1827&group_id=8