SamlSecurityService中缺少日志属性

时间:2019-06-04 01:37:30

标签: grails single-sign-on grails-plugin

我正在使用spring-security-saml v3.3.0插件在Grails 3.3.9应用程序中配置SSO。该应用程序启动时没有任何问题,我可以看到我的SSO登录页面。登录时,出现服务器错误:

groovy.lang.MissingPropertyException: No such property: log for class: org.grails.plugin.springsecurity.saml.SamlSecurityService
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:66)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassGetPropertySite.getProperty(PogoMetaClassGetPropertySite.java:52)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:310)
    at org.grails.plugin.springsecurity.saml.SamlSecurityService.getCurrentUser(SamlSecurityService.groovy:27)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
    at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1845)
    at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1155)
    at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3773)
    at groovy.lang.ExpandoMetaClass.getProperty(ExpandoMetaClass.java:1167)
    at org.codehaus.groovy.runtime.callsite.PogoMetaClassGetPropertySite.getProperty(PogoMetaClassGetPropertySite.java:50)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:310)
    at interceptor.AllExceptRestAPIInterceptor.before(AllExceptRestAPIInterceptor.groovy:47)
    at org.grails.plugins.web.interceptors.GrailsInterceptorHandlerInterceptorAdapter.preHandle(GrailsInterceptorHandlerInterceptorAdapter.groovy:77)

AllExceptRestAPIInterceptor 是我的拦截器,在第47行中,我正在使用springSecurityService来获取当前用户。

我看到已报告并修复了此错误Support for Grails 3.3.x,但我仍然面临着这个问题。

0 个答案:

没有答案
相关问题