java.io.IOException: failed to decrypt safe contents entryCOM.rsa.jsafe.SunJSSE_cs: Could not perform unpadding: invalid pad byte.

ws-wss4j-dev | Werner Dittmann (JIRA) | 1 decade ago
  1. 0

    [jira] Commented: (WSS-11) Better error message(s) for failure to load keystore

    ws-wss4j-dev | 1 decade ago | Werner Dittmann (JIRA)
    java.io.IOException: failed to decrypt safe contents entryCOM.rsa.jsafe.SunJSSE_cs: Could not perform unpadding: invalid pad byte.
  2. 0

    Error occured while reading identity data: failed to decrypt safe contents

    Oracle Community | 1 decade ago | 843811
    java.io.IOException: failed to decrypt safe contents entryCOM.rsa.jsafe.SunJSSE_cs: Cou ld not perform unpadding: invalid pad byte.

    Root Cause Analysis

    1. COM.rsa.jsafe.SunJSSE_cs

      Could not perform unpadding: invalid pad byte.

      at COM.rsa.jsafe.SunJSSE_al.a()
    2. COM.rsa.jsafe
      SunJSSE_ag.a
      1. COM.rsa.jsafe.SunJSSE_al.a(DashoA12275)
      2. COM.rsa.jsafe.SunJSSE_ag.a(DashoA12275)
      2 frames
    3. Java JSSE
      PKCS12KeyStore.engineLoad
      1. com.sun.net.ssl.internal.ssl.PKCS12KeyStore.a(DashoA12275)
      2. com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(DashoA12275)
      2 frames
    4. Java RT
      KeyStore.load
      1. java.security.KeyStore.load(KeyStore.java:652)
      1 frame
    5. Apache WSS4J
      Merlin.<init>
      1. org.apache.ws.security.components.crypto.Merlin.load(Merlin.java:527)
      2. org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:119)
      2 frames
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      4 frames
    7. Apache WSS4J
      CryptoFactory.getInstance
      1. org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:117)
      2. org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:72)
      2 frames
    8. org.astrogrid.security
      MerlinTest.testAll
      1. org.astrogrid.security.MerlinTest.testAll(MerlinTest.java:31)
      1 frame
    9. 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:324)
      4 frames
    10. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    11. Apache Ant + JUnit
      JUnitTestRunner.main
      1. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
      2. org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
      2 frames