Java.io.IOException: Keystore Was Tampered With, Or Password Was Incorrect (Doc ID 2232875.1)

Last updated on FEBRUARY 14, 2017

Applies to:

Oracle Utilities Customer Care and Billing - Version 2.5.0.2.0 and later
Information in this document applies to any platform.

Goal

 Encountered this error during application start-up (using demo cert)

default (self-tuning)'] ERROR (common.cryptography.KeyStoreWrapperFactory) Error loading keystore file /ouaf/pniqa/ks/.ouaf_truststore
java.io.IOException: Keystore was tampered with, or password was incorrect

Please note that this was encountered after the upgrade from SP1 to SP2.

ERROR
-----------------------
ERROR (common.cryptography.KeyStoreWrapperFactory) Error loading keystore file /ouaf/accpkg/ks/.ouaf_truststore
java.io.IOException: Keystore was tampered with, or password was incorrect
at com.ibm.crypto.provider.JceKeyStore.engineLoad(Unknown Source)
at java.security.KeyStore.load(KeyStore.java:1238)
at com.splwg.shared.common.cryptography.KeyStoreWrapperFactory.initializeFromFile(KeyStoreWrapperFactory.java:180)
at com.splwg.shared.common.cryptography.KeyStoreWrapperFactory.getInstance(KeyStoreWrapperFactory.java:90)
at com.splwg.shared.common.cryptography.TrustManagerInstance.intializeTrustStore(TrustManagerInstance.java:65)
at com.splwg.base.support.context.ApplicationContext.initializeTrustStrore(ApplicationContext.java:810)
at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:133)
at com.splwg.base.support.context.ContextFactory.buildContext(ContextFactory.java:104)
at com.splwg.base.support.context.ContextFactory.createDefaultContext(ContextFactory.java:611)
at com.splwg.ejb.service.impl.ServiceBeanContext.initializeApplicationContext(ServiceBeanContext.java:129)
at com.splwg.ejb.service.impl.ServiceBeanContext.initialize(ServiceBeanContext.java:48)
at com.splwg.ejb.service.impl.ServiceBeanContext.<clinit>(ServiceBeanContext.java:37)
at com.splwg.ejb.service.impl.ServiceBean.initializeContext(ServiceBean.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:377)
at com.oracle.pitchfork.inject.Jsr250Metadata.invokeLifecycleMethods(Jsr250Metadata.java:352)
at com.oracle.pitchfork.intercept.InterceptionMetadata.invokeLifecycleMethods(InterceptionMetadata.java:399)
at weblogic.ejb.container.injection.EjbComponentCreatorImpl.invokePostConstruct(EjbComponentCreatorImpl.java:55)
at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:295)
at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:132)
at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:99)
at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:149)
at weblogic.ejb.container.internal.BaseRemoteObject.getBeanInstance(BaseRemoteObject.java:158)
at weblogic.ejb.container.internal.BaseRemoteObject.__WL_preInvoke(BaseRemoteObject.java:109)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:23)
at com.splwg.ejb.service.impl.SPLServiceBean_8o7vtd_ServiceImpl.readSystem(Unknown Source)
at com.splwg.ejb.service.impl.SPLServiceBean_8o7vtd_ServiceImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:226)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:474)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:285)
at com.splwg.ejb.service.impl.SPLServiceBean_8o7vtd_ServiceImpl_12130_WLStub.readSystem(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
at com.sun.proxy.$Proxy136.readSystem(Unknown Source)
at com.splwg.serviceclient.RemoteServiceDispatcher$1.executeService(RemoteServiceDispatcher.java:45)
at com.splwg.serviceclient.RemoteServiceDispatcher$1.executeService(RemoteServiceDispatcher.java:42)
at com.splwg.serviceclient.RemotePageServiceDispatcherHelper.doIt(RemotePageServiceDispatcherHelper.java:19)
at com.splwg.serviceclient.RemoteServiceDispatcher.readSystem(RemoteServiceDispatcher.java:42)
at com.splwg.base.web.startup.PreloadLoginInfo.getMostPrevalentUserLanguage(PreloadLoginInfo.java:269)
at com.splwg.base.web.startup.PreloadLoginInfo.initializeRequestContext(PreloadLoginInfo.java:220)
at com.splwg.base.web.startup.PreloadLoginInfo.privateExecute(PreloadLoginInfo.java:70)
at com.splwg.base.web.startup.PreloadLoginInfo.execute(PreloadLoginInfo.java:58)
at com.splwg.base.web.startup.SPLWebStartup.contextInitialized(SPLWebStartup.java:68)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:678)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.EventsManager.executeContextListener(EventsManager.java:243)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:200)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:185)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1838)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2876)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1661)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:823)
at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:360)
at weblogic.application.internal.ExtensibleModuleWrapper$StartStateChange.next(ExtensibleModuleWrapper.java:356)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:138)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:216)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:211)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:73)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:24)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:48)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:226)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:418)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:210)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:118)
at weblogic.server.AbstractServerService.postConstruct(AbstractServerService.java:78)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1017)

Solution

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms