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 15:39:00 UTC

[jira] [Assigned] (CAMEL-22879) camel-jbang - Make camel-jbang more roboust when running in cloud with weird HOME dir

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

Claus Ibsen reassigned CAMEL-22879:
-----------------------------------

    Assignee: Claus Ibsen

> camel-jbang - Make camel-jbang more roboust when running in cloud with weird HOME dir
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-22879
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22879
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             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)