Hi, I want to use outgoing encryption using Signature Cert of previous Client request (useReqSigCert). I got a NullPointerException at org.apache.ws.security.util.WSSecurityUtil.findElement(WSSecurityUtil.java:199) using latest XFire distribution. In WSSecurityUtil the following call is made: startNode.getLocalName().equals(name). I assume, that getLocalName returns null after stepping into the soap body of my response document.
I have Xerces in endorsed path and runtime inspection showed, that "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" is used indeed. After some time of code debugging, I think that problem is located in DOM building (using DOMOutHandler). If I use DocumentBuilderFactory in a local test class (without W3CDOMStreamWriter) with String as XML Document as source, I can reproduce this behaviour, if I do not call setNamespaceAware(true). By the way, the NPE is thrown, if the WSSecurityUtil comes to an Element which is qualified by a Defaultnamespace (<elementName xmlns="http://...">). I try to track the problem further down. Do you have any fast idea, what could be the reason (maybe problem with evaluation of default namespaces in DOMOutHandler?) Regards, Christoph -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
