简体   繁体   English

Grails Spring Security不允许编译

[英]Grails Spring Security won't allow compilation

I'm trying to run a local server for Grails using 我正在尝试使用以下命令为Grails运行本地服务器

grails run-app

This is for a legacy app that I need to work with so I don't know much details about it. 这是我需要使用的旧版应用程序,因此我对其不了解太多细节。

But I receive the following error: 但是我收到以下错误:

| Compiling 73 source files.
| Error Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.VerifyError: (class: grails/plugin/springsecurity/oauth/OAuthToken, method: super$1$implies signature: (Ljavax/security/auth/Subject;)Z) Illegal use of nonvirtual function call (Use --stacktrace to see the full trace)

I'm using 我正在使用

java version "1.7.0_55" Grails version: 2.3.11 java版本“ 1.7.0_55” Grails版本:2.3.11

And Mac OS Yosemite 和Mac OS Yosemite

I'm very new to Grails, but as the comment of @MarcinŚwierczyński suggested I upgraded to RC4, and then everything worked. 我对Grails还是很陌生,但是正如@MarcinŚwierczyński的评论所建议的那样,我升级到RC4,然后一切正常。

Is strange though that I cloned the project again and I didn't had to upgrade the version. 奇怪的是,尽管我再次克隆了项目,而不必升级版本。 Might have been just a local temporal file that might had been causing the problem. 可能只是可能导致问题的本地时态文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM