[ 
https://issues.apache.org/jira/browse/CAMEL-19381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aurélien Pupier updated CAMEL-19381:
------------------------------------
    Description: 
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
    --repos=https://maven.repository.redhat.com/ga
{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: 
[email protected]/java.lang.Object.wait(Native Method)
[email protected]/java.lang.Object.wait(Object.java:338)
[email protected]/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}


  was:
I used the command:
{noformat}
jbang camel@apache/camel run 'src/main/java/org/acme/timer/log/TimerRoute.java'
{noformat}

there is this log repeating indefinitely:
{noformat}
Running integration with the following configuration:
    --camel-version=3.20.4
    --repos=https://maven.repository.redhat.com/ga
{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: 
[email protected]/java.lang.Object.wait(Native Method)
[email protected]/java.lang.Object.wait(Object.java:338)
[email protected]/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}



> 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
>            Reporter: Aurélien Pupier
>            Priority: Major
>
> 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
>     --repos=https://maven.repository.redhat.com/ga
> {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: 
> [email protected]/java.lang.Object.wait(Native Method)
> [email protected]/java.lang.Object.wait(Object.java:338)
> [email protected]/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)

Reply via email to