I have an ActionScript File sending XML to my servlet. I am only getting empty arrays on output. Anyone know what Exactly I'm doing wrong? output is:
java.io.StreamCorruptedException: invalid stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764) at java.io.ObjectInputStream.(ObjectInputStream.java:277) at myDungeonAccessor.myDungeonAccessorServlet.doPost(myDungeonAccessorServlet.java:82)
package myDungeonAccessor;
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
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