java.lang.IllegalStateException: Make sure you have enabled Comet or make sure the thread invoking that method is the same as the Servlet.service() thread.

Oracle Community | kronos72it-493396 | 6 years 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

    Counter example and grizzly source code

    Oracle Community | 6 years ago | kronos72it-493396
    java.lang.IllegalStateException: Make sure you have enabled Comet or make sure the thread invoking that method is the same as the Servlet.service() thread.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Make sure you have enabled Comet or make sure the thread invoking that method is the same as the Servlet.service() thread.

      at org.glassfish.grizzly.comet.CometContext.addCometHandler()
    2. grizzly-comet
      CometContext.addCometHandler
      1. org.glassfish.grizzly.comet.CometContext.addCometHandler(CometContext.java:219)
      1 frame
    3. org.savino.comet
      LongPollingServlet.doGet
      1. org.savino.comet.LongPollingServlet.doGet(LongPollingServlet.java:129)
      1 frame