You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed the Spring-Security-Core plugin(2.0-RC4), and customized UserDetailService successfully. Then installed Spring-Security-Facebook plugin(0.17), that can use FB login. But when I use "sec.loggedInUserInfo(field: 'username')" in gsp, that caused MissingPropertyException.
P.S. If I disabled the customize's UserDetailService, that sec.loggedInUserInfo can be use and correct.
Line | Method
->> 53 | doFilter in GrailsAnonymousAuthenticationFilter.java
| 49 | doFilter in RequestHolderAuthenticationFilter.java
| 46 | doFilter in FacebookAuthRedirectFilter.groovy
| 82 | doFilter in MutableLogoutFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . in java.lang.Thread
Caused by GroovyPagesException: Error processing GroovyPageView: Error executing tag sec:ifLoggedIn: Error evaluating expression [sec.loggedInUserInfo(field: 'username')] on line [106]: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 527 | doFilter in C:\Grails_WKS\fbtest1\grails-app\views\index.gsp
Caused by GrailsTagException: Error executing tag sec:ifLoggedIn: Error evaluating expression [sec.loggedInUserInfo(field: 'username')] on line [106]: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 108 | doCall in C:/Grails_WKS/fbtest1/grails-app/views/index.gsp
Caused by GroovyPagesException: Error evaluating expression [sec.loggedInUserInfo(field: 'username')] on line [106]: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 106 | doCall in C:/Grails_WKS/fbtest1/grails-app/views/index.gsp
Caused by MissingPropertyException: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 107 | doCall in SecurityTagLib.groovy
| 106 | doCall in C__Grails_WKS_fbtest1_grails_app_views_index_gsp$_run_closure2_closure21_closure26
| 136 | doCall . in SecurityTagLib.groovy
| 108 | doCall in C__Grails_WKS_fbtest1_grails_app_views_index_gsp$_run_closure2
| 128 | run . . . in C__Grails_WKS_fbtest1_grails_app_views_index_gsp
| 53 | doFilter in GrailsAnonymousAuthenticationFilter.java
| 49 | doFilter in RequestHolderAuthenticationFilter.java
| 46 | doFilter in FacebookAuthRedirectFilter.groovy
| 82 | doFilter in MutableLogoutFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
Thanks,
Jim
The text was updated successfully, but these errors were encountered:
Hi,
I installed the Spring-Security-Core plugin(2.0-RC4), and customized UserDetailService successfully. Then installed Spring-Security-Facebook plugin(0.17), that can use FB login. But when I use "sec.loggedInUserInfo(field: 'username')" in gsp, that caused MissingPropertyException.
P.S. If I disabled the customize's UserDetailService, that sec.loggedInUserInfo can be use and correct.
Line | Method
->> 53 | doFilter in GrailsAnonymousAuthenticationFilter.java
| 49 | doFilter in RequestHolderAuthenticationFilter.java
| 46 | doFilter in FacebookAuthRedirectFilter.groovy
| 82 | doFilter in MutableLogoutFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run . . . in java.lang.Thread
Caused by GroovyPagesException: Error processing GroovyPageView: Error executing tag sec:ifLoggedIn: Error evaluating expression [sec.loggedInUserInfo(field: 'username')] on line [106]: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 527 | doFilter in C:\Grails_WKS\fbtest1\grails-app\views\index.gsp
Caused by GrailsTagException: Error executing tag sec:ifLoggedIn: Error evaluating expression [sec.loggedInUserInfo(field: 'username')] on line [106]: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 108 | doCall in C:/Grails_WKS/fbtest1/grails-app/views/index.gsp
Caused by GroovyPagesException: Error evaluating expression [sec.loggedInUserInfo(field: 'username')] on line [106]: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 106 | doCall in C:/Grails_WKS/fbtest1/grails-app/views/index.gsp
Caused by MissingPropertyException: No such property: username for class: org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass
->> 107 | doCall in SecurityTagLib.groovy
| 106 | doCall in C__Grails_WKS_fbtest1_grails_app_views_index_gsp$_run_closure2_closure21_closure26
| 136 | doCall . in SecurityTagLib.groovy
| 108 | doCall in C__Grails_WKS_fbtest1_grails_app_views_index_gsp$_run_closure2
| 128 | run . . . in C__Grails_WKS_fbtest1_grails_app_views_index_gsp
| 53 | doFilter in GrailsAnonymousAuthenticationFilter.java
| 49 | doFilter in RequestHolderAuthenticationFilter.java
| 46 | doFilter in FacebookAuthRedirectFilter.groovy
| 82 | doFilter in MutableLogoutFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
Thanks,
Jim
The text was updated successfully, but these errors were encountered: