My Oracle Support Banner

How to Fix "Failed to configure the Security module" "Keystore was tampered with, or password was incorrect" Errors (Doc ID 2877780.1)

Last updated on JUNE 20, 2022

Applies to:

Oracle Communications BRM - Elastic Charging Engine - Version 12.0.0.4.0 and later
Information in this document applies to any platform.

Goal

On : 12.0.0.4.0 version, Charging server launcher

One user got keystore password verification error while starting Elastic Charge SErver (ECS) nodes with Coherence 12.2.1.4.0 and Coherence 12.2.1.4.8, whereas it was working fine with Coherence 12.2.1.3.0.

ERROR
-----------------------
2022-06-14 12:32:13.976 SAST ERROR - - - - Oracle Coherence 12.2.1.4.8 (thread=main, member=n/a): Failed to configure the Security module
2022-06-14 12:32:13.978 SAST ERROR - - - - Oracle Coherence 12.2.1.4.8 (thread=main, member=n/a):
com.tangosol.util.WrapperException: (Wrapped) null
at com.tangosol.util.Base.ensureRuntimeException(Base.java:324) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.util.Base.ensureRuntimeException(Base.java:305) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.internal.net.security.LegacyXmlStandardHelper.newInstance(LegacyXmlStandardHelper.java:82) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.internal.net.security.LegacyXmlStandardHelper.fromXml(LegacyXmlStandardHelper.java:44) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.coherence.component.net.Security.configureSecurity(Security.CDB:25) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.coherence.component.net.Security$ConfigAction.run(Security.CDB:3) ~[coherence.jar:12.2.1.4.8]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_301]
at com.tangosol.coherence.component.net.Security.getInstance(Security.CDB:5) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.coherence.component.net.Security.isSecurityEnabled(Security.CDB:1) ~[coherence.jar:12.2.1.4.8]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_301]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_301]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_301]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_301]
at com.tangosol.net.security.Security.<clinit>(Security.java:269) ~[coherence.jar:12.2.1.4.8]
at oracle.communication.brm.charging.util.coherence.internal.CoherenceTemplateImpl.<init>(CoherenceTemplateImpl.java:157) ~[ece-util.jar:?]
at oracle.communication.brm.charging.util.coherence.internal.CoherenceTemplateImpl.<init>(CoherenceTemplateImpl.java:132) ~[ece-util.jar:?]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_301]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_301]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_301]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_301]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:204) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:310) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:295) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1361) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1208) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:706) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:197) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1361) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1208) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:95) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at oracle.communication.brm.charging.ratedevent.formatter.RatedEventFormatterLauncher.main(RatedEventFormatterLauncher.java:74) ~[ece-ratedeventformatter.jar:?]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_301]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_301]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_301]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_301]
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:779) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.internal.net.security.LegacyXmlStandardHelper.newInstance(LegacyXmlStandardHelper.java:78) ~[coherence.jar:12.2.1.4.8]
... 47 more
Caused by: com.tangosol.util.WrapperException: (Wrapped: Failed to load keystore: /home/obrmprd/Applications/ocece/ECE/oceceserver/config/server.jks) Keystore was tampered with, or password was incorrect
at com.tangosol.util.Base.ensureRuntimeException(Base.java:324) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.net.security.DefaultController.<init>(DefaultController.java:149) ~[coherence.jar:12.2.1.4.8]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_301]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_301]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_301]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_301]
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:779) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.internal.net.security.LegacyXmlStandardHelper.newInstance(LegacyXmlStandardHelper.java:78) ~[coherence.jar:12.2.1.4.8]
... 47 more
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:791) ~[?:1.8.0_301]
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57) ~[?:1.8.0_301]
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224) ~[?:1.8.0_301]
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71) ~[?:1.8.0_301]
at java.security.KeyStore.load(KeyStore.java:1445) ~[?:1.8.0_301]
at com.tangosol.net.security.DefaultController.<init>(DefaultController.java:143) ~[coherence.jar:12.2.1.4.8]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_301]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_301]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_301]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_301]
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:779) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.internal.net.security.LegacyXmlStandardHelper.newInstance(LegacyXmlStandardHelper.java:78) ~[coherence.jar:12.2.1.4.8]
... 47 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:789) ~[?:1.8.0_301]
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:57) ~[?:1.8.0_301]
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224) ~[?:1.8.0_301]
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:71) ~[?:1.8.0_301]
at java.security.KeyStore.load(KeyStore.java:1445) ~[?:1.8.0_301]
at com.tangosol.net.security.DefaultController.<init>(DefaultController.java:143) ~[coherence.jar:12.2.1.4.8]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_301]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_301]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_301]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_301]
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:779) ~[coherence.jar:12.2.1.4.8]
at com.tangosol.internal.net.security.LegacyXmlStandardHelper.newInstance(LegacyXmlStandardHelper.java:78) ~[coherence.jar:12.2.1.4.8]
... 47 more
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.