Lorenzo,
you have to type something one connected to the cli. Just after your
command.
try this one for example (or any other):
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
MEISSA SAKHO
ARCHITECT EMEA TECH SPECIALIST
Red Hat <
https://www.redhat.com/>
M: +33 (0) 6 9559 7778
<
https://red.ht/sig> TRIED. TESTED. TRUSTED. <
https://redhat.com/trusted>
Le jeu. 7 févr. 2019 à 13:58, Lorenzo Luconi Trombacchi <
lorenzo.luconi(a)iit.cnr.it> a écrit :
For me it works:
$ docker run -it --rm --name keycloak jboss/keycloak:4.8.3.Final
$ docker exec -it keycloak /opt/jboss/keycloak/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /]
Lorenzo
> Il giorno 7 feb 2019, alle ore 13:49, Meissa M'baye Sakho <
msakho(a)redhat.com> ha scritto:
>
> I'm trying to connect to the cli inside a docker container built on the
> keycloak:4.8.3.Final docker image.
> When I'm inside the container, once I execute the following command i the
> keycloak bin directory.
> ./jboss-cli.sh --connect
> I'm getting the following eroors when I try to type anything.
> [standalone@localhost:9990 /] Exception in thread "CLI Terminal
Connection
> (uninterruptable)" java.lang.ArithmeticException: / by zero
> at org.aesh.readline.Buffer.printInsertedData(Buffer.java:582)
> at org.aesh.readline.Buffer.insert(Buffer.java:231)
> at
> org.aesh.readline.AeshConsoleBuffer.writeChar(AeshConsoleBuffer.java:130)
> at
> org.aesh.readline.Readline$AeshInputProcessor.parse(Readline.java:262)
> at
>
org.aesh.readline.Readline$AeshInputProcessor.access$100(Readline.java:174)
> at org.aesh.readline.Readline.readInput(Readline.java:95)
> at org.aesh.readline.Readline.access$1000(Readline.java:57)
> at
>
org.aesh.readline.Readline$AeshInputProcessor.lambda$start$1(Readline.java:333)
> at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:118)
> at org.aesh.terminal.EventDecoder.accept(EventDecoder.java:31)
> at org.aesh.io.Decoder.write(Decoder.java:133)
> at
>
org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:216)
> at
>
org.aesh.readline.tty.terminal.TerminalConnection.openBlocking(TerminalConnection.java:203)
> at
>
org.jboss.as.cli.impl.ReadlineConsole$CLITerminalConnection.lambda$null$1(ReadlineConsole.java:176)
> Any advice?
>
> MEISSA SAKHO
> _______________________________________________
> keycloak-user mailing list
> keycloak-user(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/keycloak-user