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.


Solutions on the web4

Solution icon of oraclecommunity
Make sure you have enabled Comet or make sure the Thread invoking that method is the same as the Servlet.service() Thread.

Solution icon of oraclecommunity
Make sure you have enabled Comet or make sure the Thread invoking that method is the same as the Servlet.service() Thread. >

Solution icon of web
via blogspot.com by Unknown author, 1 year ago
Make sure you have enabled Comet or make sure the Thread invoking that method is the same as the Servlet.service() Thread.

Solution icon of stackoverflow
via Stack Overflow by javaLearner
, 1 year ago
Make sure you have enabled Comet or make sure the Thread invoking that method is the same a the request Thread.

Stack trace

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 com.sun.grizzly.comet.CometContext.addCometHandler(CometContext.java:286)
	at com.sun.grizzly.comet.CometContext.addCometHandler(CometContext.java:305)
	at com.reuters.sds.comet.CometTest.processRequest(CometTest.java:82)
	at com.reuters.sds.comet.CometTest.doGet(CometTest.java:106)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1522)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.