Re: camel init works - but leaves errors
Hi Thanks for reporting - yeah that smells like a windows problem/bug with camel-jbang. Can you create a JIRA ticket On Thu, Feb 16, 2023 at 7:02 PM Chirag wrote: > I am running camel init b.xml (i tried yaml as well). > > I am noticing that file is getting created - but then it is erroring out > > C:\work\jb>jbang --version > 0.101.0 > C:\work\jb>camel -V > 3.20.2 > > It seems to not resolve sys:pid variable? > > Here is complete stacktrace: > > C:\work\jb>camel init b.xml > 2023-02-16 12:53:30,548 main ERROR FileManager > (C:\Users\myuser/.camel/${sys:pid}.log) java.io.IOException: The > filename, directory name, or volume label syntax is incorrect > java.io.IOException: The filename, directory name, or volume label > syntax is incorrect > at java.base/java.io.WinNTFileSystem.canonicalize0(Native Method) > at java.base/java.io > .WinNTFileSystem.canonicalize(WinNTFileSystem.java:465) > at java.base/java.io.File.getCanonicalPath(File.java:626) > at java.base/java.io.File.getCanonicalFile(File.java:651) > at > org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:139) > at > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:436) > at > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:423) > at > org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:144) > at > org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) > at > org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:183) > at > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:99) > at > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:52) > at > org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1133) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1058) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1050) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:659) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:257) > at > org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:303) > at > org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621) > at > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694) > at > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711) > at > org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253) > at > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) > at > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) > at > org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) > at > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137) > at > org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55) > at > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47) > at > org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33) > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) > at org.apache.camel.util.FileUtil.(FileUtil.java:39) > at org.apache.camel.dsl.jbang.core.commands.Init.call(Init.java:85) > at org.apache.camel.dsl.jbang.core.commands.Init.call(Init.java:44) > 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:134) > at main.CamelJBang.main(CamelJBang.java:36) > >
Re: camel init works - but leaves errors
Created : https://issues.apache.org/jira/browse/CAMEL-19067 ચિરાગ/चिराग/Chirag -- Sent from My Gmail Account On Thu, Feb 16, 2023 at 3:52 PM Claus Ibsen wrote: > > Hi > > Thanks for reporting - yeah that smells like a windows problem/bug with > camel-jbang. > Can you create a JIRA ticket > > On Thu, Feb 16, 2023 at 7:02 PM Chirag wrote: > > > I am running camel init b.xml (i tried yaml as well). > > > > I am noticing that file is getting created - but then it is erroring out > > > > C:\work\jb>jbang --version > > 0.101.0 > > C:\work\jb>camel -V > > 3.20.2 > > > > It seems to not resolve sys:pid variable? > > > > Here is complete stacktrace: > > > > C:\work\jb>camel init b.xml > > 2023-02-16 12:53:30,548 main ERROR FileManager > > (C:\Users\myuser/.camel/${sys:pid}.log) java.io.IOException: The > > filename, directory name, or volume label syntax is incorrect > > java.io.IOException: The filename, directory name, or volume label > > syntax is incorrect > > at java.base/java.io.WinNTFileSystem.canonicalize0(Native Method) > > at java.base/java.io > > .WinNTFileSystem.canonicalize(WinNTFileSystem.java:465) > > at java.base/java.io.File.getCanonicalPath(File.java:626) > > at java.base/java.io.File.getCanonicalFile(File.java:651) > > at > > org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:139) > > at > > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:436) > > at > > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:423) > > at > > org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:144) > > at > > org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) > > at > > org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:183) > > at > > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:99) > > at > > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:52) > > at > > org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124) > > at > > org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1133) > > at > > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1058) > > at > > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1050) > > at > > org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:659) > > at > > org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:257) > > at > > org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:303) > > at > > org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621) > > at > > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694) > > at > > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711) > > at > > org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253) > > at > > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) > > at > > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) > > at > > org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) > > at > > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137) > > at > > org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55) > > at > > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47) > > at > > org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33) > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) > > at org.apache.camel.util.FileUtil.(FileUtil.java:39) > > at org.apache.camel.dsl.jbang.core.commands.Init.call(Init.java:85) > > at org.apache.camel.dsl.jbang.core.commands.Init.call(Init.java:44) > > 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:2
Re: camel init works - but leaves errors
Hi Thanks so we have a fix for this in next release. So the init command does not work for you on windows, but the run command should work. On Thu, Feb 16, 2023 at 10:29 PM Chirag wrote: > Created : > https://issues.apache.org/jira/browse/CAMEL-19067 > > ચિરાગ/चिराग/Chirag > -- > Sent from My Gmail Account > > On Thu, Feb 16, 2023 at 3:52 PM Claus Ibsen wrote: > > > > Hi > > > > Thanks for reporting - yeah that smells like a windows problem/bug with > > camel-jbang. > > Can you create a JIRA ticket > > > > On Thu, Feb 16, 2023 at 7:02 PM Chirag > wrote: > > > > > I am running camel init b.xml (i tried yaml as well). > > > > > > I am noticing that file is getting created - but then it is erroring > out > > > > > > C:\work\jb>jbang --version > > > 0.101.0 > > > C:\work\jb>camel -V > > > 3.20.2 > > > > > > It seems to not resolve sys:pid variable? > > > > > > Here is complete stacktrace: > > > > > > C:\work\jb>camel init b.xml > > > 2023-02-16 12:53:30,548 main ERROR FileManager > > > (C:\Users\myuser/.camel/${sys:pid}.log) java.io.IOException: The > > > filename, directory name, or volume label syntax is incorrect > > > java.io.IOException: The filename, directory name, or volume label > > > syntax is incorrect > > > at java.base/java.io.WinNTFileSystem.canonicalize0(Native > Method) > > > at java.base/java.io > > > .WinNTFileSystem.canonicalize(WinNTFileSystem.java:465) > > > at java.base/java.io.File.getCanonicalPath(File.java:626) > > > at java.base/java.io.File.getCanonicalFile(File.java:651) > > > at > > > > org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:139) > > > at > > > > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:436) > > > at > > > > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:423) > > > at > > > > org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:144) > > > at > > > > org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) > > > at > > > > org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:183) > > > at > > > > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:99) > > > at > > > > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:52) > > > at > > > > org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124) > > > at > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1133) > > > at > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1058) > > > at > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1050) > > > at > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:659) > > > at > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:257) > > > at > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:303) > > > at > > > > org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621) > > > at > > > > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694) > > > at > > > > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711) > > > at > > > > org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253) > > > at > > > > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) > > > at > > > > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) > > > at > > > org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) > > > at > > > > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137) > > > at > > > > org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55) > > > at > > > > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:47) > > > at > > > > org.apache.logging.slf4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:33) > > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:363) > > > at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) > > > at org.apache.camel.util.FileUtil.(FileUtil.java:39) > > > at > org.apache.camel.dsl.jbang.core.commands.Init.call(Init.java:85) > > > at > org.apache.camel.dsl.j
Re: camel init works - but leaves errors
Yes -I saw the commits. Thank you for the fixes. I didn't realize, but it seems to have ended up becoming a larger fix. ચિરાગ/चिराग/Chirag -- Sent from My Gmail Account On Fri, Feb 17, 2023 at 3:47 AM Claus Ibsen wrote: > > Hi > > Thanks so we have a fix for this in next release. > So the init command does not work for you on windows, but the run command > should work. > > > > On Thu, Feb 16, 2023 at 10:29 PM Chirag wrote: > > > Created : > > https://issues.apache.org/jira/browse/CAMEL-19067 > > > > ચિરાગ/चिराग/Chirag > > -- > > Sent from My Gmail Account > > > > On Thu, Feb 16, 2023 at 3:52 PM Claus Ibsen wrote: > > > > > > Hi > > > > > > Thanks for reporting - yeah that smells like a windows problem/bug with > > > camel-jbang. > > > Can you create a JIRA ticket > > > > > > On Thu, Feb 16, 2023 at 7:02 PM Chirag > > wrote: > > > > > > > I am running camel init b.xml (i tried yaml as well). > > > > > > > > I am noticing that file is getting created - but then it is erroring > > out > > > > > > > > C:\work\jb>jbang --version > > > > 0.101.0 > > > > C:\work\jb>camel -V > > > > 3.20.2 > > > > > > > > It seems to not resolve sys:pid variable? > > > > > > > > Here is complete stacktrace: > > > > > > > > C:\work\jb>camel init b.xml > > > > 2023-02-16 12:53:30,548 main ERROR FileManager > > > > (C:\Users\myuser/.camel/${sys:pid}.log) java.io.IOException: The > > > > filename, directory name, or volume label syntax is incorrect > > > > java.io.IOException: The filename, directory name, or volume label > > > > syntax is incorrect > > > > at java.base/java.io.WinNTFileSystem.canonicalize0(Native > > Method) > > > > at java.base/java.io > > > > .WinNTFileSystem.canonicalize(WinNTFileSystem.java:465) > > > > at java.base/java.io.File.getCanonicalPath(File.java:626) > > > > at java.base/java.io.File.getCanonicalFile(File.java:651) > > > > at > > > > > > org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:139) > > > > at > > > > > > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:436) > > > > at > > > > > > org.apache.logging.log4j.core.appender.FileManager$FileManagerFactory.createManager(FileManager.java:423) > > > > at > > > > > > org.apache.logging.log4j.core.appender.AbstractManager.getManager(AbstractManager.java:144) > > > > at > > > > > > org.apache.logging.log4j.core.appender.OutputStreamManager.getManager(OutputStreamManager.java:100) > > > > at > > > > > > org.apache.logging.log4j.core.appender.FileManager.getFileManager(FileManager.java:183) > > > > at > > > > > > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:99) > > > > at > > > > > > org.apache.logging.log4j.core.appender.FileAppender$Builder.build(FileAppender.java:52) > > > > at > > > > > > org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:124) > > > > at > > > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1133) > > > > at > > > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1058) > > > > at > > > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1050) > > > > at > > > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:659) > > > > at > > > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:257) > > > > at > > > > > > org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:303) > > > > at > > > > > > org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:621) > > > > at > > > > > > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:694) > > > > at > > > > > > org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:711) > > > > at > > > > > > org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:253) > > > > at > > > > > > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:155) > > > > at > > > > > > org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:47) > > > > at > > > > org.apache.logging.log4j.LogManager.getContext(LogManager.java:196) > > > > at > > > > > > org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:137) > > > > at > > > > > > org.apache.logging.slf4j.Log4jLoggerFactory.getContext(Log4jLoggerFactory.java:55) > > > > at > > > > > > org.apache.logging.log