1

在我将项目从 2.3.7 -> 2.4.0 升级后不久,我正在将项目从 grails 2.4.0 升级到 2.5.4,我收到此错误。

[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] Compile error during compilation with javac.
  [groovyc] /home/michal/Desktop/ikariera/ikariera/target/work/plugins/cache-1.1.7/src/java/grails/plugin/cache/GrailsAnnotationCacheOperationSource.java:220: error: no suitable method found for parseCacheAnnotations(AnnotatedElement)
  [groovyc]             Collection<CacheOperation> annOps = annotationParser.parseCacheAnnotations(ae);
  [groovyc]                                                                 ^
  [groovyc]     method CacheAnnotationParser.parseCacheAnnotations(Class<?>) is not applicable
  [groovyc]       (argument mismatch; AnnotatedElement cannot be converted to Class<?>)
  [groovyc]     method CacheAnnotationParser.parseCacheAnnotations(Method) is not applicable
  [groovyc]       (argument mismatch; AnnotatedElement cannot be converted to Method)
  [groovyc] Note: /home/michal/Desktop/ikariera/ikariera/target/work/plugins/scaffolding-2.1.0/src/java/org/codehaus/groovy/grails/scaffolding/AbstractGrailsTemplateGenerator.java uses or overrides a deprecated API.
  [groovyc] Note: Recompile with -Xlint:deprecation for details.
  [groovyc] 1 error
  [groovyc] 
  [groovyc] 
| Compiling 232 source files.
| Error Compilation error: startup failed:
Compile error during compilation with javac.
/home/michal/Desktop/ikariera/ikariera/target/work/plugins/cache-1.1.7/src/java/grails/plugin/cache/GrailsAnnotationCacheOperationSource.java:220: error: no suitable method found for parseCacheAnnotations(AnnotatedElement)
            Collection<CacheOperation> annOps = annotationParser.parseCacheAnnotations(ae);
                                                                ^
    method CacheAnnotationParser.parseCacheAnnotations(Class<?>) is not applicable
      (argument mismatch; AnnotatedElement cannot be converted to Class<?>)
    method CacheAnnotationParser.parseCacheAnnotations(Method) is not applicable
      (argument mismatch; AnnotatedElement cannot be converted to Method)

我尝试将 chache 插件从 1.1.3 升级到 1.1。{4,5,6,7,8} 但一切都给出了相同的错误。我会很高兴有一个想法,问题可能出在哪里。

4

2 回答 2

1

我有一个类似的问题,对我来说,它有助于删除.slcache项目根文件夹中的文件夹。

于 2016-07-11T10:41:51.263 回答
1

我认为将插件移动到 1.1.8 并删除目标文件夹 + grails clean 是成功的。现在我在我的一些域类上遇到了这种错误

| Warning The [$tt__showOut] action in [cz.ikariera.student.StudentAccountMessageController] accepts a parameter of type [org.springframework.transaction.TransactionStatus]. Interface types and abstract class types are not supported as command objects. This parameter will be ignored.

以及一些基于资源插件和基于 gsp 的问题。

但是缓存插件没问题。

于 2016-07-09T06:50:36.967 回答