Project

General

Profile

Actions

Bug #5444

open

Kepler can't run workflow if two instances exist at same time

Added by Jing Tao over 13 years ago. Updated about 9 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
core
Target version:
Start date:
07/29/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5444

Description

Both vanilla and reporting suites (2.3) have problems. But the behaviors are different:
1. Vanilla kepler:

Start a kepler then start antoher one. The second one runs a workflow. Then close the first kepler. Finally close the second one, it shows the error:
java.sql.SQLException: Connection is broken: java.io.EOFException
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
at org.kepler.util.sql.DatabaseType._executeSQL(DatabaseType.java:930)
at org.kepler.util.sql.HSQL.disconnect(HSQL.java:79)
at org.kepler.objectmanager.lsid.LSIDGenerator.closeDatabase(LSIDGenerator.java:400)
at org.kepler.module.core.Shutdown.shutdownModule(Shutdown.java:48)
at org.kepler.Kepler._initializeModules(Kepler.java:572)
at org.kepler.Kepler.access$100(Kepler.java:81)
at org.kepler.Kepler$Shutdown.shutdown(Kepler.java:663)
at org.kepler.util.ShutdownNotifier.shutdown(ShutdownNotifier.java:48)
at org.kepler.gui.KeplerGraphFrame.dispose(KeplerGraphFrame.java:1146)

2. Reporting kepler.
Two kepers are running. One runs a workflow and get an error:
<jing> ptolemy.kernel.util.IllegalActionException: Error recording workflow structure: Error connecting or initializing database. {DB User Name=sa, Password=, DB Host=, DB Name=provenanceDB, DB Type=HSQL, DB Port=9002, DB Table Prefix=, JDBC URL=}
The database is already in use by another process: lockFile: org.hsqldb.persist.LockFile@aef9f24b[file =/home/tao/KeplerData/modules/provenance/db-2.3/provenanceDB.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat read: 2011-07-28 13:32:04.979 heartbeat - read: -8463 ms.
in .testWithReport.TOP Provenance Recorder
Because:
Error connecting or initializing database. {DB User Name=sa, Password=, DB Host=, DB Name=provenanceDB, DB Type=HSQL, DB Port=9002, DB Table Prefix=, JDBC URL=}
The database is already in use by another process: lockFile: org.hsqldb.persist.LockFile@aef9f24b[file =/home/tao/KeplerData/modules/provenance/db-2.3/provenanceDB.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat read: 2011-07-28 13:32:04.979 heartbeat - read: -8463 ms.
at org.kepler.provenance.ProvenanceRecorder._recordWorkflowContents(ProvenanceRecorder.java:2618)
at org.kepler.provenance.ProvenanceRecorder.preinitialize(ProvenanceRecorder.java:583)
at ptolemy.actor.CompositeActor.preinitialize(CompositeActor.java:1682)
at ptolemy.actor.Manager.preinitializeAndResolveTypes(Manager.java:930)
at ptolemy.actor.Manager.initialize(Manager.java:636)
at ptolemy.actor.Manager.execute(Manager.java:340)
at ptolemy.actor.Manager.run(Manager.java:1111)
at ptolemy.actor.Manager$PtolemyRunThread.run(Manager.java:1641)


Related issues

Is duplicate of Kepler - Bug #5430: problems with multiple instances of keplerResolvedDerik Barseghian06/24/2011

Actions
Is duplicate of Kepler - Bug #5564: dragging sdf director to the canvas causes exceptionResolvedDerik Barseghian12/06/2011

Actions
Actions

Also available in: Atom PDF