samujjwal / google-gson

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

new Gson() fails on appengine #468

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Somewhere in program call 
  Gson gson = new Gson();
2. Run this code (using servlet or unit test) on appengine.
3. Nb! this code works in dev server but fails when deoployed on appengine.

What is the expected output? What do you see instead?
 java.lang.VerifyError: Cannot inherit from final class
    at com.google.appengine.runtime.Request.process-aa8514ea8d01585f(Request.java)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

What version of the product are you using? On what operating system?
Gson 2.2.2
Appengine Java SDK 1.6.0

Please provide any additional information below.
It worked with older version of Gson (1.7.1) and same Appengine SDK version 
(1.6.0).

Original issue reported on code.google.com by aleksandr.bg on 28 Aug 2012 at 10:28

GoogleCodeExporter commented 9 years ago
Just encountered the same issue Gson 3.2.1 GAE sdk 1.9.15

Original comment by jchristo...@gmail.com on 12 Jan 2015 at 3:49