Newbie a lot of "Cannot retrieve item null for widget" errors in logback

Hello,

My openhab server runs and till now it’s quite stable. I was binding mylights and had to turn on debug mode in the logback. It’s not critical, but it would be interesting to know why am I getting a lot of “Cannot retrieve item null for widget” when I open the setup in browser or my android phone.

This is what I get when I enter my openhab setup through webpage on pc:

2015-12-28 15:56:25.884 [DEBUG] [.o.u.w.i.servlet.WebAppServlet] - Servlet request received!
2015-12-28 15:56:25.898 [DEBUG] [.o.u.w.i.servlet.WebAppServlet] - reading sitemap Santariskes
2015-12-28 15:56:25.899 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:56:25.901 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame

And this is what I get when I open the set up in openhab android app:

2015-12-28 15:58:26.236 [DEBUG] [.r.i.resources.SitemapResource] - Received HTTP GET request at 'sitemaps/santariskes/Santariskes' for media type 'null'.
2015-12-28 15:58:26.283 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.286 [DEBUG] [.r.i.resources.SitemapResource] - Received HTTP GET request at 'sitemaps/santariskes/0200' for media type 'null'.
2015-12-28 15:58:26.317 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.318 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.320 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.322 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - matchStateToValue: Decimal format exception: java.lang.NumberFormatException: For input string: "Uninitialized"
2015-12-28 15:58:26.324 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.328 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.329 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.330 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.332 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.333 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.334 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.334 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.336 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.337 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - matchStateToValue: Decimal format exception: java.lang.NumberFormatException: For input string: "Uninitialized"
2015-12-28 15:58:26.337 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.339 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.341 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.345 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.347 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.348 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.350 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.366 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.367 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.369 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame
2015-12-28 15:58:26.371 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.378 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Text
2015-12-28 15:58:26.380 [DEBUG] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item null for widget org.openhab.model.sitemap.Frame

maybe someone can explain the principle of this error… couldn’t find a description why it’s caused and how to solve it…

Part of the stemap…:

sitemap Santariskes label="Mano Namai"
{
    Frame {
        Group item=g3A label="Trečias aukštas" icon="firstfloor"
        Group item=g2A label="Antras aukštas" icon="groundfloor"
        Group item=g1A label="Pirmas aukštas" icon="cellar"
        Group item=Garazas label="Garažas" icon="garage" 
    }
    Frame label="Weather" {
        Text item=Weather_Temperature valuecolor=[Weather_LastUpdate=="Uninitialized"="lightgray",Weather_LastUpdate>90="lightgray",>25="orange",>15="green",>5="orange",<=5="blue"] {
            Frame {
                Text item=Weather_Temp_Max valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]
                Text item=Weather_Temp_Min valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]
                Text item=Weather_Humidity
                Text item=Weather_Humidex
                Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120="orange", Weather_LastUpdate>300="red"]
            }
             Frame {
                Switch item=Weather_Chart_Period label="Chart Period" mappings=[0="Hour", 1="Day", 2="Week"]
                Chart item=Weather_Chart period=h refresh=6000 visibility=[Weather_Chart_Period==0, Weather_Chart_Period=="Uninitialized"]
                Chart item=Weather_Chart period=D refresh=30000 visibility=[Weather_Chart_Period==1]
                Chart item=Weather_Chart period=W refresh=30000 visibility=[Weather_Chart_Period==2]
            }
        }
    }
     
    Frame label="Lempos" {
    Text label="MiLight1" icon="light-on" {    
    Frame label="jungikliai"      {
        Switch         item=All_RGBW    label="Koridorius"
        Slider         item=Light_Koridorius_RGBW      label="Koridorius_dimer" 
    }
    }
    }

I’m sure that the mistake will be a newbie mistake…

Thanks in advance
Vaidas

Did you setup all items in .items-File?

Hi Udo,

thanks for the reply.
Yes all the items that are used in sitemap are declared in .items file…

And why am I getting different responses when I enter it from browser and from mobile app…

Could be there is a bracket } missing at end of .sitemap.

Do you use the openHAB Designer for editing?

Yes I do use the openHAB Designer, no errors from that side, does openHAB Designer ignore the } brackets? I’ll try to check this today.