grails 3.1.3直接访问可验证的助手类作为控制器调用

时间:2016-03-16 20:19:37

标签: grails

最近版本的grails发生了一些变化:

index的调用一直持续到3.1.3

def index(ConnectTagBean bean) {
        if (wsconf.enableSecurity) {
            redirect(controller: "${controllerName}",action: "auth${upperCaseFirst(actionName)}")
            return
        }
        renderIndex(bean)
    }

现在,当我运行插件时,我遇到了这个问题,目前还不清楚,但它似乎与此有关:

grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:82)

整个追踪:

Grails application running at https://localhost:8443 in environment: development
ERROR org.grails.web.errors.GrailsExceptionResolver - AbstractMethodError occurred when processing request: [GET] /wsChat/index
grails.plugin.wschat.beans.ConnectTagBean.validate(Ljava/util/List;Ljava/util/Map;[Lgroovy/lang/Closure;)Z. Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
    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)
Caused by: java.lang.AbstractMethodError: grails.plugin.wschat.beans.ConnectTagBean.validate(Ljava/util/List;Ljava/util/Map;[Lgroovy/lang/Closure;)Z
    at grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:82)
    ... 3 common frames omitted
ERROR org.grails.web.errors.GrailsExceptionResolver - AbstractMethodError occurred when processing request: [GET] /wsChat/index
grails.plugin.wschat.beans.ConnectTagBean.validate(Ljava/util/List;Ljava/util/Map;[Lgroovy/lang/Closure;)Z. Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
    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)
Caused by: java.lang.AbstractMethodError: grails.plugin.wschat.beans.ConnectTagBean.validate(Ljava/util/List;Ljava/util/Map;[Lgroovy/lang/Closure;)Z
    at grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:82)
    ... 3 common frames omitted
| Error Failed to start server (Use --stacktrace to see the full trace)

浏览器显示以下消息:

Error 500: Internal Server Error
URI
/wsChat/index
Class
java.lang.AbstractMethodError
Message
null
Caused by
grails.plugin.wschat.beans.ConnectTagBean.validate(Ljava/util/List;Ljava/util/Map;[Lgroovy/lang/Closure;)Z
Trace
    Line | Method
->> 1142 | runWorker in java.util.concurrent.ThreadPoolExecutor
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    617 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run . . . in java.lang.Thread

Caused by AbstractMethodError: grails.plugin.wschat.beans.ConnectTagBean.validate(Ljava/util/List;Ljava/util/Map;[Lgroovy/lang/Closure;)Z

目前,聊天插件似乎已经破裂,将所有这些都用掉是很多工作,简而言之,这意味着再次将2/3插件之间的不一致引入另一个范围。

有一个简单的解决办法吗?

0 个答案:

没有答案