Charts is not shown in OH2

  • Platform information:
    • Hardware: Raspberry Pi3 B
    • OS:Debian
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 2.3.0
      All was OK, but I tried another UIs. HABmin, HABpanel, and classic UI. After using Classic UI, after one reboot, Charts are not shown in Basic UI.
      it is with this massage
      javax.servlet.ServletException: Could not get chart provider.

I have read many topics, but I have no solution.
Martin

What persistence are you using?

Is it installed?

Is the persistence engine you are using set as the default?

1 Like

it is installated. it is RRD4J. In HABmin it works. I checked in PAPER ui - default persistence engine - it is rrd4j

Martin.

Problem accessing /chart. Reason:

    Server Error

Caused by:

javax.servlet.ServletException: Could not get chart provider.
	at org.eclipse.smarthome.ui.internal.chart.ChartServlet.doGet(ChartServlet.java:282)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:534)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)

this link works too
http://192.168.2.182:8080/rrdchart.png?items=tlak&period=3D
The problem is still Basic UI.

OK, the basics are out of the way.

I think you will need to file an issue at https://github.com/eclipse/smarthome

Make sure to emphasize that charts are working in the other UIs, just not in BasicUI.

1 Like

I wrote in last message. The charts work in other UIs. This seems like broken link for chart provider. I have to reinstall something? is there any general workaround to fix it?
Martin

You probably set the chart provider setting to an unexpected value. Only accepted value is “default”.

can I define it in /etc/openhab2/services/charts.cfg ? It was default. I try change to org.eclipse.smarthome.chart. code page must be UTF8 ?
Martin

after restart - it works. solved - with editing charts.cfg - without .ui

https://community.openhab.org/t/charts-are-not-working-as-before-anymore-broken/41208/24

thanx to Lolodomo
Martin

I’ m new to mysql … it was working fine, but haven’t seen any data on chart. This was the hint:
Is the persistence engine you are using set as the default?
I had running mapdb as default. After the change to mqsql … data is on the chart!
Thx :sunglasses: