开发者

GRAILS Incompatible magic value 0

Any idea on what this means and how I might start to resolve?

Incompatible magic value 0 in class file _GrailsPackage_groov开发者_如何学运维y

I'm on a Windows 7 64x box, with JDK 1.6.0_23.


Usually to do with incompatible Java class versions (e.g. class was compiled with 1.5 and run with 1.6), although you usually get a specific number with the magic value instead of 0.

Check you have no other versions of Java around, and maybe do a grails clean and/or delete everything in your /.grails folder (will mean it'll have to download plugins etc again).


What I think happened is I had created my plugin a while ago for testing purposes, deleted it, and then recreated it recently. I'm guessing something in my .grails directory in my users folder was messed up.


We encountered a similar issue with a JSP file. If this file is a JSP, delete the class file. It will get re-compiled the next time someone touches the file, and the error should vanish.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜