Logs: Unable to parse the stateDescription from metadata for item

  • Platform information:

    • Hardware: CPUArchitecture/RAM/storage
      i5, desktop cpu

    • OS: what OS is used and which version
      Debian latest, stable

    • Java Runtime Environment: which java platform is used and what version

    • openHAB version:
      v4.2.2

  • If logs where generated please post these here using code fences:
    See below

Please accept subjects like [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item so search engins can index them. :wink:

Hello

After a few days after my first installation my logs are growing.

  • I setup some things (some days before),
  • made some graphs and
  • currently they dont show anything.

But: jdbc persistence still get records. hmm

Errors e.g. (a lot of them):

[ERROR] [internal.JSONResponseExceptionMapper] - Unexpected exception occurred while processing REST request.
java.util.NoSuchElementException: null
        at java.util.LinkedList.removeFirst(LinkedList.java:274) ~[?:?]
        at java.util.LinkedList.remove(LinkedList.java:689) ~[?:?]
        at org.openhab.persistence.jdbc.internal.utils.MovingAverage.add(MovingAverage.java:55) ~[?:?]
        at org.openhab.persistence.jdbc.internal.utils.MovingAverage.add(MovingAverage.java:48) ~[?:?]
        at org.openhab.persistence.jdbc.internal.JdbcMapper.logTime(JdbcMapper.java:495) ~[?:?]
        at org.openhab.persistence.jdbc.internal.JdbcMapper.getHistItemFilterQuery(JdbcMapper.java:240) ~[?:?]
        at org.openhab.persistence.jdbc.internal.JdbcPersistenceService.query(JdbcPersistenceService.java:242) ~[?:?]
        at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.createDTO(PersistenceResource.java:444) ~[?:?]
        at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.getItemHistoryDTO(PersistenceResource.java:349) ~[?:?]
        at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.httpGetPersistenceItemData(PersistenceResource.java:298) ~[?:?]
        at jdk.internal.reflect.GeneratedMethodAccessor35.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
        at java.lang.reflect.Method.invoke(Method.java:569) ~[?:?]
        at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) ~[bundleFile:3.6.2]
        at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[bundleFile:3.6.2]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) ~[bundleFile:3.6.2]
        at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104) ~[bundleFile:3.6.2]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) ~[bundleFile:3.6.2]
        at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) ~[bundleFile:3.6.2]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:304) ~[bundleFile:3.6.2]
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222) ~[bundleFile:3.6.2]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:497) ~[bundleFile:4.0.4]
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:279) ~[bundleFile:3.6.2]
        at org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet.service(OsgiInitializedServlet.java:102) ~[bundleFile:?]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) ~[bundleFile:9.4.54.v20240208]
        at org.ops4j.pax.web.service.spi.servlet.OsgiFilterChain.doFilter(OsgiFilterChain.java:113) ~[bundleFile:?]
        at org.ops4j.pax.web.service.jetty.internal.PaxWebServletHandler.doHandle(PaxWebServletHandler.java:334) ~[bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234) ~[bundleFile:9.4.54.v20240208]
        at org.ops4j.pax.web.service.jetty.internal.PrioritizedHandlerCollection.handle(PrioritizedHandlerCollection.java:96) ~[bundleFile:?]
        at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [bundleFile:9.4.54.v20240208]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [bundleFile:9.4.54.v20240208]
        at java.lang.Thread.run(Thread.java:840) [?:?]
2024-11-30 18:24:58.597 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item 

Warnings (see subject, a lot of them)

024-11-30 18:24:58.597 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Hinten_Heizung_185195_Solltemperatur, ignoring it
2024-11-30 18:24:58.598 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Bad_Heizung_1819_Solltemperatur, ignoring it
2024-11-30 18:24:58.598 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Wohn_Heizung_175185_kaputt_Solltemperatur, ignoring it
2024-11-30 18:24:58.598 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Kuche_Heizung_Solltemperatur, ignoring it
2024-11-30 18:25:02.103 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Kuche_Heizung_Solltemperatur, ignoring it
2024-11-30 18:25:02.109 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Hinten_Heizung_185195_Solltemperatur, ignoring it
2024-11-30 18:25:02.110 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Wohn_Heizung_175185_kaputt_Solltemperatur, ignoring it
2024-11-30 18:25:02.111 [WARN ] [dataStateDescriptionFragmentProvider] - Unable to parse the stateDescription from metadata for item Bad_Heizung_1819_Solltemperatur, ignoring it

Log sizes

-->--
drwxr-xr-x  2 openhab openhab 4,0K 29. Nov 23:08 ./
drwxr-xr-x 22 root    root    8,0K 30. Nov 14:03 ../
-rw-r--r--  1 openhab openhab 3,3M 30. Nov 18:25 events.log
-rw-r--r--  1 openhab openhab  17K 17. Nov 01:18 events.log.1.gz
-rw-r--r--  1 openhab openhab 158K 20. Nov 21:43 events.log.2.gz
-rw-r--r--  1 openhab openhab  30K 21. Nov 22:36 events.log.3.gz
-rw-r--r--  1 openhab openhab 5,4M 30. Nov 18:25 openhab.log
-rw-r--r--  1 openhab openhab  13K 17. Nov 01:18 openhab.log.1.gz
-rw-r--r--  1 openhab openhab 567K 20. Nov 21:41 openhab.log.2.gz
-rw-r--r--  1 openhab openhab 9,5K 20. Nov 21:43 openhab.log.3.gz
-rw-r--r--  1 openhab openhab 236K 21. Nov 22:36 openhab.log.4.gz
-rw-r--r--  1 openhab openhab 589K 23. Nov 23:06 openhab.log.5.gz
-rw-r--r--  1 openhab openhab 555K 26. Nov 22:00 openhab.log.6.gz
-rw-r--r--  1 openhab openhab 542K 29. Nov 23:08 openhab.log.7.gz
-rwxr-xr-x  1 openhab openhab    0 29. Sep 21:23 Readme.txt*
--<--

What should I do? Many thanks in advance :slight_smile:

Oh i just see an apt update able package to 4.2.3. well, arr, apt changelog missing :frowning: should i update? Where can i find the changelog at github?

What’s the definition of those Items (especially the state description)?

Hi, sorry,
i dont understand your words, question.
please guide me to understand what i have to show, deliver.

Does this help: see screenshot
Bildschirmfoto_2024-11-30_19-57-00

Hint: After restart the service the statistic pages are back. I’m wondering. Is there a need to restart services?

Each Item has metadata (click on one of the items).
The metadata may provide State Description, which may provide additional config.

The warning is about wrong stateDescription (most likely the pattern is wrong) which is ignored as a consequence. So what’s the state description look like?

1 Like

Other values are empty (not filled asuming string: “”) :wink:

Please try %.1f °C instead. last week I got a message about failing %unit% in stateDescription Pattern


Thank you!

I gave a wrong screenshot but your hints gave me a direction!

the items had a wrong value in the ‘step’, was: 0,5, now: 0.5 and the warning at the logs are gone! Also the exception (currently).

1 Like