You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/06/09 13:37:00 UTC

[jira] [Commented] (CAMEL-19381) Infinite loop creating processes with Camel JBang

    [ https://issues.apache.org/jira/browse/CAMEL-19381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17730955#comment-17730955 ] 

Claus Ibsen commented on CAMEL-19381:
-------------------------------------

This will only work on never Camel version forward, 3.20.6, 3.21 etc. For older version you need to use the command line args.

> Infinite loop creating processes with Camel JBang
> -------------------------------------------------
>
>                 Key: CAMEL-19381
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19381
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 3.20.4, 3.20.5
>            Reporter: Aurélien Pupier
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.20.6, 3.21.0, 4.0-RC1, 4.0
>
>
> I used the command:
> {noformat}
> jbang camel@apache/camel run 'src/main/java/org/acme/timer/log/TimerRoute.java'
> {noformat}
> 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:
> {noformat}
> Running integration with the following configuration:
>     --camel-version=3.20.4
> {noformat}
> it creates a new CamelJBang on each time it writes the previous log block:
> {noformat}
> jps | grep CamelJBang
> 532586 CamelJBang
> 532743 CamelJBang
> 532666 CamelJBang
> {noformat}
> The main thread dump on them is:
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)