-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Question] SseEmitter.complete() throws Error:No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration. #1950
Comments
Can you share more info about your configuration? (Shiro version, JRE version, ini file...) |
Also, is this issue SSE-specific, or are is every request failing like this? My guess here is that SSE is bypassing normal Shiro filter flow and |
I'm adding the SSE functionality to existing working application, and the issue is SSE-specific, the rest work well. @lprimak |
Here are the beans:
And the filter chain definition map is:
the url '/llm/chat' is set to 'anon'. @fpapon |
And the shiro version is 1.13.0, runs on Java 1.8.0_431. @fpapon |
Shiro |
Is there any way to disable Shiro filter in particular request url? @lprimak |
There may be a better way, but I would start with overriding / implementing my own subclass of ShiroFilter. |
I'm not a Spring expert so cannot help about Spring integration. |
Search before asking
Question
I'm developing a Springboot Application, I want to return a SseEmitter to front end:
when the program reached _sse.complete(), it throws a Exception, here are the stacks:
The text was updated successfully, but these errors were encountered: