java.lang.NullPointerException

xml-security-dev | Bryan Field-Elliot | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NullPointerException when I call sign()

    xml-security-dev | 1 decade ago | Bryan Field-Elliot
    java.lang.NullPointerException
  2. 0

    Re: XML Security with JDOM

    xml-security-dev | 1 decade ago | Tom Oehser
    java.lang.NullPointerException
  3. 0

    XML Security with JDOM

    xml-security-dev | 1 decade ago | JC Tchitchiama
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: nullpointer exception in sig.sign(privateKey) of CreateSignature example

    xml-security-dev | 1 decade ago | Jozef Aerts - Comp.Chem.Cons. - XML4Pharma
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.xml.security.c14n.helper.NonNSAttrCompare.compare()
    2. Apache XML Security for Java
      NonNSAttrCompare.compare
      1. org.apache.xml.security.c14n.helper.NonNSAttrCompare.compare(NonNSAttrCompare.java:125)
      1 frame
    3. Java RT
      Arrays.sort
      1. java.util.Arrays.mergeSort(Arrays.java:1176)
      2. java.util.Arrays.mergeSort(Arrays.java:1183)
      3. java.util.Arrays.sort(Arrays.java:1123)
      3 frames
    4. Apache XML Security for Java
      XMLSignature.sign
      1. org.apache.xml.security.c14n.helper.C14nHelper.sortAttributes(C14nHelper.java:123)
      2. org.apache.xml.security.c14n.implementations.CanonicalizerBase.canonicalizeXPathNodeSet(CanonicalizerBase.java:486)
      3. org.apache.xml.security.c14n.implementations.CanonicalizerBase.canonicalizeXPathNodeSet(CanonicalizerBase.java:415)
      4. org.apache.xml.security.c14n.implementations.CanonicalizerBase.engineCanonicalizeXPathNodeSet(CanonicalizerBase.java:370)
      5. org.apache.xml.security.signature.XMLSignatureInput.getOctetStream(XMLSignatureInput.java:344)
      6. org.apache.xml.security.signature.XMLSignatureInput.getBytes(XMLSignatureInput.java:380)
      7. org.apache.xml.security.signature.Reference.getContentsBeforeTransformation(Reference.java:478)
      8. org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms(Reference.java:700)
      9. org.apache.xml.security.signature.Reference.getReferencedBytes(Reference.java:765)
      10. org.apache.xml.security.signature.Reference.calculateDigest(Reference.java:790)
      11. org.apache.xml.security.signature.Reference.generateDigestValue(Reference.java:441)
      12. org.apache.xml.security.signature.Manifest.generateDigestValues(Manifest.java:214)
      13. org.apache.xml.security.signature.XMLSignature.sign(XMLSignature.java:529)
      13 frames