Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticationCredentialsNotFoundException #233

Open
siarhei-poludvaranin opened this issue Jul 10, 2015 · 3 comments
Open

AuthenticationCredentialsNotFoundException #233

siarhei-poludvaranin opened this issue Jul 10, 2015 · 3 comments

Comments

@siarhei-poludvaranin
Copy link

Hello,
When I mark my view class with @secured annotation sometimes I get this exceptoion:

...
org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339)
at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:198)
...

When I test the code locally - everything works fine. But on the staging server I got such exception.
Has anyone faced it? How can I solve the problem?
My security config is the same as shown in the security-sample.

@peholmst
Copy link
Owner

I have not been able to reproduce this so I'm closing the ticket. If you're still experiencing the problem with the latest version, we can reopen the ticket.

@ghost
Copy link

ghost commented Jun 9, 2016

I have that problem for quite a while now "Sometimes getting AuthenticationCredentialsNotFoundException between multiple requests" but on my local machine as well.

From my stackoverflow question:

"I am having the problem of sometimes getting a AuthenticationCredentialsNotFoundException. At the moment I am absolutely not sure what's causing this.

It is "very likely" that I'm getting this exception if I login right after the server started. After logging in I am not getting this exception - for a while. Now assume there is a request loadData(). If I repeatedly send this request to the server it appears to work for a while but then, all of a sudden, I am getting this exception again. Sometimes just once, sometimes multiple times but not "forever". Just a few exceptions and then it's working again."

@peholmst
Copy link
Owner

Also with the latest version of Vaadin4Spring?

@peholmst peholmst reopened this Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants