VerifyError; Expecting a stack map frame in method controllers.Secure$Security.authentify

前端 未结 5 2006
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 06:37

I followed the tutorial introducing the Play framework, but it gives me an error:

Execution exception VerifyError occured : Expecting a stack map f

相关标签:
5条回答
  • 2020-12-29 07:09

    The message group for Play has discussed that there are some issues with JDK1.7, and that Play does not officially support this yet. If possible, please try with JDK 6, and see if you still get this error.

    If you are confined to JDK7, you can use the option

    java.source=1.6
    

    in your application.conf file.

    Update 18th August 2011: Nicolas Leroux recently sent out a message on Twitter to say that Java 7 support had been added to Play in the master branch. It probably won't make the 1.2.3 release, but will make the release after that.

    0 讨论(0)
  • 2020-12-29 07:12

    I had the same issue when I run my play application. I am using play 1.2.5 and Java 1.7

    I just added

    java.source=1.6

    in the application.conf.

    Then deleted the tmp folder and restart the application and it worked.

    0 讨论(0)
  • 2020-12-29 07:19

    I had the same, problem, it seems to come from JDK7 indeed.

    I to solve it, add

    java.source=1.6
    

    to the application.conf file, stop the application, delete everything under the tmp directory of the app and restart it, it should work even if you have the JDK 1.7 installed

    if you don't delete the files, play will not recompile them and it will not work, even if you go back to the JDK 1.6

    0 讨论(0)
  • 2020-12-29 07:22

    you can also use the -XX:-UseSplitVerifier flag.

    0 讨论(0)
  • 2020-12-29 07:23

    It's okay if you wanna use jdk7. Just make sure that your java path configured properly. Check "java -version" and "javac -version".

    Example path:

    • "C:\Program Files\Java\jdk1.7.0_07\bin" <--- do this
    • "C:\Program Files\Java\jdk1.7.0_07\jre\bin" <--- don't do like this
    0 讨论(0)
提交回复
热议问题