gpt4 book ai didi

grails - Grails-无法创建类[QuartzGrailsPlugin]的新实例!

转载 作者:行者123 更新时间:2023-12-02 15:22:36 24 4
gpt4 key购买 nike

我刚开始使用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

结果完全一样。

最佳答案

我正在使用INtellij Idea。我也遇到过同样的问题。我将我的Java SDK更改为1.6。然后执行clean-all命令。然后编译。

它为我工作。

关于grails - Grails-无法创建类[QuartzGrailsPlugin]的新实例!,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32866066/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com