我試圖運行https://github.com/spring-projects/spring-security-saml(master版本提供的應用程序,並選擇了選項http://idp.ssocircle.com並單擊開始單點登錄按鈕,然後單擊繼續saml-single-sign-on,然後單擊它帶我到錯誤頁面,我得到如下錯誤 重度:Servlet.service()進行的servlet [默認]與路徑方面[/彈簧安全SAML2-樣品3]拋出異常 顯示java.lang.NullPointerExceptionspring-security-saml2-sample不起作用
at org.springframework.security.saml.processor.HTTPPAOS11Binding.supports(HTTPPAOS11Binding.java:45)
at org.springframework.security.saml.processor.SAMLProcessorImpl.getBinding(SAMLProcessorImpl.java:260)
at org.springframework.security.saml.processor.SAMLProcessorImpl.retrieveMessage(SAMLProcessorImpl.java:172)
at org.springframework.security.saml.SAMLProcessingFilter.attemptAuthentication(SAMLProcessingFilter.java:80)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:195)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
- SecurityContext爲空或內容爲匿名 - 上下文不會存儲在HttpSession中。
- SecurityContextHolder中已被清除,因爲請求處理掙扎了幾天後完成
我已經從https://github.com/spring-projects/spring-security-saml.git下載了代碼 – kvkc