There is no such method after upgrading to Grails 2.4.1

I just upgraded to Grails 2.4.1 and it seems like 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 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 behavior? Is there a workaround?

+6
source share
1 answer

I think that grails clean in your source application after updating will cause the problem to disappear. The problem is that you have a GSP that was compiled with an earlier version of Grails, and this compiled class is incompatible with the version of Grails that you are using now.

+14
source

Source: https://habr.com/ru/post/971126/


All Articles