Charts in OH2: java.lang.ArrayIndexOutOfBoundsException: 0


I’ve recently installed OH2. I used OH1 before, where charts worked like a charm. OH2 was installed as a fresh system,
I did not migrate. However, when I try to create charts from eg. temperature values, it always throw java exception:

2017-10-18 23:07:48.085 [WARN ] [eclipse.jetty.servlet.ServletHandler] - /chart/
java.lang.ArrayIndexOutOfBoundsException: 0
        at sun.font.CompositeStrike.getStrikeForSlot([:1.8.0_144]
        at sun.font.CompositeStrike.getFontMetrics([:1.8.0_144]
        at sun.font.Font2D.getFontMetrics([:1.8.0_144]
        at java.awt.Font.defaultLineMetrics([:1.8.0_144]
        at java.awt.Font.getLineMetrics([:1.8.0_144]
        at java.awt.font.TextLayout.fastInit([:1.8.0_144]
        at java.awt.font.TextLayout.<init>([:1.8.0_144]

The same thing happens when I try to access http://openhab:8080/chart website. Any suggestions?

TY in advance.

have you configured the default persistence in PaperUI or runtime.cfg?

Yep, I’ve configured it in PaperUI, it is set to rrd4j.

I haven’t used the charting servlet in a long time. I’m afraid I’m out of ideas.

Do you get errors if you try to use persistence methods in Rules? lastUpdate, sumSince, etc.

Nope, lastUpdate works, min and max values work as well. TY for your time anyway, hopefully someone else will response :slight_smile:

So, after the latest system update (centos7) it suddenly began to work. Again thx for your time.