Questions tagged [crash-shell]

Use this tag for questions relating to Common Reusable SHell (CRaSH), a shell for the Java platform.

The Common Reusable SHell (CRaSH) deploys in a Java runtime and provides interactions with the JVM. Commands are written in Groovy and can be developed at runtime making the extension of the shell very easy with fast development cycle.

9 questions
4
votes
1 answer

How to run a standalone/interactive Spring Boot CRaSH Shell application?

I'd like to run a Spring Boot application that embeds CRaSH shell, but instead of accessible via SSH/Telnet, I want CRaSH shell to start in the current console (i.e. direct/standalone) without any password, as soon as Spring finishes initializing…
Hendy Irawan
  • 20,498
  • 11
  • 103
  • 114
3
votes
1 answer

How to pass arguments and options to custom remote shell command in spring boot remote shell?

This is followup question on how to build console command in spring boot web application using spring shell? As per suggestions on above question I am trying spring boot remote shell. I have created my custom command following this…
vishal
  • 3,993
  • 14
  • 59
  • 102
2
votes
1 answer

Get username using CRaSH command in Spring boot

Short story: How can I pass the username that is used in ssh connector of CRaSH shell to the customized Java method? Not-so-short story: I created a set of custom shell commands for Spring. The authentication was done via ssh connector, where an…
Jerry Yeh
  • 61
  • 1
  • 3
2
votes
2 answers

Spring boot additional Crash Command

According to the Spring boot documentation, it's possible to define additional command when using a remote shell based on Crash. Default locations for these commands are classpath*:/commands/,classpath*:/crash/commands/ A property can be used to…
1
vote
1 answer

Why does an attached CRaSH shell throw a NullPointerException when issuing commands?

After attaching a CRaSH shell to a running java process using > crash.bat pid starting CRaSH with a JDK, calling the help command returns an error % help help: exception: NullPointerException This means that the commands are not compiled. Why…
AntiTiming
  • 2,094
  • 3
  • 22
  • 33
0
votes
1 answer

Groovy command using inheritance cannot compile in Spring Boot remote shell

I have an abstract groovy class with some utility methods that I want to extend from other groovy command classes (for use in Spring Boot's remote shell). However, when I attempt to run the groovy command class, I get a CommandException. My groovy…
Jane Wayne
  • 8,205
  • 17
  • 75
  • 120
0
votes
1 answer

Springboot remote shell : CRASH : SLF4J set of commands

With the remoteshell for Spring I can see there is "jul" set of commands to manage logging: http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-remote-shell.html Is there an equivalent set for SLF4J?
Evgeny Minkevich
  • 2,319
  • 3
  • 28
  • 42
0
votes
1 answer

Crash shell - configuration and use

I have an application called ROCServerEntrypoint which is using spring-boot. I'd like to run this Spring Boot application that embeds CRaSH shell. I have added the following maven dependency.
Priyanka.Patil
  • 1,177
  • 2
  • 15
  • 34
0
votes
1 answer

Filter Spring beans in CRaSH shell (Spring-boot remote shell)

In the Spring-boot remote shell, CRaSH, I can dump all the Spring beans to the screen in what looks like JSON: > beans [{context=application, parent=null, beans=[{bean=repositoryServer, scope=singleton, …
slim
  • 40,215
  • 13
  • 94
  • 127