Error in Karaf CLI @ 2.2.0b : Error executing command: / by zero

Hi Everyone,

I pulled down the 2.2b and after the Karaf / openHAB CLI pops up I get a message if I hit,

tab -> Error executing command: / by zero
help -> less: java.lang.ArithmeticException: / by zero

If I let it sit and try the portal it doesn’t load.


Host : Alpine 3.6

Java : openjdk version “1.8.0_131”
OpenJDK Runtime Environment (IcedTea 3.4.0) (Alpine 8.131.11-r2)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

OH : 2.2 #1133

Zulu and Oracle JRE’s have the GLIBC requirement which I’m trying to avoid. I’m aware that openJDK is listed as having some hiccups, no need to remind unless this particular hiccup is a proven one (or I can help test!).

Besides that, has anyone seen this before?

See the prerequisites:

OpenJDK may also be used, but it has some known limitations with openHAB and is not recommended.

Hi @sihui,

The docs state compatibility but with certain legacy bindings and give a minimum version of 101 for openhabian and the example show 121 (where I’m 131). It seems I’ve cleared those prerequisites.


I can only still recommend: drop openjdk java, use oracle java or zulu java …