Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat Comet Error: invalid type code: AC  RSS feed

 
Robert Maier
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am just writing a Comet Servlet using an ObjectOutputStream. The Code is recreated from the ChatServlet used in the Comet Tomcat examples.
Receiving objects in the Client Applet i get the error:
"invalid type code: AC".
Using a simple In/OutputStream the connection works fine.
Used components:
Tomcat 6
Java 5.0.3
catalina.jar

The Code of the applet, registering at the servlet and then is waiting:


The code of the servlet which is adding the response OutputStream to an ArrayList:

The code of the servlet which is sending an object to the applet (as shown above):
What am i doing wrong?

I am happy about your help.
Many thanks.

[BPSouther: Added code tags]
[ June 20, 2008: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!