jeevanjoy414 Posted April 21, 2014 Posted April 21, 2014 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:Script1.groovy: 2: Ambiguous expression could be a parameterless closure expression, an isolated open code block, or it may continue a previous statement; solution: Add an explicit parameter list, e.g. {it -> ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...}, and also either remove the previous newline, or add an explicit semicolon ';' @ line 2, column 13. { it.getRoleName() in ['ROLE_ADMINISTRATOR','ROLE_SALES_MANAGER'] } I am trying to add security file in a domain and create a adhoc report.
tkavanagh Posted April 23, 2014 Posted April 23, 2014 Looks like a syntax error in the security file. Not the most helpful message. However, it is giving the line number which looks to be line 2 of the file.
kubitaner Posted October 8, 2015 Posted October 8, 2015 authentication.getPrincipal().getRoles().any{ it.getRoleName() in ['ROLE_ANONYMOUS'] }The code must be in one line not splitted over two or more lines.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now