[SOLVED] Upgrade to 2.5.1-2 breaks some items in legacy (1.x) bindings

Hi, I have RPi3 and did upgrade to:
openhab2-addons-legacy/stable 2.5.1-2 all
openhab2-addons/stable,now 2.5.1-2 all [installed]
openhab2/stable,now 2.5.1-2 all [installed]
from the previous 2.5.x version (I don’t remember which was it but since I did upgrade a week ago, it must be the very previous release).
The upgrade broke some of my items (and rules due to items), I realized it changed items which I had from 1.x bindings, specifically:

  • panasonic TV binding
  • HTTP bidining
    then some other defined in file which I marked as type
    Switch gniazdko6 “Lampka” [ “Switchable” ]
    but after the upgrade they started appearing in sitemap as switch
    Any hints whether this is fixable or simply old binding won’t be anymore supported?

I am using both bindings without any apparent issues. Running 2.5.1 docker.

I have all range of different errors which were not seen before the upgrade. Visibility of items in sitemaps have been broken too but I guess it’s because of issues with items. Some examples

2020-01-17 16:29:08.737 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'BedroomVolumeDown' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-17 16:29:08.741 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-17 16:29:08.745 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'BedroomVolumeDown' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-17 16:29:08.749 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'BedroomVolumeDown' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-17 16:29:08.752 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'BedroomVolumeDown' for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-17 16:29:08.757 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'BedroomTVMute'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'BedroomTVMute' could not be found in the item registry
        at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:85) ~[?:?]
        at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:837) ~[?:?]
        at org.openhab.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:85) [bundleFile:?]
        at org.openhab.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:194) [bundleFile:?]
        at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160) [bundleFile:?]
        at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:181) [bundleFile:?]
        at org.openhab.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:124) [bundleFile:?]
        at org.openhab.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:189) [bundleFile:?]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [bundleFile:3.1.0]
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:852) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:544) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1581) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1307) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [bundleFile:?]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:482) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1549) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1204) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [bundleFile:9.4.20.v20190813]
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [bundleFile:?]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.Server.handle(Server.java:494) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:374) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
2020-01-17 16:45:00.037 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Sprawdzenie czasu pieca': The name 'needEmail' cannot be resolved to an item or type; line 26, column 7, length 9
2020-01-17 16:29:08.816 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve visibility item adblock_state for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch
2020-01-17 16:29:08.825 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve visibility item adblock_state for widget org.eclipse.smarthome.model.sitemap.sitemap.Switch

OH restart didn’t help but RPi3 restart and OH restart did help. Something environmental (I’m not used to restarting Linux systems therefore didn’t try it as the first thing)

1 Like

You know I will never be able to find the thread but somewhere in the middle of testing 2.5 milestones, I remember one user reporting that items defined without a configuration stopped working. The cure was to use a blank configuration
something like:

Switch gniazdko6 “Lampka” [ “Switchable” ] {channel=""}

maybe give that a try
edit: ok glad you got it going :+1: