Project

General

Profile

Bug #6571

Kepler command line execution won't exit if the parameter to be set in command line does not exist in the workflow.

Added by jianwu jianwu about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
core
Target version:
-
Start date:
06/16/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

I got the same behavior for both -nocache and -cache option. I have to use Ctrl + C to kill the process.

Para111 in the following example is not defined in the workflow.

If the parameters exist in the workflow but the workflow execution goes wrong, the whole command can still exit.

---Console output for command line execution---
./kepler.sh -runwf -nogui -nocache -Para111 d /Users/jianwu/Dropbox/Hackathon-June2014/E3-Read-Text-File/solution.xml
The base dir is /Users/jianwu/Kepler/repository/kepler-trunk-svn
...
[null] start of workflow-scheduler-gui module initializing
[null] common tabpane configuration overridden by workflow-run-manager
[null] INFO (org.kepler.util.sql.HSQL:_getConnection:654) started HSQL server at jdbc:hsqldb:hsql://localhost:56060/provenanceDB;filepath=hsqldb:file:/Users/jianwu/KeplerData/modules/provenance/provenanceDB
[null] common tabpane configuration overridden by reporting
[null] Unable to start application.
[null] java.lang.Exception: Failed to parse "ptolemy/configs/kepler/ConfigNoGUINoCache.xml -runThenExit -Para111 d /Users/jianwu/Dropbox/Hackathon-June2014/E3-Read-Text-File/solution.xml"
[null] at ptolemy.actor.gui.ConfigurationApplication.throwArgsException(ConfigurationApplication.java:845)
[null] at org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:388)
[null] at org.kepler.Kepler.load(Kepler.java:527)
[null] at org.kepler.Kepler.load(Kepler.java:571)
[null] at org.kepler.Kepler.runApplication(Kepler.java:451)
[null] at org.kepler.Kepler.main(Kepler.java:242)
[null] Caused by: ptolemy.kernel.util.IllegalActionException: Unrecognized option: No parameter exists with name Para111
[null] at org.kepler.KeplerConfigurationApplication._setParameters(KeplerConfigurationApplication.java:712)
[null] at org.kepler.KeplerConfigurationApplication.<init>(KeplerConfigurationApplication.java:336)
[null] ... 4 more

---JVM stacktrace using Ctrl + \ ---
^\2014-06-16 11:56:42
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.65-b04-462 mixed mode):

"Thread-4" daemon prio=5 tid=101aaa000 nid=0x10accb000 runnable [10acca000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:198)
at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:218)
at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java:92)
at java.lang.Thread.run(Thread.java:695)

"Thread-3" daemon prio=5 tid=101a7e800 nid=0x10abc8000 runnable [10abc7000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:220)
at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:227)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
- locked <7f40a2160> (a java.io.BufferedInputStream)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java:92)
at java.lang.Thread.run(Thread.java:695)

"process reaper" daemon prio=5 tid=101bbc000 nid=0x10a81a000 runnable [10a819000]
java.lang.Thread.State: RUNNABLE
at java.lang.UNIXProcess.waitForProcessExit(Native Method)
at java.lang.UNIXProcess.access$900(UNIXProcess.java:17)
at java.lang.UNIXProcess$2$1.run(UNIXProcess.java:86)

"Low Memory Detector" daemon prio=5 tid=1030a8800 nid=0x10a20d000 runnable [00000000]
java.lang.Thread.State: RUNNABLE

"C2 CompilerThread1" daemon prio=9 tid=1030a8000 nid=0x10a10a000 waiting on condition [00000000]
java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" daemon prio=9 tid=1030a7000 nid=0x10a007000 waiting on condition [00000000]
java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=9 tid=1030a6800 nid=0x109f04000 waiting on condition [00000000]
java.lang.Thread.State: RUNNABLE

"Surrogate Locker Thread (Concurrent GC)" daemon prio=5 tid=1030a5800 nid=0x109e01000 waiting on condition [00000000]
java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=8 tid=101801800 nid=0x1098ec000 in Object.wait() [1098eb000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <7f44e2ee0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked <7f44e2ee0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171)

"Reference Handler" daemon prio=10 tid=10309b000 nid=0x1097e9000 in Object.wait() [1097e8000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <7f44e0848> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <7f44e0848> (a java.lang.ref.Reference$Lock)

"main" prio=5 tid=103000800 nid=0x100501000 in Object.wait() [100500000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <7f40cedc8> (a java.lang.UNIXProcess)
at java.lang.Object.wait(Object.java:485)
at java.lang.UNIXProcess.waitFor(UNIXProcess.java:115)
- locked <7f40cedc8> (a java.lang.UNIXProcess)
at org.apache.tools.ant.taskdefs.Execute.waitFor(Execute.java:551)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:482)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:784)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:211)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:132)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:105)
at org.kepler.build.Run.runSuite(Run.java:364)
at org.kepler.build.Run.run(Run.java:235)
at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:102)
at org.kepler.build.runner.Kepler.run(Kepler.java:266)
at org.kepler.build.modules.ModulesTask.execute(ModulesTask.java:102)
at org.kepler.build.runner.Kepler.main(Kepler.java:109)

"VM Thread" prio=9 tid=103096000 nid=0x1096e6000 runnable

"Gang worker#0 (Parallel GC Threads)" prio=9 tid=103002000 nid=0x102201000 runnable

"Gang worker#1 (Parallel GC Threads)" prio=9 tid=103002800 nid=0x102304000 runnable

"Concurrent Mark-Sweep GC Thread" prio=9 tid=10304d000 nid=0x1093f0000 runnable
"VM Periodic Task Thread" prio=10 tid=1030ba800 nid=0x10a310000 waiting on condition

"Exception Catcher Thread" prio=10 tid=103001800 nid=0x1017fe000 runnable
JNI global references: 1341

Heap
par new generation total 19136K, used 2087K [7f3000000, 7f44c0000, 7f44c0000)
eden space 17024K, 8% used [7f3000000, 7f317d228, 7f40a0000)
from space 2112K, 26% used [7f40a0000, 7f412ca40, 7f42b0000)
to space 2112K, 0% used [7f42b0000, 7f42b0000, 7f44c0000)
concurrent mark-sweep generation total 63872K, used 1148K [7f44c0000, 7f8320000, 7fae00000)
concurrent-mark-sweep perm gen total 21248K, used 7839K [7fae00000, 7fc2c0000, 800000000)

[null] 2014-06-16 11:56:42
[null] Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.65-b04-462 mixed mode):
[null]
[null] "DestroyJavaVM" prio=5 tid=101801000 nid=0x100501000 waiting on condition [00000000]
[null] java.lang.Thread.State: RUNNABLE
[null]
[null] "HSQLDB Connection @690bc995" prio=5 tid=10aff7000 nid=0x10d70f000 runnable [10d70e000]
[null] java.lang.Thread.State: RUNNABLE
[null] at java.net.SocketInputStream.socketRead0(Native Method)
[null] at java.net.SocketInputStream.read(SocketInputStream.java:129)
[null] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
[null] at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
[null] - locked &lt;7cd8c9b48&gt; (a java.io.BufferedInputStream)
[null] at java.io.DataInputStream.readInt(DataInputStream.java:370)
[null] at org.hsqldb.Result.read(Unknown Source)
[null] at org.hsqldb.ServerConnection.run(Unknown Source)
....

Also available in: Atom PDF