java.lang.IllegalArgumentException: Value must be between 0 and 100

GitHub | ertanden | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hue emulation: Can't set light to off

    GitHub | 5 months ago | ertanden
    java.lang.IllegalArgumentException: Value must be between 0 and 100

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Value must be between 0 and 100

      at org.eclipse.smarthome.core.library.types.PercentType.validateValue()
    2. org.eclipse.smarthome
      ItemEventFactory.createCommandEvent
      1. org.eclipse.smarthome.core.library.types.PercentType.validateValue(PercentType.java:46)[99:org.eclipse.smarthome.core:0.9.0.201609302115]
      2. org.eclipse.smarthome.core.library.types.PercentType.<init>(PercentType.java:41)[99:org.eclipse.smarthome.core:0.9.0.201609302115]
      3. org.eclipse.smarthome.core.library.types.HSBType.getBrightness(HSBType.java:135)[99:org.eclipse.smarthome.core:0.9.0.201609302115]
      4. org.eclipse.smarthome.core.library.types.HSBType.toString(HSBType.java:165)[99:org.eclipse.smarthome.core:0.9.0.201609302115]
      5. org.eclipse.smarthome.core.items.events.ItemEventFactory.createCommandEvent(ItemEventFactory.java:188)[99:org.eclipse.smarthome.core:0.9.0.201609302115]
      6. org.eclipse.smarthome.core.items.events.ItemEventFactory.createCommandEvent(ItemEventFactory.java:204)[99:org.eclipse.smarthome.core:0.9.0.201609302115]
      6 frames
    3. org.openhab.io
      HueEmulationServlet.service
      1. org.openhab.io.hueemulation.internal.HueEmulationServlet.apiState(HueEmulationServlet.java:297)[225:org.openhab.io.hueemulation:2.0.0.201610021150]
      2. org.openhab.io.hueemulation.internal.HueEmulationServlet.service(HueEmulationServlet.java:235)[225:org.openhab.io.hueemulation:2.0.0.201610021150]
      2 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[21:javax.servlet-api:3.1.0]
      1 frame
    5. Jetty
      ServletHandler.doHandle
      1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[82:org.eclipse.jetty.servlet:9.2.14.v20151106]
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[82:org.eclipse.jetty.servlet:9.2.14.v20151106]
      2 frames
    6. OPS4J Pax Web - Jetty
      HttpServiceServletHandler.doHandle
      1. org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[171:org.ops4j.pax.web.pax-web-jetty:4.2.4]
      1 frame
    7. Jetty
      ContextHandler.doHandle
      1. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      2. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[80:org.eclipse.jetty.security:9.2.14.v20151106]
      3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      4 frames
    8. OPS4J Pax Web - Jetty
      HttpServiceContext.doHandle
      1. org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[171:org.ops4j.pax.web.pax-web-jetty:4.2.4]
      1 frame
    9. Jetty
      ScopedHandler.handle
      1. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[82:org.eclipse.jetty.servlet:9.2.14.v20151106]
      2. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      3. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      4. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      4 frames
    10. OPS4J Pax Web - Jetty
      JettyServerHandlerCollection.handle
      1. org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[171:org.ops4j.pax.web.pax-web-jetty:4.2.4]
      1 frame
    11. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      2. org.eclipse.jetty.server.Server.handle(Server.java:499)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      3. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      4. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[81:org.eclipse.jetty.server:9.2.14.v20151106]
      5. org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[73:org.eclipse.jetty.io:9.2.14.v20151106]
      6. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[84:org.eclipse.jetty.util:9.2.14.v20151106]
      7. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[84:org.eclipse.jetty.util:9.2.14.v20151106]
      7 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
      1 frame