Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.20.4, 3.20.5
-
None
-
Unknown
Description
I used the command:
jbang camel@apache/camel run 'src/main/java/org/acme/timer/log/TimerRoute.java'
the file is coming from https://github.com/apache/camel-quarkus-examples/blob/ed3523e9c8d3343922eba3a34f6b248d90493782/timer-log/src/main/java/org/acme/timer/log/TimerRoute.java
there is this log repeating indefinitely:
Running integration with the following configuration: --camel-version=3.20.4
it creates a new CamelJBang on each time it writes the previous log block:
jps | grep CamelJBang 532586 CamelJBang 532743 CamelJBang 532666 CamelJBang
The main thread dump on them is:
Name: main State: WAITING on java.lang.ProcessImpl@e90900f Total blocked: 0 Total waited: 1 Stack trace: java.base@17.0.3/java.lang.Object.wait(Native Method) java.base@17.0.3/java.lang.Object.wait(Object.java:338) java.base@17.0.3/java.lang.ProcessImpl.waitFor(ProcessImpl.java:434) app//org.apache.camel.dsl.jbang.core.commands.Run.runCamelVersion(Run.java:637) app//org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:566) app//org.apache.camel.dsl.jbang.core.commands.Run.doCall(Run.java:227) app//org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:70) app//org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:35) app//picocli.CommandLine.executeUserObject(CommandLine.java:2041) app//picocli.CommandLine.access$1500(CommandLine.java:148) app//picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) app//picocli.CommandLine$RunLast.handle(CommandLine.java:2453) app//picocli.CommandLine$RunLast.handle(CommandLine.java:2415) app//picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) app//picocli.CommandLine$RunLast.execute(CommandLine.java:2417) app//picocli.CommandLine.execute(CommandLine.java:2170) app//org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:154) app//main.CamelJBang.main(CamelJBang.java:36)