Spring-SAML XML集成:InputStream不能为null

时间:2018-09-21 15:39:32

标签: java spring-security saml-2.0 jboss6.x

我们试图将saml2与我们的应用程序集成以生成medatadata。我们正在使用spring(context-4.2,security-4.0),jdk1.8,jbossEAP6.4.0。我们在应用程序中使用了标准的saml xml配置。在部署过程中,我们解决了大多数依赖关系,现在我们面临着一个无法解决的问题。拥有saml知识的人可以帮助我们解决以下错误。

17:22:03,327 ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 189) Context initialization failed: java.lang.IllegalArgumentException: InputStream cannot be null
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:117) [rt.jar:1.8.0_66]
at org.opensaml.xml.parse.BasicParserPool$DocumentBuilderProxy.parse(BasicParserPool.java:696) [xmltooling-1.3.4.redhat-3.jar:1.3.4.redhat-3]
at org.opensaml.xml.parse.BasicParserPool.parse(BasicParserPool.java:218) [xmltooling-1.3.4.redhat-3.jar:1.3.4.redhat-3]
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:142) [xmltooling-1.3.4.redhat-3.jar:1.3.4.redhat-3]
at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:199) [opensaml-2.5.3.redhat-2.jar:2.5.3.redhat-2]
at org.opensaml.PaosBootstrap.bootstrap(PaosBootstrap.java:28) [spring-security-saml2-core-1.0.4.RELEASE.jar:1.0.4.RELEASE]
at org.springframework.security.saml.SAMLBootstrap.postProcessBeanFactory(SAMLBootstrap.java:42) [spring-security-saml2-core-1.0.4.RELEASE.jar:1.0.4.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284) [spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:181) [spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678) [spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520) [spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446) [spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328) [spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) [spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_66]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_66]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_66]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_66]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)

0 个答案:

没有答案