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

devtools and spring-session problem #4649

Closed
xia5271 opened this issue Dec 1, 2015 · 5 comments
Closed

devtools and spring-session problem #4649

xia5271 opened this issue Dec 1, 2015 · 5 comments
Labels
status: duplicate A duplicate of another issue

Comments

@xia5271
Copy link

xia5271 commented Dec 1, 2015

now i have a problem and i create a simple project https://github.com/xia5271/demo-devtools-restart ,when i use spring-boot-devtools and spring-session at the same time,@AuthenticationPrincipal cant work(https://github.com/xia5271/demo-devtools-restart/blob/master/src/main/java/com/github/xia5271/devtools/security/LoginController.java#L18 ),i track problem in spring-security-web-4.0.3.RELEASE-sources.jar!/org/springframework/security/web/method/annotation/AuthenticationPrincipalArgumentResolver.java:115 ,how can i fix it

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 1, 2015
@snicoll
Copy link
Member

snicoll commented Dec 1, 2015

I guess it duplicates #3805 - can you confirm this is the same stacktrace?

@snicoll snicoll added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 1, 2015
@wilkinsona
Copy link
Member

@snicoll I think this is a different problem. The comment in LoginController says the the user is null. That would suggest that it's not blowing up with an exception.

@snicoll
Copy link
Member

snicoll commented Dec 1, 2015

for some reason (sub-text: lack of coffee), I missed the comment :( Thank you

@snicoll snicoll removed the status: waiting-for-feedback We need additional information before we can continue label Dec 1, 2015
@xia5271
Copy link
Author

xia5271 commented Dec 1, 2015

in spring-security-web-4.0.3.RELEASE-sources.jar!/org/springframework/security/web/method/annotation/AuthenticationPrincipalArgumentResolver.java:115 parameter.getParameterType().isAssignableFrom(principal.getClass()) return false,because parameter.getParameterType() loaded by RestartClassLoader and principal.getClass() is Launcher$AppClassLoader ,so its the same problem,tks

@xia5271 xia5271 closed this as completed Dec 1, 2015
@wilkinsona
Copy link
Member

@xia5271 There's also some similarity to #3316. Please see the discussion in that issue and this section of the documentation for some further information.

@snicoll snicoll added the status: duplicate A duplicate of another issue label Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants