• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Comet Error: invalid type code: AC

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic