MarcoGervasoni / gwt-math

Automatically exported from code.google.com/p/gwt-math
0 stars 0 forks source link

GWT 2.0 support #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please add support for GWT 2.0

Original issue reported on code.google.com by dale.wyt...@gmail.com on 14 Jan 2010 at 6:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have been informed that it should be working.  In our case when we upgraded 
to GWT 
2.0 we started getting the following exception.  It is particularly strange 
because 
we don't use BigInteger at all, only BigDecimal

com.google.gwt.user.client.rpc.SerializationException: Type 
'java.math.BigInteger' 
was not included in the set of types which can be serialized by this 
SerializationPolicy or its Class object could not be loaded. For security 
purposes, 
this type will not be serialized.: instance = 22

Original comment by dale.wyt...@gmail.com on 15 Jan 2010 at 12:25

GoogleCodeExporter commented 9 years ago
In order to address the BigInteger exception, I forced BigInteger onto the RPC 
whitelist, but that only changed the problem to: 

com.google.gwt.user.client.rpc.SerializationException: Type '[I' was not 
included in 
the set of types which can be serialized by this SerializationPolicy or its 
Class 
object could not be loaded. For security purposes, this type will not be 
serialized.: 
instance = [I@7790ec

Original comment by dale.wyt...@gmail.com on 15 Jan 2010 at 12:27

GoogleCodeExporter commented 9 years ago
Has anyone had any success with this?  I am getting a similar issue using GWT 
2.0.0.

In my gwt.rpc file I have "java.math.BigDecimal/3109731104", but when trying to
deserialize an object containing a BigDecimal I get an exception indicating it 
failed
on "java.math.BigDecimal/1680160536"

Any idea why the number at the end might be different?  I have found a GWT issue
which sounds related, but I havent confirmed that
(http://code.google.com/p/google-web-toolkit/issues/detail?id=4460)

Original comment by ssenecal...@gmail.com on 25 Jan 2010 at 7:05

GoogleCodeExporter commented 9 years ago
I have just confirmed that adding BigDecimal_CustomFieldSerializer.class and
BigInteger_CustomFieldSerializer.class to your gwt-servlet.jar fixes the 
problem. 
This should be fixed in GWT 2.0.1
(http://code.google.com/p/google-web-toolkit/issues/detail?id=4460), so this 
isnt
actually a problem with gxt-math

Original comment by ssenecal...@gmail.com on 25 Jan 2010 at 7:30

GoogleCodeExporter commented 9 years ago
I have the same issue (BigDecimal/3109731104 - BigDecimal/1680160536), even if 
I use
GWT 1.7.0.
RPC.java - line 287
parameterValues[i] = streamReader.deserializeValue(parameterTypes[i]);

Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Invalid type
signature for java.math.BigDecimal
    at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:298)
...
Caused by: com.google.gwt.user.client.rpc.SerializationException: Invalid type
signature for java.math.BigDecimal
    at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateType
Versions(ServerSerializationStreamReader.java:737)

Original comment by dan.tal...@gmail.com on 25 Jan 2010 at 5:47

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/gwt-java-math supports GWT 2.0

Original comment by rich...@zschech.net on 27 May 2010 at 2:37