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 2026/01/19 14:51:00 UTC
[jira] [Created] (CAMEL-22879) camel-jbang - Make camel-jbang more roboust when running in cloud with weird USER_HOME
Claus Ibsen created CAMEL-22879:
-----------------------------------
Summary: camel-jbang - Make camel-jbang more roboust when running in cloud with weird USER_HOME
Key: CAMEL-22879
URL: https://issues.apache.org/jira/browse/CAMEL-22879
Project: Camel
Issue Type: Improvement
Components: camell-jb
Reporter: Claus Ibsen
Fix For: 4.18.0
It seems that resolving USER_HOME can return a "?" as the path or something that is not valid, and you get exceptions
{code:java}
Caused by: java.nio.file.NoSuchFileException: ?/.camel-jbang-plugins.json
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
at java.base/java.nio.file.Files.write(Files.java:3512)
at java.base/java.nio.file.Files.writeString(Files.java:3734)
at java.base/java.nio.file.Files.writeString(Files.java:3674)
at org.apache.camel.dsl.jbang.core.common.PluginHelper.createPluginConfig(PluginHelper.java:245)
... 17 more {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)