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

Claus Ibsen resolved CAMEL-20619.
---------------------------------
    Resolution: Duplicate

Already reported in another JIRA

> camel-jbang camel debug command is not working 
> -----------------------------------------------
>
>                 Key: CAMEL-20619
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20619
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.4.1
>            Reporter: Vidhya Sagar Jeevendran
>            Priority: Major
>
> *camel run* is working as expected but *camel debug* is failing to run the 
> process with an exception. 
>  
> I tried with simple route (timer->log) both as yaml and java code in a 
> windows 11 machine.
>  
> java.io.IOException: Cannot run program "camel": CreateProcess error=2, The 
> system cannot find the file specified
>         at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
>         at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
>         at 
> org.apache.camel.dsl.jbang.core.commands.Debug.runDebug(Debug.java:259)
>         at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:788)
>         at org.apache.camel.dsl.jbang.core.commands.Run.runDebug(Run.java:338)
>         at 
> org.apache.camel.dsl.jbang.core.commands.Debug.doCall(Debug.java:135)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
>         at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
>         at picocli.CommandLine.access$1500(CommandLine.java:148)
>         at 
> picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
>         at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
>         at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
>         at 
> picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
>         at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
>         at picocli.CommandLine.execute(CommandLine.java:2170)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:159)
>         at 
> org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:58)
>         at main.CamelJBang.main(CamelJBang.java:36)
> Caused by: java.io.IOException: CreateProcess error=2, The system cannot find 
> the file specified
>         at java.base/java.lang.ProcessImpl.create(Native Method)
>         at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:494)
>         at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159)
>         at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
>         ... 18 more



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

Reply via email to