com.atlassian.bamboo.security.EncryptionException: Failed to decrypt.

Atlassian JIRA | Mark Chaimungkalanont | 9 years ago
  1. 0

    Perforce repository uses the StringEncrypter in a non Thread safe way which could lead to errors like: {noformat} INFO | jvm 1 | 2008/05/28 16:45:12 | 2008-05-28 16:45:12,694 WARN [pool-18-thread-1] [PerforceRepository] Could not decrypt password INFO | jvm 1 | 2008/05/28 16:45:12 | com.atlassian.bamboo.security.EncryptionException: Failed to decrypt. INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.security.StringEncrypter.decrypt(StringEncrypter.java:78) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.repository.perforce.PerforceRepository.decryptPassword(PerforceRepository.java:876) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.repository.perforce.PerforceRepository.getPerforceDepot(PerforceRepository.java:235) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(PerforceRepository.java:120) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:89) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process(ChangeDetectionListenerAction.java:63) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(DefaultBuildExecutionManager.java:86) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(ChangeDetectionListener.java:41) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.event.DefaultEventManager$2.run(DefaultEventManager.java:202) INFO | jvm 1 | 2008/05/28 16:45:12 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) INFO | jvm 1 | 2008/05/28 16:45:12 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) INFO | jvm 1 | 2008/05/28 16:45:12 | at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) INFO | jvm 1 | 2008/05/28 16:45:12 | at java.lang.Thread.run(Thread.java:595) INFO | jvm 1 | 2008/05/28 16:45:12 | Caused by: java.lang.IllegalStateException: Cipher not initialized INFO | jvm 1 | 2008/05/28 16:45:12 | at javax.crypto.Cipher.c(DashoA12275) INFO | jvm 1 | 2008/05/28 16:45:12 | at javax.crypto.Cipher.doFinal(DashoA12275) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.security.StringEncrypter.decrypt(StringEncrypter.java:74) INFO | jvm 1 | 2008/05/28 16:45:12 | ... 13 more {noformat} as well as errors further downstream

    Atlassian JIRA | 9 years ago | Mark Chaimungkalanont
    com.atlassian.bamboo.security.EncryptionException: Failed to decrypt.
  2. 0

    Perforce repository uses the StringEncrypter in a non Thread safe way which could lead to errors like: {noformat} INFO | jvm 1 | 2008/05/28 16:45:12 | 2008-05-28 16:45:12,694 WARN [pool-18-thread-1] [PerforceRepository] Could not decrypt password INFO | jvm 1 | 2008/05/28 16:45:12 | com.atlassian.bamboo.security.EncryptionException: Failed to decrypt. INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.security.StringEncrypter.decrypt(StringEncrypter.java:78) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.repository.perforce.PerforceRepository.decryptPassword(PerforceRepository.java:876) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.repository.perforce.PerforceRepository.getPerforceDepot(PerforceRepository.java:235) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(PerforceRepository.java:120) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:89) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process(ChangeDetectionListenerAction.java:63) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(DefaultBuildExecutionManager.java:86) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(ChangeDetectionListener.java:41) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.event.DefaultEventManager$2.run(DefaultEventManager.java:202) INFO | jvm 1 | 2008/05/28 16:45:12 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) INFO | jvm 1 | 2008/05/28 16:45:12 | at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) INFO | jvm 1 | 2008/05/28 16:45:12 | at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) INFO | jvm 1 | 2008/05/28 16:45:12 | at java.lang.Thread.run(Thread.java:595) INFO | jvm 1 | 2008/05/28 16:45:12 | Caused by: java.lang.IllegalStateException: Cipher not initialized INFO | jvm 1 | 2008/05/28 16:45:12 | at javax.crypto.Cipher.c(DashoA12275) INFO | jvm 1 | 2008/05/28 16:45:12 | at javax.crypto.Cipher.doFinal(DashoA12275) INFO | jvm 1 | 2008/05/28 16:45:12 | at com.atlassian.bamboo.security.StringEncrypter.decrypt(StringEncrypter.java:74) INFO | jvm 1 | 2008/05/28 16:45:12 | ... 13 more {noformat} as well as errors further downstream

    Atlassian JIRA | 9 years ago | Mark Chaimungkalanont
    com.atlassian.bamboo.security.EncryptionException: Failed to decrypt.
  3. 0

    jdk中的des加密算法 - 拨云剑

    boyunjian.com | 1 year ago
    java.lang.IllegalStateException: Cipher not initialized
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cipher initilization error when running test

    Stack Overflow | 2 years ago | anjibman
    java.lang.IllegalStateException: Cipher not initialized
  6. 0

    AES 128bit encryption. Inconsistent byte reads from stored SecretKey

    Stack Overflow | 5 years ago | sapatos
    java.lang.IllegalStateException: Cipher not initialized

    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.lang.IllegalStateException

      Cipher not initialized

      at javax.crypto.Cipher.c()
    2. Android Platform
      Cipher.doFinal
      1. javax.crypto.Cipher.c(DashoA12275)
      2. javax.crypto.Cipher.doFinal(DashoA12275)
      2 frames
    3. com.atlassian.bamboo
      ChangeDetectionListener.handleEvent
      1. com.atlassian.bamboo.security.StringEncrypter.decrypt(StringEncrypter.java:74)
      2. com.atlassian.bamboo.repository.perforce.PerforceRepository.decryptPassword(PerforceRepository.java:876)
      3. com.atlassian.bamboo.repository.perforce.PerforceRepository.getPerforceDepot(PerforceRepository.java:235)
      4. com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(PerforceRepository.java:120)
      5. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:89)
      6. com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process(ChangeDetectionListenerAction.java:63)
      7. com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(DefaultBuildExecutionManager.java:86)
      8. com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(ChangeDetectionListener.java:41)
      8 frames
    4. com.atlassian.event
      DefaultEventManager$2.run
      1. com.atlassian.event.DefaultEventManager$2.run(DefaultEventManager.java:202)
      1 frame
    5. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      2 frames
    6. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      1 frame
    7. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame