spring-security-saml2-sample不工作

时间:2016-02-10 14:25:51

标签: spring

我正在尝试运行https://github.com/spring-projects/spring-security-saml(master版本中提供的应用程序)并选择了选项http://idp.ssocircle.com并点击了启动单点登录按钮,然后点击继续saml-single-sign-on,然后花了很多时间我到错误页面,我收到如下错误 严重:servlet [default]的Servlet.service()在路径[/ spring-security-saml2-sample3]的上下文中引发了异常 显示java.lang.NullPointerException

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现已清除,请求处理完成

1 个答案:

答案 0 :(得分:0)

经过几天的挣扎,终于我能够解决这个问题了。很抱歉,我没有收到本论坛的任何回复。