Receiving XML from Actionscript on Servlet - Invalid Stream Header

Posted by John Doe on Stack Overflow See other posts from Stack Overflow or by John Doe
Published on 2010-04-30T03:58:55Z Indexed on 2010/04/30 4:07 UTC
Read the original article Hit count: 430

Filed under:
|
|

I have an ActionScript File sending XML to my servlet. I am only getting empty arrays on output. In ActionScript I checked and I am in fact sending the correct XML.

Anyone know what Exactly I'm doing wrong?

Exception error is:

java.io.StreamCorruptedException: invalid stream header
   package myDungeonAccessor;
    try {

    System.out.println("HEADERS: " + request.getHeaderNames());
    ObjectInputStream in = new ObjectInputStream(request.getInputStream());
    System.out.println(in);
    ObjectOutputStream out = new ObjectOutputStream(response.getOutputStream());
   } catch(Exception e) {
       e.printStackTrace();
   }

Exception

© Stack Overflow or respective owner

Related posts about Xml

Related posts about servlet