Silvio127 / gwt-comet

Automatically exported from code.google.com/p/gwt-comet
0 stars 0 forks source link

comet timeout has expired after 10000ms - one resolution that worked for me #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write your own code using the chat example
2. Use net.zschech.gwt.comet.server.CometServlet in the web.xml
3. Navigate to the comet servlet directly in a browser - you can see 
sun.InstantiationException

What is the expected output? What do you see instead?
... comet timeout has expired after 10000ms

What version of the product are you using? On what operating system?
GWT 1.7 , Windows Vista, JDK 1.6

Please provide any additional information below.

No need to resolve  - this is just to help others facing a similar situation. 

One possible reason is : the net.zschech.gwt.comet.server.CometServlet is 
abstract, and the servlet is not instantiated.

By using an own impl of the abstract class in web.xml : the instantiation error 
and the timeout expired error both seems to go away. At least it worked for me.

Original issue reported on code.google.com by kinshuk....@gmail.com on 26 Feb 2011 at 10:46

GoogleCodeExporter commented 9 years ago
Is it not fixed currently? I see in sources that CometServlet is _not_ abstract 
(or its state is changed in runtime or some other way?). However, I get this 
error every time.

http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/comet
/server/CometServlet.java

Anyway, I'll try this trick.

Original comment by shaman.sir on 4 Jun 2011 at 3:11

GoogleCodeExporter commented 9 years ago
Not helped :(

Also, I recently get this exception when I log in from another browser

Caused by: java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:100)
    at sun.nio.ch.IOUtil.write(IOUtil.java:56)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)

Source code is here: https://github.com/skavish/collaborative-paint

Original comment by shaman.sir on 4 Jun 2011 at 3:21

GoogleCodeExporter commented 9 years ago
I have created an issue 20 on it.

(No, currently navigating comet servlet do not causes the instantiation error)

Original comment by shaman.sir on 5 Jun 2011 at 9:11