Sitemap Missing After Update

Hello Paul from South Africa here.

My Openhab2 System has been running very well now for well over two months now , that was until this morning. I am running a Lubuntu Os and it asked me if I wanted to install the update so , stupid me, I said yes. After the update Openhab cant see the home.sitemap file. I did not change anything in the settings.
If I run Habpanel my Items is still there but the moment I open the classic page I get
"javax.servlet.ServletException: Sitemap ‘home’ could not be found"
The sitemap file is located in the /etc/openhab2/sitemaps folder with the name home.sitemap
The owner and group is openhab so I just dont know what else I am missing.
Any Ideas ?
Best regards

Hello Paul from South Africa! It’s just amazing to see people from all over the world using openHAB.

My first guess would be there is a syntax error in your sitemap file. In that case this would be the normal behavior. With openHAB 2.1 the config file validation got a bit stricter, you “slightly incorrect” sitemap could now be seen as wrong.

Check the openhab.log for errors related to your sitemap. This might be close: grep "home.sitemap" /var/log/openhab2/openhab.log

Good luck!!

Hey Thom

Sorry forgot to say I was running Openhab2 from the beginning , but I will get the log file .


Ok would this be of any help ?

2017-07-25 18:23:16.144 [WARN ] [eclipse.jetty.servlet.ServletHandler] - 
javax.servlet.ServletException: Sitemap 'home' could not be found
	at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service([197:org.eclipse.smarthome.ui.classic:0.9.0.b5]
	at org.eclipse.jetty.servlet.ServletHolder.handle([81:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle([81:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle([172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle([172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.servlet.ServletHandler.doScope([81:org.eclipse.jetty.servlet:9.2.19.v20160908]
	at org.eclipse.jetty.server.session.SessionHandler.doScope([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle([172:org.ops4j.pax.web.pax-web-jetty:4.3.0]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.Server.handle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.HttpChannel.handle([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.server.HttpConnection.onFillable([80:org.eclipse.jetty.server:9.2.19.v20160908]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob([83:org.eclipse.jetty.util:9.2.19.v20160908]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$[83:org.eclipse.jetty.util:9.2.19.v20160908]
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap 'home' could not be found
	at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service([197:org.eclipse.smarthome.ui.classic:0.9.0.b5]
	... 21 more

Hmmm not really. Yet again this error clearly tells me that your sitemap has a problem. Check it for syntax errors in the Eclipse Smarthome Designer.

Hey Thom , you are write there is a issue with the syntax , crazy thing is I did not change anything (as far as I know).

Would you mind having a look and see if something “jumps” out?

sitemap home label="Farm Geluk"
	Frame label="Weather" {
	Text label="Weather" icon="temperature_hot"{
		Text item=outsidetemp valuecolor=[>25="red",>15="green",>5="teal",<=5="teal"] {
			Frame {
				Text item=maxoutsidetemp  valuecolor=[>25="red",>10="green",>5="teal",<=5="teal"]
				Text item=minoutsidetemp  valuecolor=[>25="orange",>10="green",>5="teal",<=5="teal"]
				//Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120="orange", Weather_LastUpdate>300="red"]
		Text item=insidetemp valuecolor=[>25="red",>15="green",>5="teal",<=5="teal"] {
			Frame {
				Text item=maxinsidetemp  valuecolor=[>25="orange",>15="green",>5="teal",<=5="teal"]
				Text item=mininsidetemp  valuecolor=[>25="orange",>15="green",>5="teal",<=5="teal"]
		Text item=raintoday valuecolor=[>25="orange",>15="green",>5="orange",<=5="teal"] 
		Text item=currwindspeed	 valuecolor=[>15="red",>10="orange",>5="orange",<=5="green"] 
		Text item=currhumidity  valuecolor=[>70="green",>50="teal",>20="orange",<=10="red"] 
		//Webview url="/static/keypad.html" height=8

	Frame label="Solar System" {
	Text label="Solar System" icon="solarplant"{
		Text item=solarwatt  {
			Frame {
				Text item=maxsolw			valuecolor=["teal"]		label="Max Solar Output" 
				Text item=dailypannel   	valuecolor=["orange"]   label="Solar energy generated" 
				Webview url="" height=18
				Webview url="" height=18
				//Text item=Weather_LastUpdate visibility=[Weather_LastUpdate>30] valuecolor=[Weather_LastUpdate>120="orange", Weather_LastUpdate>300="red"]
		Text item=invwatt  {
			Frame {
				Text item=maxinvw		 							label="Max Energy Consumed"
				Text item=dailyinv   								label="Total Energy Consumed"
				Text item=ave_1h   									label="Ave Energy Consumed per hour"
				Text item=ave_4h   									label="Ave Energy until 10 pm"
				Text item=ave_10h   								label="Ave Energy until 5 am"
				Webview url="" height=18
				//Webview url="/static/solar_report.html" height=18
				//Image url="/static/solar_report.jpg" height=18
		Text item=gridwatts  {
			Frame {
				//Text item=maxinsidetemp 	valuecolor=["teal"]
				Text item=daygridwatt   		valuecolor=["teal"]		label="Energy Consumed"
				Webview url="" height=18
			Text item=battwatt   	label="Battery Watts"
			Text item=battamp   	label="Battery Amps"
			Text item=battsoc   	label="Battery Soc"
			Text item=battah   		label="Battery Amphours Consumed"
			Text item=battvolts   	label="Battery Volts"
			//Webview url="" height=18		

Frame label="Switches" {
		Text label="Switches" icon="poweroutlet"{
			Frame label="Switches"{
			Switch item=securitylights	icon="dimmablelight"
			Switch item=lightz1 		icon="dimmablelight"
			Switch item=lightz3 		icon="dimmablelight"
			Switch item=lightz4 		icon="dimmablelight"
			//Switch item= flatgeaser    	icon="dimmablelight" label="Gate Light"
			Switch item= dvrsw 
			Switch item= waterpumpsw
			Switch item= kitchensw
			Switch item= pressurepump
			//Switch item= maingeaserctr     label="LWRF Plug 4"
Frame label="Controled Switches" {
		Text label="Controled Switches" icon="error"{
			Frame label="Make sure before turning switches on or off!!"{
				Switch item=invertersw 		label="Inverter Switch"
				Switch item= maingeaserctr  label="Geyser Auto Controle"
				Switch item= maingeaser     label="Main Geyser "


Please use the Smarthome Designer to check your syntax. I could do that for you but where would be the fun in that!? :wink:

Also whenever you post code in the forum, please don’t just throw it in here. There are code fences buttons in the editor toolbar for that :wink:

Yes one thing. Where is the { that should be in the first line?

1 Like

Ha ha , I didn’t even know about the designer. Let me get that first and begin with that.

Thanks for the help Thom!!

Hi @ThomDietrich

Ok as you predicted Smarthome Designer showed that there were a couple of silly syntax errors in my sitemap , all were “{” errors. Atleast now I know of Smarthome Designer so I will not need to work with note pad again :sweat_smile: .

Thank you for your assistance!!

No problem :wink:

Btw the documentation can be found here: