sonic27 / google-gson

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

Does gson should work for a Blackberry application? #216

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Java BlackBerry application at Eclipse
2. Add the gson JARs as external jars
3. Try to run the application in the simulator. Wont run: module not found error

Tried to preverify class and it's throwing an error

What is the expected output? What do you see instead?
Should be able to run the application without errors.

What version of the product are you using? On what operating system?
gson 1.4, Eclipse Galileo, latest Blackberry SDK (1.2)

Please provide any additional information below.
If I select to Export the JAR at the project's properties it wont even get 
packed, it will throw an error when packing

Original issue reported on code.google.com by arturo.o...@gmail.com on 16 Jun 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Could you paste the error? What version of Java does Blackberry SDK 1.2 support?

Original comment by limpbizkit on 28 Aug 2010 at 5:34

GoogleCodeExporter commented 9 years ago
I'm working with a BlackBerry project in which I would like to use gson to 
retrieve data from server. I have a BlackBerry Client which should consume json 
payload from my server. After a few attempts I came to know that gson is not 
designed keeping blackberry in mind. I would be desirable to have this feature 
in gson.

I'm attaching the trace...

com.google.gson.DefaultTypeAdapters$CharacterTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$DefaultJavaSqlDateTypeAdapter: Warning!: 
Duplicate method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$DefaultTimeTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$DefaultTimestampDeserializer: Warning!: 
Duplicate method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$GregorianCalendarTypeAdapter: Warning!: 
Duplicate method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$IntegerTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$BigIntegerTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$UrlTypeAdapter: Warning!: Duplicate method 
only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$UriTypeAdapter: Warning!: Duplicate method 
only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$NumberTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$BigDecimalTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$ShortTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$EnumTypeAdapter: Warning!: Duplicate method 
only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$StringTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$FloatDeserializer: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$LongDeserializer: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$UuidTypeAdapter: Warning!: Duplicate method 
only differs by return type: deserialize
com.google.gson.JsonStreamParser: Warning!: Duplicate method only differs by 
return type: next
com.google.gson.DefaultTypeAdapters$HashSetCreator: Warning!: Duplicate method 
only differs by return type: createInstance
com.google.gson.DefaultTypeAdapters$LocaleTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$DoubleDeserializer: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$BooleanTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter: Warning!: Duplicate 
method only differs by return type: createInstance
com.google.gson.DefaultTypeAdapters$ByteTypeAdapter: Warning!: Duplicate method 
only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$DefaultDateTypeAdapter: Warning!: Duplicate 
method only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$TreeSetCreator: Warning!: Duplicate method 
only differs by return type: createInstance
com.google.gson.DefaultTypeAdapters$MapTypeAdapter: Warning!: Duplicate method 
only differs by return type: deserialize
com.google.gson.DefaultTypeAdapters$MapTypeAdapter: Warning!: Duplicate method 
only differs by return type: createInstance
com.google.gson.DefaultTypeAdapters$PropertiesCreator: Warning!: Duplicate 
method only differs by return type: createInstance
java.lang.Enum: Warning!: No definition found
com.google.gson.FieldNamingPolicy: Warning!: Base class has undefined type: 
java.lang.Enum
java.lang.reflect.GenericArrayType: Warning!: No definition found
com.google.gson.GenericArrayTypeImpl: Warning!: Implements undefined interface: 
java.lang.reflect.GenericArrayType
java.lang.Iterable: Warning!: No definition found
com.google.gson.JsonArray: Warning!: Implements undefined interface: 
java.lang.Iterable
java.util.Iterator: Warning!: No definition found
com.google.gson.JsonStreamParser: Warning!: Implements undefined interface: 
java.util.Iterator
com.google.gson.LongSerializationPolicy: Warning!: Base class has undefined 
type: java.lang.Enum
java.util.LinkedHashMap: Warning!: No definition found
com.google.gson.LruCache: Warning!: Base class has undefined type: 
java.util.LinkedHashMap
com.google.gson.ModifyFirstLetterNamingPolicy$LetterModifier: Warning!: Base 
class has undefined type: java.lang.Enum
java.lang.reflect.ParameterizedType: Warning!: No definition found
com.google.gson.ParameterizedTypeImpl: Warning!: Implements undefined 
interface: java.lang.reflect.ParameterizedType
java.io.Serializable: Warning!: No definition found
com.google.gson.Token: Warning!: Implements undefined interface: 
java.io.Serializable
java.lang.annotation.Annotation: Warning!: No definition found
com.google.gson.annotations.Expose: Warning!: Implements undefined interface: 
java.lang.annotation.Annotation
com.google.gson.annotations.SerializedName: Warning!: Implements undefined 
interface: java.lang.annotation.Annotation
com.google.gson.annotations.Since: Warning!: Implements undefined interface: 
java.lang.annotation.Annotation
com.google.gson.annotations.Until: Warning!: Implements undefined interface: 
java.lang.annotation.Annotation
java.lang.Appendable: Warning!: No definition found
java.lang.StringBuilder: Warning!: No definition found
java.lang.reflect.Field: Warning!: No definition found
java.lang.reflect.Type: Warning!: No definition found
java.math.BigInteger: Warning!: No definition found
java.text.DateFormat: Warning!: No definition found
java.util.Collection: Warning!: No definition found
java.util.List: Warning!: No definition found
java.util.Map: Warning!: No definition found
java.util.Set: Warning!: No definition found
java.util.logging.Logger: Warning!: No definition found
java.util.regex.Pattern: Warning!: No definition found
java.lang.Class: Warning!: No definition found for method: isAnonymousClass
java.lang.Class: Warning!: No definition found for method: isLocalClass
com.google.gson.AnonymousAndLocalClassExclusionStrategy: Error!: Missing stack 
map in: isAnonymousOrLocal at label: 18
Packaging project GSON_ME_Library failed (took 2.532 seconds) 

Original comment by santhosh...@gmail.com on 18 Oct 2010 at 11:48

GoogleCodeExporter commented 9 years ago
I'm working with BlackBerry SDK 5.0.0

Original comment by santhosh...@gmail.com on 18 Oct 2010 at 11:51

GoogleCodeExporter commented 9 years ago
I faced the same problem, and sadly this is impossible since the Blackberry SDK 
is based on J2ME wich does not have Reflection or other things required by Gson.

Cheers.

Original comment by Nahuel.B...@gmail.com on 15 Dec 2010 at 11:31