Re: App engiene change impacts my code ? Pls look into

68 views
Skip to first unread message

Deepak Singh

unread,
Mar 13, 2016, 12:59:59 AM3/13/16
to google-a...@googlegroups.com

Facing business impact - 

Code was working fine for last 2 years. No change in code but issue persists. Does app engine change anything ?

Sending ---
response.setContentType("application/x-java-serialized-object");
response.setHeader("Content-Encoding", "gzip");
GZIPOutputStream gos = new GZIPOutputStream(response.getOutputStream());
ObjectOutputStream oos = new ObjectOutputStream(gos);
oos.writeObject(rs);
gos.finish();
oos.flush();
oos.close();


Reading ---

GZIPInputStream gi = new GZIPInputStream(new ByteArrayInputStream(res.getContent()));
ObjectInputStream ois = new ObjectInputStream(gi);


Exception -
java.io.StreamCorruptedException: invalid stream header: 1F8B0800
at red color line

.

Pls help gae java team.



On Sat, Mar 12, 2016 at 11:49 PM, Deepak Singh <deepaks...@gmail.com> wrote:
Dear App engine team,

For last couple of days, we are facing serialization issue. Our app does not add 'GZIP' header to response and thus we are getting the exception as below


java.io.StreamCorruptedException: invalid stream header: 1F8B0800


App id:     pdstechi

Pls resolve the same.

The issue happens most frequently but not always.




--
Deepak Singh

Nick (Cloud Platform Support)

unread,
Mar 15, 2016, 5:02:54 PM3/15/16
to Google App Engine
Hey Deepak,

As mentioned in a great number of threads in this forum, if you encounter the need to post technical issues and support requests, these should be made at the Public Issue Tracker or StackOverflow. This forum is meant for general discussion of the platform and services, which might be more along the lines of a thread saying "What are some ways that people have used java serialization in the context of App Engine? Do you store serialized objects in Memcache? Or just primitives like Strings?" (and even still, this isn't a perfect example since it's a sort of abstract way to pose a question, but at any rate, would not be off-topic by any means).

With that said, I'm happy to offer these initial thoughts which could help point you toward a solution:

* You should post the full stack trace when you get an error

* You should indicate whether the issue is recurring or happened only once

* You should explain the history of the error (has it always worked until now? Does a specific file, request, etc. trigger the error?)

If you reply here, I'll be happy to help assist more. Just know that ultimately, technical questions like this are better for Stack Overflow not only because we define this forum differently, but also because there are far more people there who can help you than have ever visited this forum, in all likelihood.

Best wishes,

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages