Spring Security Grails Geb抛出奇怪的异常

时间:2016-08-27 01:42:14

标签: grails spring-security grails-plugin geb

我正在尝试使用Geb来测试具有Spring Security的grails应用程序。当我尝试从Geb测试访问任何页面时,我得到了此异常

    ERROR org.grails.web.errors.GrailsExceptionResolver - IllegalStateException occurred when processing request: [GET] /login/auth
The type registry TypeRegistry(id=375910915,loader=sun.misc.Launcher$AppClassLoader) does not know about type id 1925. Stacktrace follows:
java.lang.IllegalStateException: The type registry TypeRegistry(id=375910915,loader=sun.misc.Launcher$AppClassLoader) does not know about type id 1925
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
    at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
ERROR org.grails.web.errors.GrailsExceptionResolver - IllegalStateException occurred when processing request: [GET] /favicon.ico
The type registry TypeRegistry(id=375910915,loader=sun.misc.Launcher$AppClassLoader) does not know about type id 1925. Stacktrace follows:
java.lang.IllegalStateException: The type registry TypeRegistry(id=375910915,loader=sun.misc.Launcher$AppClassLoader) does not know about type id 1925
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.groovy:53)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.groovy:62)
    at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.groovy:58)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

有时它会发生并且有时会发生这种情况。

0 个答案:

没有答案