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 | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Counter example and grizzly source code

    Oracle Community | 5 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