Hi everyone,
I wrote a small application deployed on my server which tends to
generate some files. The action of generation is called in a rpc
method when the user ask for it.
In my service implementation (call it "applet"), I open an url
connection to a remote servlet :
URL url = new URL("http://localhost:8080/requestmanager/download");
URLConnection con = url.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setDefaultUseCaches(false);
con.setRequestProperty("Content-Type",// "application/x-java-
serialized-object");
Then I'm using an ObjectOutputStream and an ObjectInputStream to
communicate with the servlet. It's a kind of mirror to the "applet". I
get an ObjectInputStream with the request and write the response with
an ObjectOutputStream.
Until here, there is no problem. But since I want to deploy my
applcation with the appengine, it doestn't work at all.
On the servlet side, when I want to get the request this way :
ObjectInputStream ois = new ObjectInputStream(request.getInputStream
()); I caught the exception java.io.StreamCorruptedException: invalid
stream header
Does anybody know why it only happens since (or when) I import
appengine's library in my project ? Is there a way to avoid this
exception ?
As far as I am working on it, I don't understand why it's happening
whereas every object I'm using are in the white list :/
To give some tracks, when I read the Inputstream from
request.getInputStream() byte per byte, the 6 or 7 firsts bytes seems
me strange. For example, if I send a basic string like "abscdef", the
inputstream contain :
63
63
0
5
116
0
26
97 < a
98 < b
99 < c
100 < d
So... i dunno what to do >_<
Thanks in advance, bye.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---