InvalidPathException when create REST service from openapi.json using camel-karavan VS Code #1058
Replies: 2 comments 2 replies
-
What version of Karavan / Camel are you using? We have fixed some windows path issues with jbang in Camel 4.3 |
Beta Was this translation helpful? Give feedback.
2 replies
-
@mgubaidullin it may be that karavan should execute this command with single quotes, for the input and output parameters for windows users:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to create a REST service based on OpenApi json. I use camel-karavan VS Code. Right-click on the file with openapi schema, select "Karavan: Generate REST API".
Regardless of whether I create a new integration or add to an existing one. Also regardless of whether I try to create just a REST service or a REST service with routes, this InvalidPathException error pops up. Can you suggest what to do?
java.nio.file.InvalidPathException: Illegal char <:> at index 2: 'c:\Users\User\Desktop\Karavan1\event-gateway.json'
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:232)
at java.base/java.nio.file.Path.of(Path.java:147)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at org.apache.camel.dsl.jbang.core.commands.CodeRestGenerator.readNodeFromYaml(CodeRestGenerator.java:105)
at org.apache.camel.dsl.jbang.core.commands.CodeRestGenerator.doCall(CodeRestGenerator.java:73)
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:36)
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:172)
at main.CamelJBang.main(CamelJBang.java:36)
Beta Was this translation helpful? Give feedback.
All reactions