Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.
This repository was archived by the owner on May 12, 2025. It is now read-only.

Support Spring Shell 3.3+ #402

@mkjensen

Description

@mkjensen

When using Spring Shell 3.3.x, the call at https://github.com/fonimus/ssh-shell-spring-boot/blob/main/starter/src/main/java/com/github/fonimus/ssh/shell/SshShellRunnable.java#L160 matches https://github.com/spring-projects/spring-shell/blob/v3.3.4/spring-shell-core/src/main/java/org/springframework/shell/ShellRunner.java#L51 instead of https://github.com/spring-projects/spring-shell/blob/v3.3.4/spring-shell-core/src/main/java/org/springframework/shell/jline/InteractiveShellRunner.java#L69.

This leads to ChannelSession[id=0, recipient=0]-ServerSessionImpl[<REDACTED>]: unexpected exception with stack trace:

java.lang.UnsupportedOperationException: Should get implemented together with canRun
	at org.springframework.shell.ShellRunner.run(ShellRunner.java:52)
	at com.github.fonimus.ssh.shell.SshShellRunnable.run(SshShellRunnable.java:160)
	at java.base/java.lang.Thread.run(Unknown Source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions