java.security.SignatureException: object not initialized for signature or verification

xml-security-dev | bugzilla@apache.org | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    DO NOT REPLY [Bug 44204] - signature/verification fails when in the same thread same key is used twice

    xml-security-dev | 9 years ago | bugzilla@apache.org
    java.security.SignatureException: object not initialized for signature or verification
  2. 0

    Failed to verify exception

    Oracle Community | 1 decade ago | 843811
    java.security.SignatureException: Failed to verify

    1 unregistered visitors

    Root Cause Analysis

    1. java.security.SignatureException

      object not initialized for signature or verification

      at org.apache.xml.security.utils.SignerOutputStream.write()
    2. Apache XML Security for Java
      XMLSignature.checkSignatureValue
      1. org.apache.xml.security.utils.SignerOutputStream.write(SignerOutputStream.java:66)
      2. org.apache.xml.security.utils.UnsyncBufferedOutputStream.flushBuffer(UnsyncBufferedOutputStream.java:69)
      3. org.apache.xml.security.utils.UnsyncBufferedOutputStream.flush(UnsyncBufferedOutputStream.java:85)
      4. org.apache.xml.security.utils.UnsyncBufferedOutputStream.close(UnsyncBufferedOutputStream.java:91)
      5. org.apache.xml.security.c14n.implementations.CanonicalizerBase.engineCanonicalizeSubTree(CanonicalizerBase.java:207)
      6. org.apache.xml.security.c14n.implementations.CanonicalizerBase.engineCanonicalizeSubTree(CanonicalizerBase.java:121)
      7. org.apache.xml.security.c14n.Canonicalizer.canonicalizeSubtree(Canonicalizer.java:242)
      8. org.apache.xml.security.signature.SignedInfo.signInOctectStream(SignedInfo.java:280)
      9. org.apache.xml.security.signature.XMLSignature.checkSignatureValue(XMLSignature.java:620)
      9 frames
    3. Unknown
      TestSigAlg.main
      1. TestSigAlg.main(TestSigAlg.java:105)
      1 frame