Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Serialization bug in 1.1?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jon918  
View profile  
 More options Aug 14 2006, 12:56 pm
From: "jon918" <jon...@gmail.com>
Date: Mon, 14 Aug 2006 09:56:25 -0700
Local: Mon, Aug 14 2006 12:56 pm
Subject: Serialization bug in 1.1?
I have an app that was working fine in 1.0.21, but is breaking during
the deserialization of an RPC request in 1.1. The problem is that
AbstractSerializationStreamReader's fSeenArray member variable doesn't
contain as many items as the code is expecting it to. (trace below)

Has anyone else seen this? Any further debug tips?

[WARN] StandardContext[]Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseriz eWithCustomSerializer(ServerSerializationStreamReader.java:250)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java:138)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java:59)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeValue(ServerSerializationStreamReader.java:61)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeClass(ServerSerializationStreamReader.java:189)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java:147)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java:59)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeValue(ServerSerializationStreamReader.java:61)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java:249)
        at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceSer vlet.java:147)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
Caused by: java.lang.reflect.InvocationTargetException: null
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseriz eWithCustomSerializer(ServerSerializationStreamReader.java:239)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java:138)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java:59)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeValue(ServerSerializationStreamReader.java:61)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeClass(ServerSerializationStreamReader.java:189)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java:147)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java:59)
Caused by: java.lang.IndexOutOfBoundsException: Index: 31, Size: 15
        at java.util.ArrayList.RangeCheck(ArrayList.java:546)
        at java.util.ArrayList.get(ArrayList.java:321)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java:49)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeValue(ServerSerializationStreamReader.java:61)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeClass(ServerSerializationStreamReader.java:189)
        at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java:147)
        at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java:59)
        at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializ er.deserialize(ArrayList_CustomFieldSerializer.java:34)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
(1 user)  More options Aug 14 2006, 2:40 pm
From: "Scott Blum" <sco...@google.com>
Date: Mon, 14 Aug 2006 11:40:11 -0700
Local: Mon, Aug 14 2006 2:40 pm
Subject: Re: Serialization bug in 1.1?
Hi jon,

Hard to tell much from the trace, but if you can email me your project
I'd be happy to look at it.

Scott


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
(1 user)  More options Aug 15 2006, 11:15 am
From: "Scott Blum" <sco...@google.com>
Date: Tue, 15 Aug 2006 11:15:43 -0400
Local: Tues, Aug 15 2006 11:15 am
Subject: Re: Serialization bug in 1.1?

Jon,

After examining your trace in more detail and correlating it with a problem
that's been found, I may have a fix for you:

With a zip utility, go into
gwt-user.jar/com/google/gwt/user/client/rpc/impl/ClientSerializationStreamW riter.java,
line 101.  Change that line to read:

setIntForInt(System.identityHashCode(instance), objectCount++);

You may have to pull the file out of the jar, edit it, and replace it
depending on your zip editor's capabilities.

Does this fix your problem?

Scott

On 8/15/06, jon918 <jon...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jon918  
View profile  
 More options Aug 15 2006, 10:23 pm
From: "jon918" <jon...@gmail.com>
Date: Tue, 15 Aug 2006 19:23:31 -0700
Local: Tues, Aug 15 2006 10:23 pm
Subject: Re: Serialization bug in 1.1?
Scott,

Your suggestion did in fact fix the problem. Sorry it took me a while
to get back to you.

Thanks for the quick feedback. Keep up the great work GWT team!

Jon


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrey Agranov  
View profile  
 More options Aug 21 2006, 9:26 am
From: "Andrey Agranov" <agra...@gmail.com>
Date: Mon, 21 Aug 2006 06:26:55 -0700
Local: Mon, Aug 21 2006 9:26 am
Subject: Re: Serialization bug in 1.1?
Hi, Scott.
I experienced problems (stack overflow) during serialization of objects
with bidirectional relation, in version 1.1
I found the same cause and did the same fix and it worked.
It's a bug, nothing to say....

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
(1 user)  More options Aug 21 2006, 2:45 pm
From: "Scott Blum" <sco...@google.com>
Date: Mon, 21 Aug 2006 14:45:42 -0400
Local: Mon, Aug 21 2006 2:45 pm
Subject: Re: Serialization bug in 1.1?
Thanks, Andrey.

Yes, this one bug is responsible for all sorts of flaky behavior, from
infinite loops on the client to a failure to deserialize on the
server.  This bug is probably the worst one we've let out the door!
We're going to be putting out a bugfix release soon with this fixed.

Scott


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thripper  
View profile  
 More options Aug 29 2006, 7:02 pm
From: "thripper" <thrip...@gmail.com>
Date: Tue, 29 Aug 2006 23:02:23 -0000
Local: Tues, Aug 29 2006 7:02 pm
Subject: Re: Serialization bug in 1.1?
Took me some 2 days and a lot of debugging until realised it must be a
bug.

Tnx for the hot fix tough. I'll post back after i try it.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google