我刚开始使用Grails,我需要制作一个svn下载的grails项目才能工作。
但是当我试着跑进来时,我收到了这个错误:
Error loading plugin manager: Could not create a new instance of class [QuartzGrailsPlugin]!
我试过不同版本的ggts(lastone和3.5)和jdk(1.6-1.7-1.8)。
从头开始创建一个非常简单的项目时,它可以正常工作。
这是完整的控制台:
2015-09-30 11:52:53,068 [main] DEBUG converters.StringConverter - Converting 'String' value 'stdout' to type 'String'org.codehaus.groovy.grails.exceptions.NewInstanceCreationException: Could not create a new instance of class [QuartzGrailsPlugin]!
at _PluginDependencies_groovy$_run_closure5_closure40.doCall(_PluginDependencies_groovy:270)
at _PluginDependencies_groovy$_run_closure5_closure40.doCall(_PluginDependencies_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _PluginDependencies_groovy$_run_closure5.doCall(_PluginDependencies_groovy:268)
at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:167)
at _GrailsWar_groovy$_run_closure4.doCall(_GrailsWar_groovy:91)
at War$_run_closure1.doCall(War.groovy:38)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:590)
at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: java.lang.UnsupportedClassVersionError: org/codehaus/groovy/grails/plugins/quartz/TaskArtefactHandler : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at QuartzGrailsPlugin.class$(QuartzGrailsPlugin.groovy)
at QuartzGrailsPlugin.$get$$class$org$codehaus$groovy$grails$plugins$quartz$TaskArtefactHandler(QuartzGrailsPlugin.groovy)
at QuartzGrailsPlugin.<init>(QuartzGrailsPlugin.groovy:61)
... 19 more
Error loading plugin manager: Could not create a new instance of class [QuartzGrailsPlugin]!
我还从命令行运行应用程序:
grails run-app
具有完全相同的结果。
答案 0 :(得分:1)
我正在使用INtellij Idea。我遇到了同样的问题。我将我的java sdk登上了1.6。然后执行clean-all命令。然后编译。
它对我有用。