我正在使用GGTS进行Groovy项目,在某些情况下调试期间无法评估某些表达式的值。我试图评估的表达式作为变量值很简单,但是当我尝试它时会显示如下的异常:
See error log: (Groovy) Complete snippet:
/////start
package adminsite;
import grails.converters.JSON;
import modules.arteplastico.ArticleObraPlasticaTmp;
import modules.arteplastico.dto.ArticleObraPlasticaDTO;
import com.google.gson.JsonObject;
params.accion
/////end
(Groovy) An exception ocurred during evaluation
Evaluation snippet:
有什么建议吗?
修改
我在Eclipse日志中发现了更多内容:
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
____Eval.groovy: 8: unable to resolve class core.ArticleTmpStatus
@ line 8, column 13.
import core.ArticleTmpStatus;
^
____Eval.groovy: 5: unable to resolve class modules.arteplastico.dto.ArticleObraPlasticaDTO
@ line 5, column 33.
import modules.arteplastico.dto.ArticleObraPlasticaDTO;
^
____Eval.groovy: 9: unable to resolve class core.BaseDTO
@ line 9, column 13.
import core.BaseDTO;
^
____Eval.groovy: 4: unable to resolve class modules.arteplastico.ArticleObraPlasticaTmp
@ line 4, column 29.
import modules.arteplastico.ArticleObraPlasticaTmp;
^
____Eval.groovy: 10: unable to resolve class core.CoreController
@ line 10, column 13.
import core.CoreController;
^
____Eval.groovy: 11: unable to resolve class core.ModuleIfce
@ line 11, column 13.
import core.ModuleIfce;
^
____Eval.groovy: 7: unable to resolve class core.ArticleTmp
@ line 7, column 13.
import core.ArticleTmp;
^
奇怪的是我运行此代码没有任何问题,并且在运行时所有这些类都正常工作。 问题是在Eclipse中既没有(Ctrl + Space)也没有调试器能够找到这个类。