Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play! - Expecting a stack map frame in method controllers

I am using the Security module for my Play! application and had it working at one point, but for some reason I did something to make it stop working. I am getting the following errors:

Execution exception VerifyError occured : Expecting a stack map frame in method controllers.Secure$Security.authentify(Ljava/lang/String;Ljava/lang/String;)Z at offset 33

In {module:secure}/app/controllers/Secure.java (around line 61)

I saw the post below, but, even though I am using Java 7, it looks like Play! works ok with 7 now. I am using Play 1.2.4.

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

Here is my Security controller:

package controllers;

import models.*;

public class Security extends Secure.Security {

    public static boolean authenticate(String username, String password) {
        User user = User.find("byEmail", username).first();
        return user != null && user.password.equals(password);
    }    
}
like image 529
Benny Avatar asked May 20 '26 20:05

Benny


1 Answers

seems to be a common issue with 1.7 (cobertura has the same issue).

Down grade to 1.6, do a play clean and it starts working for me again.

like image 116
Dean Hiller Avatar answered May 23 '26 09:05

Dean Hiller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!