MarcoGervasoni / gwt-math

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

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi All,

I am not sure if I am missing some of bits of this module. I looked into
the sample and it seems to be same as what i am trying to do. however, it 
had those exception. I run gwt compile and it works fine. 

The only this that is different is I am using Gwt-sl using
GWTSpringControllel for RPC servlet.

here are the snippet code:

public Product genProduct() {
     // assuming we are entering 200
     product.setPrice(new BigDecimal(priceTxt.getValue())); 

     return product;
}

ProductController.getInstance().create(genProduct());

then my controller looks like:

public void create(Product product) {
    productService.create(product, new AsyncCallback<Product>() {
         public void onFailure(Throwable aCaught) {}

         public void onSuccess(Product aResult) {}
    });
}

Now, the exception occured around that.

Note: i had include the module into my app.gwt.xml as well.

Do I miss anything else?

Original issue reported on code.google.com by tonyto...@gmail.com on 24 Nov 2008 at 3:52

GoogleCodeExporter commented 9 years ago
Did you download gwt-math-server and add it into your classpath of server 
project?

Original comment by marco.ge...@gmail.com on 24 Nov 2008 at 8:47

GoogleCodeExporter commented 9 years ago
Yes, I do...I checked on my WEB-INF/lib.

Original comment by tonyto...@gmail.com on 24 Nov 2008 at 8:55

GoogleCodeExporter commented 9 years ago
Try to put it into your standard lib of the app Server. 
I always put into my EAR and work. 

Original comment by marco.ge...@gmail.com on 24 Nov 2008 at 9:20

GoogleCodeExporter commented 9 years ago

Original comment by marco.ge...@gmail.com on 5 Jan 2009 at 9:27