Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.4.0
-
None
-
Unknown
Description
Hi,
Updated to a fresh copy of Camel JBang 4.4 and I'm seeing logging and file related errors with every command. Tried reinstalling (force / fresh) the Camel JBang but it didn't work.
I think these issues are perhaps related to Windows (Win11 in my case) because the issue seems to be that Camel JBang is trying to access a log file with an invalid filename.
Here's the error I'm seeing with every command:
PS C:\Users\MikaelKoskinen> camel --version ERROR StatusConsoleListener FileManager (C:\Users\MikaelKoskinen\.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:463) 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:123) at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:1138) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1063) at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:1055) at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:664) at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:258) at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:304) 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:61) 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:422) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:447) at org.apache.camel.util.IOHelper.<clinit>(IOHelper.java:63) at org.apache.camel.dsl.jbang.core.common.PluginHelper.getPluginConfig(PluginHelper.java:176) at org.apache.camel.dsl.jbang.core.common.PluginHelper.addPlugins(PluginHelper.java:65) at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:142) at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:58) at main.CamelJBang.main(CamelJBang.java:36)