(SOLVED) Highly strange sitemap / item error

I´ve got this very highly and strange error when I enter a specific sitemap. And I really cant seem to find the cause of this:
This is the error I get:

2019-04-20 14:14:50.861 [WARN ] [basic.internal.render.SwitchRenderer] - Cannot determine item type of 'stue_sov_NV'
org.eclipse.smarthome.core.items.ItemNotFoundException: Item 'stue_sov_NV' could not be found in the item registry
	at org.eclipse.smarthome.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:81) ~[?:?]
	at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getItem(ItemUIRegistryImpl.java:802) ~[?:?]
	at org.openhab.ui.basic.internal.render.SwitchRenderer.renderWidget(SwitchRenderer.java:84) [273:org.openhab.ui.basic:2.5.0.201903170912]
	at org.openhab.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:194) [273:org.openhab.ui.basic:2.5.0.201903170912]
	at org.openhab.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160) [273:org.openhab.ui.basic:2.5.0.201903170912]
	at org.openhab.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:124) [273:org.openhab.ui.basic:2.5.0.201903170912]
	at org.openhab.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:209) [273:org.openhab.ui.basic:2.5.0.201903170912]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [31:javax.servlet-api:3.1.0]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865) [91:org.eclipse.jetty.servlet:9.4.12.v20180830]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535) [91:org.eclipse.jetty.servlet:9.4.12.v20180830]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [194:org.ops4j.pax.web.pax-web-jetty:7.2.5]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [88:org.eclipse.jetty.security:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293) [194:org.ops4j.pax.web.pax-web-jetty:7.2.5]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) [91:org.eclipse.jetty.servlet:9.4.12.v20180830]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [194:org.ops4j.pax.web.pax-web-jetty:7.2.5]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.Server.handle(Server.java:503) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) [90:org.eclipse.jetty.server:9.4.12.v20180830]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) [81:org.eclipse.jetty.io:9.4.12.v20180830]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [81:org.eclipse.jetty.io:9.4.12.v20180830]
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) [81:org.eclipse.jetty.io:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [93:org.eclipse.jetty.util:9.4.12.v20180830]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2019-04-20 14:14:50.877 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'stue_sov_NV' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-04-20 14:14:50.879 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Switch
2019-04-20 14:14:50.883 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'stue_sov_NV' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-04-20 14:14:50.885 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'stue_sov_NV' for widget org.eclipse.smarthome.model.sitemap.Switch
2019-04-20 14:14:50.887 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'stue_sov_NV' for widget org.eclipse.smarthome.model.sitemap.Switch

The very strange thing is… The item stue_sov_NV is NOT a part of the sitemap.

This is the sitemap which trigger the error:

sitemap stuen label="Stuen"
{
	Frame label="Lys" {

		Switch item=stue_sov_OEV
		Switch item=stue_sov_OEH

	Text item=HueStue icon="light"{
		Switch item=gHueStue
		Text item=none

		Slider item=HueStue label="Fælles Dimmer [%s]"
		Colorpicker item=HueStue label="Fælles farve valg [%s]"

		Switch item=Huebloom_HB label="Bloom højre bag [%s]"
		Switch item=Huebloom_HF label="Bloom højre front [%s]"
		Switch item=Huebloom_VF label="Bloom venstre front [%s]"
		Switch item=Huependel_col label="Pendel [%s]"

		Slider item=Huebloom_HB label="Bloom højre bag [%s]"
		Slider item=Huebloom_HF label="Bloom højre front [%s]"
		Slider item=Huebloom_VF label="Bloom venstre front [%s]"
		Slider item=Huependel_col label="Pendel [%s]"

		Colorpicker item=Huebloom_HB label="Bloom højre bag" icon="colorwheel"
		Colorpicker item=Huebloom_HF label="Bloom højre front" icon="colorwheel"
		Colorpicker item=Huebloom_VF label="Bloom venstre front" icon="colorwheel"
		Colorpicker item=Huependel_col label="Hjørnelampe" icon="colorwheel"
		Default     item=Huependel_dim
		Text item=none
		Text item=Huebloom_HBAlert
		Text item=Huebloom_HFAlert
		Text item=Huebloom_VFAlert
		Text item=Huependel_Alert
	}
   }

	Frame label="Varme" {

	   Text item=stue_Temperature {
		Text item=stue_Temperature label="Temperatur Stuen"
		Setpoint item=stue_Tempsetpunkt minValue=18 maxValue=25 step=0.5 label="Juster varmen"
		Text item=telestat3_stue label="Telestat"
		Text item=stueVentilMotion
		Text item=stueSensorFejl
	}
    }

	Frame label="Bevægelse" {
		Text item=stue_pir
		Default item=stue_pir_stamp
	}


	Frame label="Netamo" {

	   Text item=NetamoIndendoersTemperature {
		Text item=NetamoIndendoersTemperature
		Text item=NetamoIndendoersHumidity
		Text item=NetamoIndendoersCo2 valuecolor=[<800="green",<1000="orange",<1400="red",>1399="maroon"]
		Text item=NetamoIndendoersPressure
		Text item=NetamoIndendoersNoise
		Text item=NetamoIndendoersHeatIndex

		Text item=NetamoIndendoersMinTemp
		Text item=NetamoIndendoersDateMinTemp
		Text item=NetamoIndendoersMaxTemp
		Text item=NetamoIndendoersDateMaxTemp
		Text item=NetamoIndendoersLastStatusStore
		Text item=NetamoUdendoersLastMessage
		Text item=NetamoUdendoersTempTrend
	}
    }

	Frame label="Ovenlys vinduer" {
		Switch item=VeluxStueAlleVent mappings=[ON=Kip]
		Switch item=VeluxStueAlle50 mappings=[ON=Kip]
		Switch item=VeluxStueAlle75 mappings=[ON=Kip]
		Switch item=VeluxStueAlle100 mappings=[ON=Kip]
	}

	Frame label="Statistik" {
	   Text item=stue_Temperature {
		Image refresh=60000 url="http://10.4.28.3:3000/render/d-solo/cyY4Qoggk/stue-temperatur?refresh=30s&orgId=1&panelId=2&from=now-12h&to=now&width=1000&height=500"
	}
    }
}

But it gets even more strange. According to the above sitemap, I use some labels. But for some reason I cant explain, these labes are NOTquite the same which is showen in Basic UI. After the Netamo label, things seems to go wrong… In the label (picture below) “kontakter”, this is where the item used to be, which probably is the cause of all this. But it looks like the whole sitemap simply didn´t get updated after previous saving.

At first thought, I would have said this is a cache issue. But a coupple of weeks ago I flushed the cache and tmp, (after rebuilding some of my items including the one in question). But the error is still there.

I´m running openhabian and openhab 2.5M1.

Does anyone have any suggestion for this behaviour?

EDIT…
It seem like, after another flushing the cache and tmp as well as restarting my Rpi, this error is now gone…
NOT SOLVED!!

I just rebooted my Rpi, (this time without clearing the cache / tmp). And now problem is back…

What the heck is going on. How is it even possible??

Found the reason for this… bad mistake aprox 40cm infront of the monitor :slight_smile: For some reason which I cant explain, I had two almost identical sitemaps (stue.sitemap and stuen.sitemap). While editing one of them and looking at the other, things showed really strange (ofcouse)…
Anyway - case closed. And a short reminder to myself, to stop using to many hours stiring at the same fault and not beeing able to see the self created error…

1 Like