I apologize if its not in the right forum. I am trying to call a servlet from java class and get data from the servlet to the java class. I am having some issues(java.io.StreamCorruptedException: invalid stream header) with it.
My Java class
My Servlet class is
The exception I get is
The error line is ObjectInputStream in = new ObjectInputStream(aConnection.getInputStream());
I also wanted to know if I am able to access my servlet as I did, since the servlet print statements are not getting executed. I tried the same servlet URL in the browser, atleast I get the user values printed in the log file, but XML error in the browser display.
What am I missing here? Thanks for the help.