I use Grails 2.4.2 and I installed spring seciurity facebook in version 0.16. I have errors:
Compilation error: startup failed:
C:\probionet2\target\work\plugins\spring-security-facebook-0.16\src\groovy\com\the6hours\grails\springsecurity\facebook\FacebookAuthUtils.groovy: 219: Expected parameter of type java.lang.Object but got java.lang.String
@ line 219, column 26.
params.collect { String key, Object value ->
^
C:\probionet2\target\work\plugins\spring-security-facebook-0.16\src\groovy\com\the6hours\grails\springsecurity\facebook\FacebookAuthUtils.groovy: 220: [Static type checking] - Cannot find matching method com.the6hours.grails.springsecurity.facebook.FacebookAuthUtils#encode(java.lang.Object). Please check if the declared type is right and if the method exists.
@ line 220, column 13.
encode(key) + '=' + encode(value?.toString() ?: '')
^
C:\probionet2\target\work\plugins\spring-security-facebook-0.16\src\groovy\com\the6hours\grails\springsecurity\facebook\FacebookAuthUtils.groovy: 220: [Static type checking] - Cannot find matching method java.lang.Object#plus(java.lang.String). Please check if the declared type is right and if the method exists.
@ line 220, column 25.
encode(key) + '=' + encode(value?.toString() ?: '')
^
3 errors
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc] C:\probionet2\target\work\plugins\spring-security-facebook-0.16\src\groovy\com\the6hours\grails\springsecurity\facebook\FacebookAuthUtils.groovy: 219: Expected parameter of type java.lang.Object but got java.lang.String
[groovyc] @ line 219, column 26.
[groovyc] params.collect { String key, Object value ->
[groovyc] ^
[groovyc]
[groovyc] C:\probionet2\target\work\plugins\spring-security-facebook-0.16\src\groovy\com\the6hours\grails\springsecurity\facebook\FacebookAuthUtils.groovy: 220: [Static type checking] - Cannot find matching method com.the6hours.grails.springsecurity.facebook.FacebookAuthUtils#encode(java.lang.Object). Please check if the declared type is right and if the method exists.
[groovyc] @ line 220, column 13.
[groovyc] encode(key) + '=' + encode(value?.toString() ?: '')
[groovyc] ^
[groovyc]
[groovyc] C:\probionet2\target\work\plugins\spring-security-facebook-0.16\src\groovy\com\the6hours\grails\springsecurity\facebook\FacebookAuthUtils.groovy: 220: [Static type checking] - Cannot find matching method java.lang.Object#plus(java.lang.String). Please check if the declared type is right and if the method exists.
[groovyc] @ line 220, column 25.
[groovyc] encode(key) + '=' + encode(value?.toString() ?: '')
[groovyc] ^
[groovyc]
[groovyc] 3 errors
Process finished with exit code 1
Hello,
I use Grails 2.4.2 and I installed spring seciurity facebook in version 0.16. I have errors: