Grails Executor插件出错:编译项目时<t>未找到异常</t>

时间:2014-12-12 11:58:28

标签: grails grails-plugin

我已经从https://github.com/basejump/grails-executor下载了grails executor插件并将其放在我们应用程序的插件文件夹中。当我们尝试使用eclipse编译它时,我们得到以下错误:

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:21: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submit(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                                                           ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:21: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submit(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                   ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:22: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutSession(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                         ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:22: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutSession(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                   ^
C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:23: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutPersistence(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                             ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:23: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutPersistence(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                   ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:27: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submit(java.lang.Runnable task, java.lang.Object result) { return (java.util.concurrent.Future<'T'>)null;}
                                   ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:28: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutSession(java.lang.Runnable task, java.lang.Object result) { return (java.util.concurrent.Future<'T'>)null;}
                                   ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:29: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutPersistence(java.lang.Runnable task, java.lang.Object result) { return (java.util.concurrent.Future<'T'>)null;}
                                   ^

D:\WORKSPACE\Project_10303\src\java\AES1Delegate.java:20: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
        BASE64Encoder encoder = new BASE64Encoder();
        ^

D:\WORKSPACE\Project_10303\src\java\AES1Delegate.java:20: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
        BASE64Encoder encoder = new BASE64Encoder();
                                    ^

D:\WORKSPACE\Project_10303\src\java\AES1Delegate.java:31: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
        BASE64Decoder decoder = new BASE64Decoder();
        ^

D:\WORKSPACE\Project_10303\src\java\AES1Delegate.java:31: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
        BASE64Decoder decoder = new BASE64Decoder();
                                    ^

D:\WORKSPACE\Project_10303\src\java\FileConverter.java:98: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
                return new sun.misc.BASE64Encoder().encode(enc);
                                   ^

D:\WORKSPACE\Project_10303\src\java\FileConverter.java:120: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
                byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
                                         ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextCallableWrapper.java:12: grails.plugin.executor.PersistenceContextCallableWrapper is not abstract and does not override abstract method call() in java.util.concurrent.Callable
public class PersistenceContextCallableWrapper
       ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextCallableWrapper.java:19: call() in grails.plugin.executor.PersistenceContextCallableWrapper cannot implement call() in java.util.concurrent.Callable; attempting to use incompatible return type
found   : java.lang.Object
required: T
public java.lang.Object call() { return null;}
                        ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:21: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submit(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                                                          ^


C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:22: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutSession(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                                                                        ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:23: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutPersistence(java.util.concurrent.Callable<'T'> task) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                                                                            ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:27: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submit(java.lang.Runnable task, java.lang.Object result) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                                                                     ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:28: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutSession(java.lang.Runnable task, java.lang.Object result) { return (java.util.concurrent.Future<'T'>)null;}
                                                                                                                                                   ^

C:\Users\laxmia\.grails\1.0.3\projects\Project_10303\generated-java-source\grails\plugin\executor\PersistenceContextExecutorWrapper.java:29: cannot find symbol
symbol  : class T
location: class grails.plugin.executor.PersistenceContextExecutorWrapper
public java.util.concurrent.Future<'T'> submitWithoutPersistence(java.lang.Runnable task, java.lang.Object result) { return (java.util.concurrent.Future<'T'>)null;}

凡曾经&lt;&#39;&#39;&gt;和T提到我们得到编译错误。如何解决这个问题?

请:删除&lt;&#39; T&#39;&gt;中的&#39;(引号)

0 个答案:

没有答案