MarcoGervasoni / gwt-math

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

Failed to serialize from server side to client side while working on MAC JDK #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Implement a RemoteService interface which has a method will return
BigDecimal or any entity containing BigDecimal property
2. Define corresponding ~Async interface and server side implementation 
3. Do RPC call from client side, you will got the following exception stack

[WARN] Exception while dispatching incoming RPC call
java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at
com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClass
LoaderExtension.findClass(JettyLauncher.java:321)
    at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
    at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.getCustomFieldSerializer
(SerializabilityUtil.java:299)

What version of the product are you using? On what operating system?
I use GWT 1.6.4, 
MAC JDK 1.5, 
gwt-math-2.0.3, gwt-math-server-2.0.3.jar

I reproduce this problem several times, please check and advise, thanks.
Matt

Original issue reported on code.google.com by matt.jiang on 15 Jul 2009 at 9:41

GoogleCodeExporter commented 9 years ago
Seems like the problem is related to JDK 1.5/1.6 check
http://code.google.com/p/gwt-math/issues/detail?id=11

Original comment by paul.alok on 24 Jul 2009 at 7:26

GoogleCodeExporter commented 9 years ago
Fixed in 2.1

Original comment by marco.ge...@gmail.com on 6 Aug 2009 at 9:51