I'm getting the following exception when I call
XMLUtils.outputDOMc14nWithComments(doc, f) and the document contains an
element with a non-namespaced attribute.  (The element is namespaced.)   If
I change the attribute so that it is namespaced, it works.  Is this a known
bug?

Thanks
Steve

java.lang.NullPointerException  
at java.lang.String.compareTo(String.java:728)  
at
org.apache.xml.security.c14n.helper.NonNSAttrCompare.compare(NonNSAttrCompar
e.java:125)     
at java.util.Arrays.mergeSort(Arrays.java:1278)         
at java.util.Arrays.sort(Arrays.java:1219)      
at
org.apache.xml.security.c14n.helper.C14nHelper.sortAttributes(C14nHelper.jav
a:123)  
at
org.apache.xml.security.c14n.implementations.Canonicalizer20010315.handleAtt
ributesSubtree(Canonicalizer20010315.java:307)
at
org.apache.xml.security.c14n.implementations.CanonicalizerBase.canonicalizeS
ubTree(CanonicalizerBase.java:224)      
at
org.apache.xml.security.c14n.implementations.CanonicalizerBase.canonicalizeS
ubTree(CanonicalizerBase.java:238)      
at
org.apache.xml.security.c14n.implementations.CanonicalizerBase.canonicalizeS
ubTree(CanonicalizerBase.java:238)      
at
org.apache.xml.security.c14n.implementations.CanonicalizerBase.canonicalizeS
ubTree(CanonicalizerBase.java:176)      
at
org.apache.xml.security.c14n.implementations.CanonicalizerBase.engineCanonic
alizeSubTree(CanonicalizerBase.java:129)        
at
org.apache.xml.security.c14n.Canonicalizer.canonicalizeSubtree(Canonicalizer
.java:266)      
at
org.apache.xml.security.utils.XMLUtils.outputDOMc14nWithComments(XMLUtils.ja
va:576)         
at test.CreateSignature2.main(CreateSignature2.java:138) 
Exception in thread "main" 
Process exited with exit code 1.

Reply via email to