简体   繁体   中英

Grails Spring Security won't allow compilation

I'm trying to run a local server for Grails using

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

And 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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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