grails-http-builder-helper icon indicating copy to clipboard operation
grails-http-builder-helper copied to clipboard

Dynamic method withHttp does not inject into singleton controllers or services.

Open cstorar opened this issue 6 years ago • 0 comments

I have a Grails 3.3.6 app that uses singleton controller and service classes. When trying to use withHttp() in my service class I get: Caused by: groovy.lang.MissingMethodException: No signature of method

I eventually found a stop-gap solution after reading graemerocher's comment in https://github.com/grails/grails-core/issues/9648 Using this resolved my problem although it's not the best approach: class Application extends GrailsAutoConfiguration { static { ExpandoMetaClass.enableGlobally() }

I'd like to request this issue be investigated to have this plugin provide better singleton support. If there is a better alternative to the solution I listed above I'd love to see it!

cstorar avatar Jul 25 '18 20:07 cstorar