cancel
Showing results for 
Search instead for 
Did you mean: 

Cybersource keystore error while upgrading to 2205

kishore_vabbina
Discoverer
0 Kudos
443

We're upgrading from SAP hybris 2011.15 to 2205.7 version. Cybersource is being used for payment integration. While trying to start the server with 2205.7 version, its throwing below error. Can anyone suggest on this?

WARN  2023-09-16T13:32:51,578 [localhost-startStop-7] [] [][][][][][][][CloseAwareApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceInterceptorsList': Cannot resolve reference to bean 'cybersourceSecurityInterceptor' while setting bean property 'sourceList' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceSecurityInterceptor' defined in class path resource [integrationcybersource/integration/beans.xml]: Cannot resolve reference to bean 'cybersourceCryptoFactory' while setting bean property 'securementEncryptionCrypto'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceCryptoFactory' defined in class path resource [integrationcybersource/integration/beans.xml]: Invocation of init method failed; nested exception is org.apache.wss4j.common.ext.WSSecurityException: You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do that before you use any functionality from that library.
Original Exception was org.apache.wss4j.common.ext.WSSecurityException: You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do that before you use any functionality from that library.
Original Exception was java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: pad block corrupted
ERROR 2023-09-16T13:32:52,770 [localhost-startStop-7] [] [][][][][][][][HybrisContextFactory] Error initializing global application context!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceInterceptorsList': Cannot resolve reference to bean 'cybersourceSecurityInterceptor' while setting bean property 'sourceList' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceSecurityInterceptor' defined in class path resource [integrationcybersource/integration/beans.xml]: Cannot resolve reference to bean 'cybersourceCryptoFactory' while setting bean property 'securementEncryptionCrypto'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceCryptoFactory' defined in class path resource [integrationcybersource/integration/beans.xml]: Invocation of init method failed; nested exception is org.apache.wss4j.common.ext.WSSecurityException: You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do that before you use any functionality from that library.
Original Exception was org.apache.wss4j.common.ext.WSSecurityException: You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do that before you use any functionality from that library.
Original Exception was java.io.IOException: exception unwrapping private key - java.security.InvalidKeyException: pad block corrupted
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:428) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:173) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1452) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:934) ~[spring-beans-5.3.19.jar:5.3.19]
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.19.jar:5.3.19]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.19.jar:5.3.19]
        at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:88) ~[coreserver.jar:?]
        at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:256) ~[coreserver.jar:?]
        at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:78) ~[coreserver.jar:?]
        at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:788) ~[coreserver.jar:?]
        at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:829) ~[coreserver.jar:?]
        at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:760) ~[coreserver.jar:?]
        at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:650) ~[coreserver.jar:?]
        at de.hybris.platform.core.Registry.activateTenant(Registry.java:711) ~[coreserver.jar:?]
        at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:560) ~[coreserver.jar:?]
        at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:619) ~[coreserver.jar:?]
        at de.hybris.platform.core.Registry.startup(Registry.java:438) ~[coreserver.jar:?]
        at de.hybris.platform.core.ClassLoaderUtils.executeWithWebClassLoaderParentIfNeeded(ClassLoaderUtils.java:35) ~[coreserver.jar:?]
        at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:326) ~[coreserver.jar:?]
        at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:212) ~[coreserver.jar:?]
        at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:199) ~[coreserver.jar:?]
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) ~[spring-web-5.3.19.jar:5.3.19]
        at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitializedInternal(HybrisContextLoaderListener.java:96) ~[coreserver.jar:?]
        at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:91) ~[coreserver.jar:?]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4764) ~[catalina.jar:8.5.83]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233) ~[catalina.jar:8.5.83]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[catalina.jar:8.5.83]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427) ~[catalina.jar:8.5.83]
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417) ~[catalina.jar:8.5.83]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceSecurityInterceptor' defined in class path resource [integrationcybersource/integration/beans.xml]: Cannot resolve reference to bean 'cybersourceCryptoFactory' while setting bean property 'securementEncryptionCrypto'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cybersourceCryptoFactory' defined in class path resource [integrationcybersource/integration/beans.xml]: Invocation of init method failed; nested exception is org.apache.wss4j.common.ext.WSSecurityException: You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do that before you use any functionality from that library.
Original Exception was org.apache.wss4j.common.ext.WSSecurityException: You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do that before you use any functionality from that library.

Accepted Solutions (0)

Answers (0)