When I use compile 'org.grails.plugins:gson:1.1.4' in my BuildConfig.groovy, I receive an error:
| Error 2013-10-03 15:27:20,323 [http-bio-8080-exec-2] ERROR errors.GrailsExceptionResolver - NoSuchFieldException occurred when processing request: [POST] /closer-server/import/activitiesNear.json - parameters:
owner_ids: 100003458440561,371982050
distance: 10000
origin: facebook,instagram
longitude: -48.8209441
to_date: 2013/10/03 03:27
latitude: -26.27844889999997
from_date: 2013/09/26 03:27
access_tokens: CAAHQhYZBhez0BANbqG7stscNM79MWEbd7fWxCgL7USbPLCTniZB6rN8xGZAiESS6L3lMPlOEZBAUlctCZAw89QvuWXRWAkIuGleRHhSZBTyAThzu0rL8jLaDuMXPQkMTmSZBJ5OoavbM580sxqnFbA4ZBSBJwsnUdZAVC8HfOOrkZANEz2v30rrNL0U2t44gu9NpEBLNZCZBMa0fdZBlEEN2ipxqihJjM62B2kOQZD,371982050.2a77e46.14d3c41eef9240978b4b51735b744cb4
id. Stacktrace follows:
Message: id
Line | Method
->> 1884 | getDeclaredField in java.lang.Class
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 28 | doCall in grails.plugin.gson.adapters.GrailsDomainSerializer$_serialize_closure1
| 59 | doCall . . . . . . . in grails.plugin.gson.adapters.GrailsDomainSerializer$_eachUnvisitedProperty_closure2
| 66 | eachProperty in grails.plugin.gson.adapters.GrailsDomainSerializer
| 51 | eachUnvisitedProperty in ''
| 27 | serialize in ''
| 70 | write . . . . . . . . in com.google.gson.TreeTypeAdapter
| 63 | write in ''
| 68 | write . . . . . . . . in com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper
| 96 | write in com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter
| 60 | write . . . . . . . . in ''
| 586 | toJson in com.google.gson.Gson
| 479 | toJsonTree . . . . . in ''
| 458 | toJsonTree in ''
| 29 | wrapJsonInRootKey . . in br.com.informant.closer.utils.JsonUtils
| 64 | activitiesNear in br.com.informant.closer.controller.ImportController
| 195 | doFilter . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter
| 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter
| 895 | runTask . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 662 | run . . . . . . . . . in java.lang.Thread
But when I clone the master branch, at the moment in 60df1f0, and use grails.plugin.location.gson = '../../grails-gson/', this don't happen.
I think that this was already resolved in master, but the grails-gson version in grails plugins repository is outdated. And need to be updated.
Thanks in advance!
When I use
compile 'org.grails.plugins:gson:1.1.4'in myBuildConfig.groovy, I receive an error:| Error 2013-10-03 15:27:20,323 [http-bio-8080-exec-2] ERROR errors.GrailsExceptionResolver - NoSuchFieldException occurred when processing request: [POST] /closer-server/import/activitiesNear.json - parameters: owner_ids: 100003458440561,371982050 distance: 10000 origin: facebook,instagram longitude: -48.8209441 to_date: 2013/10/03 03:27 latitude: -26.27844889999997 from_date: 2013/09/26 03:27 access_tokens: CAAHQhYZBhez0BANbqG7stscNM79MWEbd7fWxCgL7USbPLCTniZB6rN8xGZAiESS6L3lMPlOEZBAUlctCZAw89QvuWXRWAkIuGleRHhSZBTyAThzu0rL8jLaDuMXPQkMTmSZBJ5OoavbM580sxqnFbA4ZBSBJwsnUdZAVC8HfOOrkZANEz2v30rrNL0U2t44gu9NpEBLNZCZBMa0fdZBlEEN2ipxqihJjM62B2kOQZD,371982050.2a77e46.14d3c41eef9240978b4b51735b744cb4 id. Stacktrace follows: Message: id Line | Method ->> 1884 | getDeclaredField in java.lang.Class - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 28 | doCall in grails.plugin.gson.adapters.GrailsDomainSerializer$_serialize_closure1 | 59 | doCall . . . . . . . in grails.plugin.gson.adapters.GrailsDomainSerializer$_eachUnvisitedProperty_closure2 | 66 | eachProperty in grails.plugin.gson.adapters.GrailsDomainSerializer | 51 | eachUnvisitedProperty in '' | 27 | serialize in '' | 70 | write . . . . . . . . in com.google.gson.TreeTypeAdapter | 63 | write in '' | 68 | write . . . . . . . . in com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper | 96 | write in com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter | 60 | write . . . . . . . . in '' | 586 | toJson in com.google.gson.Gson | 479 | toJsonTree . . . . . in '' | 458 | toJsonTree in '' | 29 | wrapJsonInRootKey . . in br.com.informant.closer.utils.JsonUtils | 64 | activitiesNear in br.com.informant.closer.controller.ImportController | 195 | doFilter . . . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter | 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter | 895 | runTask . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker | 918 | run in '' ^ 662 | run . . . . . . . . . in java.lang.ThreadBut when I clone the master branch, at the moment in 60df1f0, and use
grails.plugin.location.gson = '../../grails-gson/', this don't happen.I think that this was already resolved in master, but the grails-gson version in grails plugins repository is outdated. And need to be updated.
Thanks in advance!