单击链接创建新用户时,使用Spring Security UI插件出现以下错误:
"Error processing GroovyPageView: Error executing tag <s2ui:form>: Error executing tag <s2ui:tabs>: Error executing tag <s2ui:tab>: Error executing tag <s2ui:textFieldRow>: assert beanType | null"
我正在使用SpringSecurityCore 2.0.0和SpringSecurityUI 1.0-RC3运行Grails 2.5.5。我尚未自定义有关插件的任何内容。
几天都一切正常。我可以创建角色,可以搜索和编辑用户。除了创建新用户的能力外,其他所有功能。我花了8个多小时来调试它。
这是跟踪:
Line | Method
->> 528 | doFilter in /home/mdavis/development/grails/maintenanceManager/target/work/plugins/spring-security-ui-1.0-RC3/grails-app/views/user/create.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <s2ui:form>: Error executing tag <s2ui:tabs>: Error executing tag <s2ui:tab>: Error executing tag <s2ui:textFieldRow>: assert beanType
|
null
->> 35 | doCall in /home/mdavis/development/grails/maintenanceManager/target/work/plugins/spring-security-ui-1.0-RC3/grails-app/views/user/create.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <s2ui:tabs>: Error executing tag <s2ui:tab>: Error executing tag <s2ui:textFieldRow>: assert beanType
|
null
->> 31 | doCall in /home/mdavis/development/grails/maintenanceManager/target/work/plugins/spring-security-ui-1.0-RC3/grails-app/views/user/create.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <s2ui:tab>: Error executing tag <s2ui:textFieldRow>: assert beanType
|
null
->> 21 | doCall in /home/mdavis/development/grails/maintenanceManager/target/work/plugins/spring-security-ui-1.0-RC3/grails-app/views/user/create.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <s2ui:textFieldRow>: assert beanType
|
null
->> 13 | doCall in /home/mdavis/development/grails/maintenanceManager/target/work/plugins/spring-security-ui-1.0-RC3/grails-app/views/user/create.gsp
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by PowerAssertionError: assert beanType
|
null
->> 817 | labelCode in SecurityUiTagLib.groovy
任何帮助将不胜感激。抱歉,如果难以理解,我以前从未在这里发布过任何内容。
提前致谢。
米克
最佳答案
我在grails 3.2
,org.grails.plugins:spring-security-ui:3.0.0.M2
上也遇到了同样的问题。
在这里回答:https://github.com/grails-plugins/grails-spring-security-ui/issues/56
问题是spring-security-ui无法正确处理null
的toString()
值。
只需在您的域类上添加以下内容即可:
String toString(){
property?: "null property"
}
关于grails - 创建新用户时出现Grails Spring Security UI插件错误-处理GroovyPageView时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38923439/