java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect

JIRA | Philippe Laflamme | 5 years ago
  1. 0

    After upgrading to Opal 1.7.0 from 1.6.2 (and keeping both config files intact) I got this: {code} 2011-12-21 21:48:13,148 - WARN - jetty.util.log - FAILED org.obiba.opal.server.httpd.OpalJettyServer$1@19fc0d6c: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect 2011-12-21 21:48:13,148 - WARN - jetty.util.log - FAILED SslSelectChannelConnector@0.0.0.0:8443 FAILED: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect 2011-12-21 21:48:13,149 - WARN - jetty.util.log - FAILED org.eclipse.jetty.server.Server@72d53ac7: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect 2011-12-21 21:48:13,150 - ERROR - rver.httpd.OpalJettyServer - Error starting jetty java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.translateAndRethrowKeyStoreIOException(DefaultUnitKeyStoreServiceImpl.java:278) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:222) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.getUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.getUnitKeyStore(Unknown Source) at org.obiba.opal.server.ssl.OpalSslContextFactory.prepareServerKeystore(OpalSslContextFactory.java:66) at org.obiba.opal.server.ssl.OpalSslContextFactory.createSslContext(OpalSslContextFactory.java:49) at org.obiba.opal.server.httpd.OpalJettyServer$1.doStart(OpalJettyServer.java:95) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.Server.doStart(Server.java:264) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:148) at org.obiba.opal.core.runtime.DefaultOpalRuntime.initServices(DefaultOpalRuntime.java:143) at org.obiba.opal.core.runtime.DefaultOpalRuntime.start(DefaultOpalRuntime.java:69) at org.obiba.opal.server.OpalServer.boot(OpalServer.java:63) at org.obiba.opal.server.OpalServer.main(OpalServer.java:89) Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..) at java.security.KeyStore.load(KeyStore.java:1185) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadKeyStore(DefaultUnitKeyStoreServiceImpl.java:230) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:213) ... 25 more 2011-12-21 21:48:13,152 - WARN - core.runtime.OpalRuntime - Error starting service class org.obiba.opal.server.httpd.OpalJettyServer java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect at org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:151) at org.obiba.opal.core.runtime.DefaultOpalRuntime.initServices(DefaultOpalRuntime.java:143) at org.obiba.opal.core.runtime.DefaultOpalRuntime.start(DefaultOpalRuntime.java:69) at org.obiba.opal.server.OpalServer.boot(OpalServer.java:63) at org.obiba.opal.server.OpalServer.main(OpalServer.java:89) Caused by: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.translateAndRethrowKeyStoreIOException(DefaultUnitKeyStoreServiceImpl.java:278) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:222) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.getUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.getUnitKeyStore(Unknown Source) at org.obiba.opal.server.ssl.OpalSslContextFactory.prepareServerKeystore(OpalSslContextFactory.java:66) at org.obiba.opal.server.ssl.OpalSslContextFactory.createSslContext(OpalSslContextFactory.java:49) at org.obiba.opal.server.httpd.OpalJettyServer$1.doStart(OpalJettyServer.java:95) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.Server.doStart(Server.java:264) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:148) ... 4 more Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..) at java.security.KeyStore.load(KeyStore.java:1185) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadKeyStore(DefaultUnitKeyStoreServiceImpl.java:230) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:213) ... 25 more {code}

    JIRA | 5 years ago | Philippe Laflamme
    java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect
  2. 0

    After upgrading to Opal 1.7.0 from 1.6.2 (and keeping both config files intact) I got this: {code} 2011-12-21 21:48:13,148 - WARN - jetty.util.log - FAILED org.obiba.opal.server.httpd.OpalJettyServer$1@19fc0d6c: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect 2011-12-21 21:48:13,148 - WARN - jetty.util.log - FAILED SslSelectChannelConnector@0.0.0.0:8443 FAILED: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect 2011-12-21 21:48:13,149 - WARN - jetty.util.log - FAILED org.eclipse.jetty.server.Server@72d53ac7: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect 2011-12-21 21:48:13,150 - ERROR - rver.httpd.OpalJettyServer - Error starting jetty java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.translateAndRethrowKeyStoreIOException(DefaultUnitKeyStoreServiceImpl.java:278) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:222) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.getUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.getUnitKeyStore(Unknown Source) at org.obiba.opal.server.ssl.OpalSslContextFactory.prepareServerKeystore(OpalSslContextFactory.java:66) at org.obiba.opal.server.ssl.OpalSslContextFactory.createSslContext(OpalSslContextFactory.java:49) at org.obiba.opal.server.httpd.OpalJettyServer$1.doStart(OpalJettyServer.java:95) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.Server.doStart(Server.java:264) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:148) at org.obiba.opal.core.runtime.DefaultOpalRuntime.initServices(DefaultOpalRuntime.java:143) at org.obiba.opal.core.runtime.DefaultOpalRuntime.start(DefaultOpalRuntime.java:69) at org.obiba.opal.server.OpalServer.boot(OpalServer.java:63) at org.obiba.opal.server.OpalServer.main(OpalServer.java:89) Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..) at java.security.KeyStore.load(KeyStore.java:1185) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadKeyStore(DefaultUnitKeyStoreServiceImpl.java:230) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:213) ... 25 more 2011-12-21 21:48:13,152 - WARN - core.runtime.OpalRuntime - Error starting service class org.obiba.opal.server.httpd.OpalJettyServer java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect at org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:151) at org.obiba.opal.core.runtime.DefaultOpalRuntime.initServices(DefaultOpalRuntime.java:143) at org.obiba.opal.core.runtime.DefaultOpalRuntime.start(DefaultOpalRuntime.java:69) at org.obiba.opal.server.OpalServer.boot(OpalServer.java:63) at org.obiba.opal.server.OpalServer.main(OpalServer.java:89) Caused by: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.translateAndRethrowKeyStoreIOException(DefaultUnitKeyStoreServiceImpl.java:278) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:222) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.getUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy42.getUnitKeyStore(Unknown Source) at org.obiba.opal.server.ssl.OpalSslContextFactory.prepareServerKeystore(OpalSslContextFactory.java:66) at org.obiba.opal.server.ssl.OpalSslContextFactory.createSslContext(OpalSslContextFactory.java:49) at org.obiba.opal.server.httpd.OpalJettyServer$1.doStart(OpalJettyServer.java:95) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.eclipse.jetty.server.Server.doStart(Server.java:264) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58) at org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:148) ... 4 more Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..) at java.security.KeyStore.load(KeyStore.java:1185) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadKeyStore(DefaultUnitKeyStoreServiceImpl.java:230) at org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:213) ... 25 more {code}

    JIRA | 5 years ago | Philippe Laflamme
    java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Keystore was tampered with, or password was incorrect
  3. 0

    JCEKS keystore as resource in War

    Stack Overflow | 5 years ago | PatTheGamer
    java.io.IOException: Keystore was tampered with, or password was incorrect at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error: JCE cannot authenticate the provider BC

    java-forums.org | 3 months ago
    java.io.IOException: error constructing MAC: java.security.NoSuchProviderException: JCE cannot authenticate the provider BC at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.en gineLoad(Unknown Source)
  6. 0

    Ibm jce cannot set up certs for trusted cas at javax crypto f - Java Programming - KnowCoding.com

    knowcoding.com | 8 months ago
    java.io.IOException: error constructing MAC: java.security.NoSuchProviderException: JCE cannot authenticate the provider BC at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.en gineLoad(Unknown Source)

  1. kid 1 times, last 9 months ago
43 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Keystore was tampered with, or password was incorrect at com.sun.crypto.provider.JceKeyStore.engineLoad(DashoA13*..)

    at java.security.KeyStore.load()
  2. Java RT
    KeyStore.load
    1. java.security.KeyStore.load(KeyStore.java:1185)
    1 frame
  3. org.obiba.opal
    DefaultUnitKeyStoreServiceImpl.getUnitKeyStore
    1. org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadKeyStore(DefaultUnitKeyStoreServiceImpl.java:230)
    2. org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.loadUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:213)
    3. org.obiba.opal.core.service.impl.DefaultUnitKeyStoreServiceImpl.getUnitKeyStore(DefaultUnitKeyStoreServiceImpl.java:69)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    3 frames
  6. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
    1 frame
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    2 frames
  8. Unknown
    $Proxy42.getUnitKeyStore
    1. $Proxy42.getUnitKeyStore(Unknown Source)
    1 frame
  9. org.obiba.opal
    OpalJettyServer$1.doStart
    1. org.obiba.opal.server.ssl.OpalSslContextFactory.prepareServerKeystore(OpalSslContextFactory.java:66)
    2. org.obiba.opal.server.ssl.OpalSslContextFactory.createSslContext(OpalSslContextFactory.java:49)
    3. org.obiba.opal.server.httpd.OpalJettyServer$1.doStart(OpalJettyServer.java:95)
    3 frames
  10. Jetty
    AbstractLifeCycle.start
    1. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
    1 frame
  11. GWT dev
    SslSelectChannelConnector.doStart
    1. org.eclipse.jetty.server.ssl.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598)
    1 frame
  12. Jetty
    AbstractLifeCycle.start
    1. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
    2. org.eclipse.jetty.server.Server.doStart(Server.java:264)
    3. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
    3 frames
  13. org.obiba.opal
    OpalServer.main
    1. org.obiba.opal.server.httpd.OpalJettyServer.start(OpalJettyServer.java:148)
    2. org.obiba.opal.core.runtime.DefaultOpalRuntime.initServices(DefaultOpalRuntime.java:143)
    3. org.obiba.opal.core.runtime.DefaultOpalRuntime.start(DefaultOpalRuntime.java:69)
    4. org.obiba.opal.server.OpalServer.boot(OpalServer.java:63)
    5. org.obiba.opal.server.OpalServer.main(OpalServer.java:89)
    5 frames