grails / grails-plugin-converters

Legacy converters plugin
2 stars 17 forks source link

Error creating bean with name 'gspTagLibraryLookup': ... No signature of method: static ... isConverterClass() is applicable for argument types: ... [class java.lang.Boolean] #13

Open MMesch opened 5 years ago

MMesch commented 5 years ago

I have a grails 4.0 app that compiles fine with gradle but that fails when I deploy it on tomcat. I get plenty of BeanCreationExceptions that allows go back to a problem with isConverterClass (see below).

 nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gspTagLibraryLookup': Invocation of init method failed; nested exception is groovy.lang.MissingMethodException: No signature of method: static org.grails.web.converters.ConverterUtil.isConverterClass() is applicable for argument types: (Class) values: [class java.lang.Boolean]

I am quite new to grails and don't even know if this plugin is related to it. Any ideas?

dustindclark commented 4 years ago

Ran into this as well while upgrading to Grails 4. Make sure you add the dependency on the converters plugin to your build.gradle:

compile 'org.grails.plugins:converters:4.0.0'
latenightwreck commented 4 years ago

Hey,

I'm also getting a similar error on start up of my Grails 4.0.4 application when running on Tomcat 8.5.57, Java version 1.8.0.241. This app is going through an upgrade from Grails 3.2.2.

10/08/2020 14:43:41.985 ERROR org.springframework.boot.SpringApplication - Application run failed groovy.lang.MissingMethodException: No signature of method: static org.grails.web.converters.ConverterUtil.isConverterClass() is applicable for argument types: (Class) values: [boolean] I've included the converters plugin in my build.gradle, using 4.0.1.

The application comes up fine when doing grails run-app, but when I go to install the WAR file into the webapps directory, I receive this error. If there is any other information you need that can help, please let me know.

Thank you.

EDIT: corrected version of converters plugin.

jasonwhetton commented 4 years ago

Hey,

I'm also getting a similar error on start up of my Grails 4.0.4 application when running on Tomcat 8.5.57, Java version 1.8.0.241. This app is going through an upgrade from Grails 3.2.2.

10/08/2020 14:43:41.985 ERROR org.springframework.boot.SpringApplication - Application run failed groovy.lang.MissingMethodException: No signature of method: static org.grails.web.converters.ConverterUtil.isConverterClass() is applicable for argument types: (Class) values: [boolean] I've included the converters plugin in my build.gradle, using 4.0.1.

The application comes up fine when doing grails run-app, but when I go to install the WAR file into the webapps directory, I receive this error. If there is any other information you need that can help, please let me know.

Thank you.

EDIT: corrected version of converters plugin.

Did you manage to fix this? I'm seeing the same issue and don't have a solution yet.

ingkat68 commented 4 years ago

Hey,

I'm also getting a similar error on start up of my Grails 4.0.4 application when running on Tomcat 8.5.57, Java version 1.8.0.241. This app is going through an upgrade from Grails 3.2.2.

10/08/2020 14:43:41.985 ERROR org.springframework.boot.SpringApplication - Application run failed groovy.lang.MissingMethodException: No signature of method: static org.grails.web.converters.ConverterUtil.isConverterClass() is applicable for argument types: (Class) values: [boolean] I've included the converters plugin in my build.gradle, using 4.0.1.

The application comes up fine when doing grails run-app, but when I go to install the WAR file into the webapps directory, I receive this error. If there is any other information you need that can help, please let me know.

Thank you.

EDIT: corrected version of converters plugin.

Hi latenightwreck, have you found a solution to this issue? it would help me a lot... I've been stuck for 2 days. Tks

jasonwhetton commented 4 years ago

Hey, I'm also getting a similar error on start up of my Grails 4.0.4 application when running on Tomcat 8.5.57, Java version 1.8.0.241. This app is going through an upgrade from Grails 3.2.2. 10/08/2020 14:43:41.985 ERROR org.springframework.boot.SpringApplication - Application run failed groovy.lang.MissingMethodException: No signature of method: static org.grails.web.converters.ConverterUtil.isConverterClass() is applicable for argument types: (Class) values: [boolean] I've included the converters plugin in my build.gradle, using 4.0.1. The application comes up fine when doing grails run-app, but when I go to install the WAR file into the webapps directory, I receive this error. If there is any other information you need that can help, please let me know. Thank you. EDIT: corrected version of converters plugin.

Hi latenightwreck, have you found a solution to this issue? it would help me a lot... I've been stuck for 2 days. Tks

Hi,

This turned out, in my case, to be a conflict in versions of the converter library. Check your dependency graph and look for older versions of the converters library, you may need to upgrade some other plugin.

ingkat68 commented 4 years ago

Thank's @jasonwhetton. You gave me a good hint. dependency conflict