Summary: | AxisSigner.java doesn't work out of the box | ||
---|---|---|---|
Product: | Security - Now in JIRA | Reporter: | Jean-Luc Cooke <jlcooke.apache_xmlsec> |
Component: | Signature | Assignee: | XML Security Developers Mailing List <security-dev> |
Status: | NEEDINFO --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | Java 1.3 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux |
Description
Jean-Luc Cooke
2006-08-30 14:22:37 UTC
Fixed in SVN head. I have also do some test cases, so the hopefully the problem will not appear more. Anyway I will not recommend to not let the library search for the element to use. It is slow and not much secure. Instead use Element.setIdAttribute methods and schema with id attributes so the Xml Security library can use Document.getElementById method. Thanks for reporting it. Closing old bugs. Fixed in 1.4.1 Hi, I am getting same exception in version 1.4.1 with java 1.4.1_02 Trace is : org.apache.xml.security.signature.XMLSignatureException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID Body at org.apache.xml.security.signature.XMLSignature.sign (XMLSignature.java:514) at com.vivotech.vivogate.webservice.ViVOGatewayViVOGatewaySOAP11PortStub.processRe quest(ViVOGatewayViVOGatewaySOAP11PortStub.java:208) at com.vivotech.vivogate.webservice.client.TestClient.main (TestClient.java:47) org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID Body at org.apache.xml.security.signature.Reference.calculateDigest (Reference.java:697) at org.apache.xml.security.signature.Reference.generateDigestValue (Reference.java:364) at org.apache.xml.security.signature.Manifest.generateDigestValues (Manifest.java:180) at org.apache.xml.security.signature.XMLSignature.sign (XMLSignature.java:492) at com.vivotech.vivogate.webservice.ViVOGatewayViVOGatewaySOAP11PortStub.processRe quest(ViVOGatewayViVOGatewaySOAP11PortStub.java:208) at com.vivotech.vivogate.webservice.client.TestClient.main (TestClient.java:47) org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID Body at org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms (Reference.java:628) at org.apache.xml.security.signature.Reference.calculateDigest (Reference.java:689) at org.apache.xml.security.signature.Reference.generateDigestValue (Reference.java:364) at org.apache.xml.security.signature.Manifest.generateDigestValues (Manifest.java:180) at org.apache.xml.security.signature.XMLSignature.sign (XMLSignature.java:492) at com.vivotech.vivogate.webservice.ViVOGatewayViVOGatewaySOAP11PortStub.processRe quest(ViVOGatewayViVOGatewaySOAP11PortStub.java:208) at com.vivotech.vivogate.webservice.client.TestClient.main (TestClient.java:47) org.apache.xml.security.signature.ReferenceNotInitializedException: Cannot resolve element with ID Body Original Exception was org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID Body at org.apache.xml.security.signature.Reference.getContentsBeforeTransformation (Reference.java:405) at org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms (Reference.java:612) at org.apache.xml.security.signature.Reference.calculateDigest (Reference.java:689) at org.apache.xml.security.signature.Reference.generateDigestValue (Reference.java:364) at org.apache.xml.security.signature.Manifest.generateDigestValues (Manifest.java:180) at org.apache.xml.security.signature.XMLSignature.sign (XMLSignature.java:492) at com.vivotech.vivogate.webservice.ViVOGatewayViVOGatewaySOAP11PortStub.processRe quest(ViVOGatewayViVOGatewaySOAP11PortStub.java:208) at com.vivotech.vivogate.webservice.client.TestClient.main (TestClient.java:47) org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID Body at org.apache.xml.security.utils.resolver.implementations.ResolverFragment.engineR esolve(ResolverFragment.java:92) at org.apache.xml.security.utils.resolver.ResourceResolver.resolve (ResourceResolver.java:259) at org.apache.xml.security.signature.Reference.getContentsBeforeTransformation (Reference.java:400) at org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms (Reference.java:612) at org.apache.xml.security.signature.Reference.calculateDigest (Reference.java:689) at org.apache.xml.security.signature.Reference.generateDigestValue (Reference.java:364) at org.apache.xml.security.signature.Manifest.generateDigestValues (Manifest.java:180) at org.apache.xml.security.signature.XMLSignature.sign (XMLSignature.java:492) at com.vivotech.vivogate.webservice.ViVOGatewayViVOGatewaySOAP11PortStub.processRe quest(ViVOGatewayViVOGatewaySOAP11PortStub.java:208) at com.vivotech.vivogate.webservice.client.TestClient.main (TestClient.java:47) Please attach a test case. |