java.lang.IllegalArgumentException: Content type may not be null

GitHub | PaulHam211 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error sending command

    GitHub | 5 months ago | PaulHam211
    java.lang.IllegalArgumentException: Content type may not be null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Content type may not be null

      at org.apache.http.util.Args.notNull()
    2. Apache Http
      ContentType.parse
      1. org.apache.http.util.Args.notNull(Args.java:54)
      2. org.apache.http.entity.ContentType.parse(ContentType.java:265)
      2 frames
    3. com.bwssystems.HABridge
      HueMulator.lambda$19
      1. com.bwssystems.HABridge.hue.HueMulator.doHttpRequest(HueMulator.java:982)
      2. com.bwssystems.HABridge.hue.HueMulator.lambda$19(HueMulator.java:872)
      2 frames
    4. Spark
      JettyHandler.doHandle
      1. spark.RouteImpl$1.handle(RouteImpl.java:58)
      2. spark.webserver.MatcherFilter.doFilter(MatcherFilter.java:162)
      3. spark.webserver.JettyHandler.doHandle(JettyHandler.java:61)
      3 frames
    5. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
      2. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      3. org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
      4. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
      5. org.eclipse.jetty.server.Server.handle(Server.java:517)
      6. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:302)
      7. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
      8. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
      9. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      10. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
      10 frames
    6. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
      2 frames
    7. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame