2016-01-27 42 views
1

我創建了一個項目的Grails 2.4.4的IntelliJ IDEA 15(jdk1.8u60),當我嘗試運行項目中,我得到這個漫長無邊日誌中生成:Grails 2.4.4 jdk8u60 SEVERE:複製方法存在問題。不兼容的JVM?

Jan 27, 2016 1:09:41 PM org.springsource.loaded.jvm.JVM copyMethod 
SEVERE: Problems copying method. Incompatible JVM? 
java.lang.reflect.InvocationTargetException 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:497) 
    at org.springsource.loaded.jvm.JVM.copyMethod(JVM.java:134) 
    at org.springsource.loaded.ri.OriginalClassInvoker.createJavaMethod(OriginalClassInvoker.java:68) 
    at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:151) 
    at org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:360) 
    at org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:261) 
    at org.c ... 

我怎麼能運行我的項目?

回答

1

我知道2.4.4不適用於1.8_60。將jdk更改爲1.7。我認爲1.8_30是兼容的,但我不確定。我使用1.7並且工作正常。