Skip to content

Instantly share code, notes, and snippets.

@lhotari
Created November 22, 2013 09:35
Show Gist options
  • Save lhotari/7597343 to your computer and use it in GitHub Desktop.
Save lhotari/7597343 to your computer and use it in GitHub Desktop.
GRAILS-10823 workaround. add this file to grails-app/conf directory
import org.codehaus.groovy.grails.web.json.JSONObject
class JsonWorkaroundBootStrap {
def init = { servletContext ->
// activate workaround for GRAILS-10823
println("activating workaround for GRAILS-10823 - use this only for Grails 2.3.3")
org.springframework.util.ReflectionUtils.findField(JSONObject, "useStreamingJavascriptEncoder").with {
accessible = true
set(null, false)
}
}
def destroy = {
}
}
@lhotari
Copy link
Author

lhotari commented Nov 22, 2013

another workaround (backport of the fix): lhotari/FrameworkBenchmarks@61e4a03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment