org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: ff:kk

Stack Overflow | chris.shi | 4 years 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

    namespace and xpath

    Stack Overflow | 4 years ago | chris.shi
    org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: ff:kk

    Root Cause Analysis

    1. org.apache.xpath.domapi.XPathStylesheetDOM3Exception

      Prefix must resolve to a namespace: ff:kk

      at org.apache.xpath.compiler.XPathParser.errorForDOM3()
    2. Xalan Java
      XPath.<init>
      1. org.apache.xpath.compiler.XPathParser.errorForDOM3(XPathParser.java:655)
      2. org.apache.xpath.compiler.Lexer.mapNSTokens(Lexer.java:647)
      3. org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:365)
      4. org.apache.xpath.compiler.Lexer.tokenize(Lexer.java:98)
      5. org.apache.xpath.compiler.XPathParser.initXPath(XPathParser.java:112)
      6. org.apache.xpath.XPath.<init>(XPath.java:178)
      6 frames
    3. Apache XML Security for Java
      Reference.getContentsAfterTransformation
      1. org.apache.xml.security.utils.XalanXPathAPI.createXPath(XalanXPathAPI.java:159)
      2. org.apache.xml.security.utils.XalanXPathAPI.eval(XalanXPathAPI.java:134)
      3. org.apache.xml.security.utils.XalanXPathAPI.selectNodeList(XalanXPathAPI.java:82)
      4. org.apache.xml.security.transforms.implementations.TransformXPath2Filter.enginePerformTransform(TransformXPath2Filter.java:117)
      5. org.apache.xml.security.transforms.implementations.TransformXPath2Filter.enginePerformTransform(TransformXPath2Filter.java:138)
      6. org.apache.xml.security.transforms.Transform.performTransform(Transform.java:304)
      7. org.apache.xml.security.transforms.Transforms.performTransforms(Transforms.java:277)
      8. org.apache.xml.security.signature.Reference.getContentsAfterTransformation(Reference.java:448)
      8 frames