splix / grails-spring-security-facebook

Facebook Authentication plugin for Grails
http://splix.github.io/grails-spring-security-facebook/index.html
Other
39 stars 35 forks source link

Grails 2.4.2 and Spring Security Facebook 0.16 #77

Closed adibak20 closed 10 years ago

adibak20 commented 10 years ago

Hello,

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
onats commented 10 years ago

Encountering this issue too. Caused by the @CompileStatic.

splix commented 10 years ago

thank you, working on it right now

splix commented 10 years ago

please try version 0.16.2

onats commented 10 years ago

works. thanks!