OH v2.5m1 - Sitemap Slider Entries

(Mr. Wiseman) #1
  • Platform information:
  • Synology
  • OH 2.5m1 using Offline Kar vs. downloading packages

I recently upgraded from OH2.3 to OH2.5m1 and I’m running into issues with my sitemap around slider items.

I had to comment out all my slider items (sonos, zwave, samsung tv, etc.) because this error is displayed when using the sitemap.

HTTP ERROR 500
Problem accessing /basicui/app. Reason:

    Server Error
Caused by:
java.lang.NoSuchMethodError: org.eclipse.smarthome.model.sitemap.Slider.getMinValue()Ljava/math/BigDecimal;
	at org.eclipse.smarthome.ui.basic.internal.render.SliderRenderer.minValueOf(SliderRenderer.java:96)
	at org.eclipse.smarthome.ui.basic.internal.render.SliderRenderer.renderWidget(SliderRenderer.java:77)
	at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.renderWidget(PageRenderer.java:194)
	at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:160)
	at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processChildren(PageRenderer.java:181)
	at org.eclipse.smarthome.ui.basic.internal.render.PageRenderer.processPage(PageRenderer.java:124)
	at org.eclipse.smarthome.ui.basic.internal.servlet.WebAppServlet.service(WebAppServlet.java:189)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:293)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
	at org.eclipse.jetty.server.Server.handle(Server.java:531)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
	at java.lang.Thread.run(Thread.java:748)
Powered by Jetty:// 9.4.11.v20180605

I originally thought it was just one slider item having a decimal value; but it’s ALL slider items.

Has anybody seen this and/or have solution for it?

Best, Jay

0 Likes

(Mr. Wiseman) #2

The solution was converting Slider to Setpoint in the site maps for all my Slider items.

    Frame label="Living Room Onkyo NR626 Receiver - THING " {
        Switch    item=OnkyoLRPower									icon="switch"
    	Switch    item=OnkyoLRPower_WOL								icon="switch"			label="WOL"
        Switch    item=OnkyoLRMute									icon="switch"
        Text	  item=OnkyoLRInput 	
		Setpoint  item=OnkyoLRVolume																		minValue=0 maxValue=100 step=1
    }
	
	Frame label="Alexa Michael Test DOT" {
            Setpoint  	item=Echo_Michael_Volume															minValue=0 maxValue=100 step=1
			Setpoint	item=Echo_Michael_textToSpeechVolume												minValue=0 maxValue=100 step=1
			Text		item=Echo_Michael_LastVoiceCommand
			Text		item=Echo_Michael_LastReminder
    }

	Frame label="Garage zWave Repeater"{
		Setpoint	item=GarageRepeater_Dimmer										label="Dimmer"						minValue=0 maxValue=100 step=1
		Colorpicker	item=GarageRepeater_Color		icon="colorwheel"				label="Button Light Color"
		Setpoint	item=GarageRepeater_Color_Temp									label="Color Temp"					minValue=0 maxValue=100 step=1
		Text		item=GarageRepeater_Update		icon="time"						label="Update Time"
	}		
	
	Frame label="HUE Book Shelf"{											
		Setpoint	item=BookShelf_Dimmer												label="Dimmer"				minValue=0 maxValue=100 step=1
		Colorpicker	item=BookShelf_Color				icon="colorwheel"				label="LED Light Color"
		Setpoint	item=BookShelf_ColorTemp											label="Color Temp"			minValue=0 maxValue=100 step=1
	}	

Best, Jay

0 Likes