我只是尝试使用grails并且它已经失败并出现此错误:
grails> create-app
| Application created at /path/hello
| Initializing application. Please wait...
BUILD SUCCESSFUL
Total time: 2.553 secs
grails> run-app
| Running application...
java.lang.ExceptionInInitializerError
[stack trace]
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: Class org.springsource.loaded.ri.ReflectiveInterceptor can not access a member of class org.codehaus.groovy.reflection.GroovyClassValuePreJava7 with modifiers "public"
[more stack trace]
Caused by: java.lang.IllegalAccessException: Class org.springsource.loaded.ri.ReflectiveInterceptor can not access a member of class org.codehaus.groovy.reflection.GroovyClassValuePreJava7 with modifiers "public"
(GrailsAutoConfiguration.groovy:36)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> Process 'command '/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/bin/java'' finished with non-zero exit value 1
我认为某些缓存在某个地方被封锁了,但我已经尝试了#34; grails clean"和#34; gradle clean"和"清洁所有"但那里没有运气。
我真的没有做比你在上面转储中看到的更多的东西 - 我创建了一个新的应用并尝试运行它。发生了什么事?
答案 0 :(得分:1)
我和jvm 1.7有同样的问题。 尝试使用jvm 1.8。测试时间为1.8.0_25。 或者您可以尝试使用app文件夹中的“grails run-app”命令运行应用程序(适用于jvm 1.7.0_80)。