Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingPropertyException when customize UserDetail #82

Open
hanjim01 opened this issue Feb 13, 2015 · 0 comments
Open

MissingPropertyException when customize UserDetail #82

hanjim01 opened this issue Feb 13, 2015 · 0 comments

Comments

@hanjim01
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant