You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2006/08/30 16:22:37 UTC

DO NOT REPLY [Bug 40360] New: - AxisSigner.java doesn't work out of the box

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40360

           Summary: AxisSigner.java doesn't work out of the box
           Product: Security
           Version: Java 1.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Signature
        AssignedTo: security-dev@xml.apache.org
        ReportedBy: jlcooke.apache_xmlsec@certainkey.com


java -version:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

Compile Command:
javac -cp
src_samples:libs/commons-logging-api.jar:libs/commons-logging.jar:libs/serializer.jar:libs/xalan.jar:libs/xercesImpl.jar:libs/xmlsec-1.3.0.jar:libs/xmlsecSamples-1.3.0.jar:libs/xmlsecTests-1.3.0.jar
src_samples/org/apache/xml/security/samples/AxisSigner.java

Run Command:
java -cp
src_samples:libs/commons-logging-api.jar:libs/commons-logging.jar:libs/serializer.jar:libs/xalan.jar:libs/xercesImpl.jar:libs/xmlsec-1.3.0.jar:libs/xmlsecSamples-1.3.0.jar:libs/xmlsecTests-1.3.0.jar
org.apache.xml.security.samples.AxisSigner

Output:
Exception in thread "main"
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(Unknown Source)
        at org.apache.xml.security.samples.AxisSigner.main(AxisSigner.java:138)
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(Unknown
Source)
        at
org.apache.xml.security.signature.Reference.generateDigestValue(Unknown Source)
        at
org.apache.xml.security.signature.Manifest.generateDigestValues(Unknown Source)
        at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
        at org.apache.xml.security.samples.AxisSigner.main(AxisSigner.java:138)
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(Unknown
Source)
        at org.apache.xml.security.signature.Reference.calculateDigest(Unknown
Source)
        at
org.apache.xml.security.signature.Reference.generateDigestValue(Unknown Source)
        at
org.apache.xml.security.signature.Manifest.generateDigestValues(Unknown Source)
        at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
        at org.apache.xml.security.samples.AxisSigner.main(AxisSigner.java:138)
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(Unknown
Source)
        at
org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms(Unknown
Source)
        at org.apache.xml.security.signature.Reference.calculateDigest(Unknown
Source)
        at
org.apache.xml.security.signature.Reference.generateDigestValue(Unknown Source)
        at
org.apache.xml.security.signature.Manifest.generateDigestValues(Unknown Source)
        at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
        at org.apache.xml.security.samples.AxisSigner.main(AxisSigner.java:138)
org.apache.xml.security.utils.resolver.ResourceResolverException: Cannot resolve
element with ID Body
        at
org.apache.xml.security.utils.resolver.implementations.ResolverFragment.engineResolve(Unknown
Source)
        at
org.apache.xml.security.utils.resolver.ResourceResolver.resolve(Unknown Source)
        at
org.apache.xml.security.signature.Reference.getContentsBeforeTransformation(Unknown
Source)
        at
org.apache.xml.security.signature.Reference.dereferenceURIandPerformTransforms(Unknown
Source)
        at org.apache.xml.security.signature.Reference.calculateDigest(Unknown
Source)
        at
org.apache.xml.security.signature.Reference.generateDigestValue(Unknown Source)
        at
org.apache.xml.security.signature.Manifest.generateDigestValues(Unknown Source)
        at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
        at org.apache.xml.security.samples.AxisSigner.main(AxisSigner.java:138)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 40360] - AxisSigner.java doesn't work out of the box

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40360


prashanth.mishra@impetus.co.in changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From prashanth.mishra@impetus.co.in  2008-01-11 00:01 -------
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)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 40360] - AxisSigner.java doesn't work out of the box

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40360


sean.mullan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED




------- Additional Comments From sean.mullan@sun.com  2007-09-19 12:15 -------
Closing old bugs. Fixed in 1.4.1

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 40360] - AxisSigner.java doesn't work out of the box

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40360


sean.mullan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEEDINFO




------- Additional Comments From sean.mullan@sun.com  2008-02-04 12:59 -------
Please attach a test case.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

DO NOT REPLY [Bug 40360] - AxisSigner.java doesn't work out of the box

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40360


raul-info@r-bg.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From raul-info@r-bg.com  2006-09-03 18:31 -------
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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.