Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

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

Open
cstorar opened this issue Jul 25, 2018 · 0 comments

Comments

@cstorar
Copy link

cstorar commented Jul 25, 2018

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 grails/grails-core#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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant