java.io.IOException

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

Samebug tips2

If you are using maven you'd like to exclude your binaries from filtering process.


ifercaiferca

Java Keytool doesn't accept PEM files, you need to convert it to Der before: "openssl x509 -outform der -in certificate.pem -out certificate.der" and to import it to the keystore "keytool -import -alias your-alias -keystore cacerts -file certificate.der"


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web218

  • via Unknown by Prorad,
  • via Stack Overflow by PatTheGamer
    ,
  • via Unknown by Unknown author,
  • Stack trace

    • 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 com.bharosa.common.util.cipher.KeystoreKeyRetrieval.getKeystore(KeystoreKeyRetrieval.java:158) at com.bharosa.common.util.cipher.KeystoreKeyRetrieval.init(KeystoreKeyRetrieval.java:79) at com.bharosa.common.util.cipher.KeystoreKeyRetrieval.<init>(KeystoreKeyRetrieval.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.bharosa.common.util.BharosaCipher.getKeyRetrievalClass(BharosaCipher.java:393) at com.bharosa.common.util.BharosaCipher.getCipher(BharosaCipher.java:208) at com.bharosa.common.util.BharosaCipher.getCipher(BharosaCipher.java:261) at com.bharosa.vcrypt.auth.util.VCryptPassword.<init>(VCryptPassword.java:31) at com.bharosa.common.toplink.TOPLinkPasswordAttributeTransformer.<init>(TOPLinkPasswordAttributeTransformer.java:17) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at oracle.toplink.internal.security.PrivilegedAccessController.newInstanceFromClass(PrivilegedAccessController.java:542) at oracle.toplink.mappings.foundation.AbstractTransformationMapping.initializeAttributeTransformer(AbstractTransformationMapping.java:604) at oracle.toplink.mappings.foundation.AbstractTransformationMapping.initialize(AbstractTransformationMapping.java:587) at oracle.toplink.publicinterface.Descriptor.initialize(Descriptor.java:1872) at oracle.toplink.publicinterface.DatabaseSession.initializeDescriptors(DatabaseSession.java:361) at oracle.toplink.publicinterface.DatabaseSession.initializeDescriptors(DatabaseSession.java:322) at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:504) at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:379) at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:242) at com.bharosa.common.toplink.TopLinkDBMgr.<init>(TopLinkDBMgr.java:61) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.initializeDBMgr(VCryptDataAccessMgr.java:129) at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.<init>(VCryptDataAccessMgr.java:54) at com.bharosa.common.util.BharosaConfigLoadDbImpl.init(BharosaConfigLoadDbImpl.java:61) at com.bharosa.common.util.BharosaConfigCommonImpl.init(BharosaConfigCommonImpl.java:39) at com.bharosa.common.util.BharosaConfig.init(BharosaConfig.java:113) at com.bharosa.common.util.BharosaConfig.get(BharosaConfig.java:457) at com.bharosa.common.newlocation.IPLocationLoader.main(IPLocationLoader.java:109)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    rprp
    Once,
    ifercaiferca
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    33 more bugmates