Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No such method after upgrade to Grails 2.4.1

Tags:

grails

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?

like image 937
saw303 Avatar asked Jun 21 '14 06:06

saw303


1 Answers

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.

like image 68
Jeff Scott Brown Avatar answered Sep 20 '22 12:09

Jeff Scott Brown