saw303
saw303

Reputation: 9072

No such method after upgrade to Grails 2.4.1

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?

Upvotes: 7

Views: 937

Answers (1)

Jeff Scott Brown
Jeff Scott Brown

Reputation: 27200

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.

Upvotes: 15

Related Questions