java.lang.IllegalArgumentException: Failed to evaluate expression '@primaryAuth.authentication.mayReadMe(principal)'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by lyubomyr-shaydariv
, 1 year ago
Failed to evaluate expression '@primaryAuth.authentication.mayReadMe(principal)'
via Stack Overflow by Lyubomyr Shaydariv
, 1 year ago
Failed to evaluate expression '@primaryAuth.authentication.mayReadMe(principal)'
via concretepage.com by Unknown author, 1 year ago
via Stack Overflow by Marek Raszewski
, 2 years ago
Failed to evaluate expression '#oauth2.hasScope('read')'
via spring.io by Unknown author, 2 years ago
Failed to evaluate expression 'esdo.security.access.SecurityExpression.hasRole('ROLE_*_MEMBER')'
java.lang.IllegalArgumentException: Failed to evaluate expression '@primaryAuth.authentication.mayReadMe(principal)'
at org.springframework.security.access.expression.ExpressionUtils.evaluateAsBoolean(ExpressionUtils.java:15)
at org.springframework.security.access.expression.method.ExpressionBasedPreInvocationAdvice.before(ExpressionBasedPreInvocationAdvice.java:44)
at org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter.vote(PreInvocationAuthorizationAdviceVoter.java:57)
at org.springframework.security.access.prepost.PreInvocationAuthorizationAdviceVoter.vote(PreInvocationAuthorizationAdviceVoter.java:25)
at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:62)
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:232)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

Users with the same issue

4 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.