Play! - Expecting a stack map frame in method controllers

Posted by Benny on Stack Overflow See other posts from Stack Overflow or by Benny
Published on 2012-04-03T23:15:50Z Indexed on 2012/04/03 23:29 UTC
Read the original article Hit count: 657

Filed under:

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);
    }    
}

© Stack Overflow or respective owner

Related posts about playframework