java.io.IOException: Invalid keystore format Spring Security SAML Extension -



java.io.IOException: Invalid keystore format Spring Security SAML Extension -

i have gotten spring security saml extension sample application run. now, i'm trying integrate main application. before tried integrate application, created sample application integrate , works fine. in sample application, used keystore downloaded sample application. now, i'm trying utilize same keystore , i'm getting next error:

caused by: org.springframework.beans.factory.beancreationexception: not autowire method: public void org.springframework.security.saml.metadata.metadatagenerator.setkeymanager(org.springframework.security.saml.key.keymanager); nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'keymanager' defined in servletcontext resource [/web-inf/spring/securitycontext.xml]: instantiation of bean failed; nested exception org.springframework.beans.beaninstantiationexception: not instantiate bean class [org.springframework.security.saml.key.jkskeymanager]: constructor threw exception; nested exception java.lang.runtimeexception: error initializing keystore @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredmethodelement.inject(autowiredannotationbeanpostprocessor.java:596) @ org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:87) @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:289) ... 89 more caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'keymanager' defined in servletcontext resource [/web-inf/spring/securitycontext.xml]: instantiation of bean failed; nested exception org.springframework.beans.beaninstantiationexception: not instantiate bean class [org.springframework.security.saml.key.jkskeymanager]: constructor threw exception; nested exception java.lang.runtimeexception: error initializing keystore @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:278) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.autowireconstructor(abstractautowirecapablebeanfactory.java:1114) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:1017) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:504) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:475) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:302) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:228) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:298) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.findautowirecandidates(defaultlistablebeanfactory.java:1017) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:960) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:858) @ org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredmethodelement.inject(autowiredannotationbeanpostprocessor.java:553) ... 91 more caused by: org.springframework.beans.beaninstantiationexception: not instantiate bean class [org.springframework.security.saml.key.jkskeymanager]: constructor threw exception; nested exception java.lang.runtimeexception: error initializing keystore @ org.springframework.beans.beanutils.instantiateclass(beanutils.java:164) @ org.springframework.beans.factory.support.simpleinstantiationstrategy.instantiate(simpleinstantiationstrategy.java:125) @ org.springframework.beans.factory.support.constructorresolver.autowireconstructor(constructorresolver.java:270) ... 103 more caused by: java.lang.runtimeexception: error initializing keystore @ org.springframework.security.saml.key.jkskeymanager.initialize(jkskeymanager.java:121) @ org.springframework.security.saml.key.jkskeymanager.(jkskeymanager.java:79) @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:526) @ org.springframework.beans.beanutils.instantiateclass(beanutils.java:148) ... 105 more caused by: java.io.ioexception: invalid keystore format @ sun.security.provider.javakeystore.engineload(javakeystore.java:650) @ sun.security.provider.javakeystore$jks.engineload(javakeystore.java:55) @ java.security.keystore.load(keystore.java:1214) @ org.springframework.security.saml.key.jkskeymanager.initialize(jkskeymanager.java:117) ... 111 more

here bean configuration jkskeymanager:

<bean id="keymanager" class="org.springframework.security.saml.key.jkskeymanager"> <constructor-arg value="classpath:security/samlkeystore.jks" /> <constructor-arg type="java.lang.string" value="nalle123" /> <constructor-arg> <map> <entry key="apollo" value="nalle123" /> </map> </constructor-arg> <constructor-arg type="java.lang.string" value="apollo" /> </bean>

can help me what's causing error?

i had similar issue; figured maven filtering out resources , adding solved problem:

<resource> <directory>src/main/resources</directory> <filtering>true</filtering> <excludes> <exclude>**/*.jks</exclude> </excludes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>**/*.jks</include> </includes> </resource>

spring spring-security spring-saml

Comments

  1. Java.Io.Ioexception: Invalid Keystore Format Spring Security Saml
    Extension - >>>>> Download Now

    >>>>> Download Full

    Java.Io.Ioexception: Invalid Keystore Format Spring Security Saml
    Extension - >>>>> Download LINK

    >>>>> Download Now

    Java.Io.Ioexception: Invalid Keystore Format Spring Security Saml
    Extension - >>>>> Download Full

    >>>>> Download LINK Ly

    ReplyDelete

Post a Comment

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -