I just upgraded to Grails 2.4.1
and it seems that there is a problem with tag libraries
.
Class java.lang.NoSuchMethodError
Message org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.getOut(Ljava/lang/Object;)Ljava/io/Writer;
This is the stacktrace:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <asset:javascript>: org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.getOut(Ljava/lang/Object;)Ljava/io/Writer;
... 8 more
Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <asset:javascript>: org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.getOut(Ljava/lang/Object;)Ljava/io/Writer;
at home_saw303_dev_projects_zsc_supporter_grails_app_views_layouts_zscsupporter_gsp$_run_closure1.doCall(home_saw303_dev_projects_zsc_supporter_grails_app_views_layouts_zscsupporter_gsp:36)
at home_saw303_dev_projects_zsc_supporter_grails_app_views_layouts_zscsupporter_gsp.run(home_saw303_dev_projects_zsc_supporter_grails_app_views_layouts_zscsupporter_gsp:43)
... 8 more
Caused by: java.lang.NoSuchMethodError: org.codehaus.groovy.grails.plugins.web.api.TagLibraryApi.getOut(Ljava/lang/Object;)Ljava/io/Writer;
at asset.pipeline.AssetsTagLib$_closure1_closure10.doCall(AssetsTagLib.groovy:45)
at asset.pipeline.AssetsTagLib$_closure1.doCall(AssetsTagLib.groovy:43)
... 10 more
Can you confirm this behaviour? Is there a workaround?
I think a grails clean
in your original app after upgrading will make the problem go away. The issue is that you have a GSP which was compiled with an earlier version of Grails and that compiled class is not compatible with the version of Grails you are using now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With