You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
picocli.CommandLine$InitializationException: Cannot instantiate cliapp.CliappCommand: the class has no constructor
at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5685)
at picocli.CommandLine$Model$CommandUserObject.getInstance(CommandLine.java:12263)
at picocli.CommandLine$Model$CommandSpec.userObject(CommandLine.java:6437)
at picocli.CommandLine$Interpreter.clear(CommandLine.java:13497)
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13543)
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13532)
at picocli.CommandLine$Interpreter.parse(CommandLine.java:13427)
at picocli.CommandLine.parseArgs(CommandLine.java:1552)
at picocli.CommandLine.execute(CommandLine.java:2169)
at io.micronaut.configuration.picocli.PicocliRunner.run(PicocliRunner.java:137)
at io.micronaut.configuration.picocli.PicocliRunner.run(PicocliRunner.java:114)
at cliapp.CliappCommand$Companion.main(CliappCommand.kt:27)
at cliapp.CliappCommand.main(CliappCommand.kt)
Caused by: java.lang.NoSuchMethodException: cliapp.CliappCommand.<init>()
at [email protected]/java.lang.Class.checkMethod(DynamicHub.java:1038)
at [email protected]/java.lang.Class.getConstructor0(DynamicHub.java:1204)
at [email protected]/java.lang.Class.getDeclaredConstructor(DynamicHub.java:2754)
at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5656)
at io.micronaut.configuration.picocli.MicronautFactory.create(MicronautFactory.java:74)
at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5683)
... 12 more
Description
The cli application does not work as a native image on GraalVM.
Steps to Reproduce
mn create-cli-app cliapp --features graalvm --build=gradle --lang=kotlin
cd cliapp
./gradlew -q clean nativeRun
Expected Behaviour
The example exits without any output
Actual Behaviour
The example ends up with Exception:
Environment Information
Example Application
cliapp.tar.gz
The text was updated successfully, but these errors were encountered: