Quantcast

Spring Security UI register method not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Spring Security UI register method not working

ssaifee
Hi! I am using the Spring Security UI plugin to implement the user registration functionality in my Grails application. I have to add some custom fields to the registration form so I have overridden the RegisterController.groovy. My registration form is now showing the custom fields but whenever I try to register a user I get the following error:

Dynamic method get<Artefact>Class(artefactName) requires a single String parameter. Stacktrace follows:
java.lang.IllegalArgumentException: Dynamic method get<Artefact>Class(artefactName) requires a single String parameter
        at grails.plugin.springsecurity.ui.AbstractS2UiController.lookupUserClass(AbstractS2UiController.groovy:57)
        at org.nyumc.dei.RegisterController$_closure2.doCall(RegisterController.groovy:29)
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:200)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
        at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
        at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Loading...