You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2009/01/12 22:01:59 UTC

[jira] Resolved: (AXIS2-4005) org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:233): UnsupportedOperationException: TODO

     [ https://issues.apache.org/jira/browse/AXIS2-4005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor resolved AXIS2-4005.
--------------------------------

       Resolution: Fixed
    Fix Version/s: nightly
                   1.5

This was a problem in the Axiom library which was recently fixed in revision 728550. The Axiom library with this fix will be included in Axis 1.5.


> org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:233): UnsupportedOperationException: TODO
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4005
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4005
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.4.1
>         Environment: WinXP SP3, Rampart 1.4, Rahas 1.4, Tong's secure client example
>            Reporter: Thomas Poetter
>             Fix For: 1.5, nightly
>
>
> This is the error transcript using AXIS2 1.4.1 with Rampart 1.4 (no Rampart 1.4.1 release found, yet):
> Transcript with Tong's example source code for a secure client (http://www.agileskills2.org/DWSAA/source.zip):
> - Deploying module: metadataExchange-1.4 - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/mex-1.4.mar
> - Deploying module: ping-1.4 - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/ping-1.4.mar
> - Deploying module: rahas-1.4 - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/rahas-1.4.mar
> - Deploying module: rampart-1.4 - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/rampart-1.4.mar
> - Deploying module: script-1.4 - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/scripting-1.4.mar
> - Deploying module: smtpfault - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/smtpfault.mar
> - Deploying module: soapmonitor-1.4 - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/modules/soapmonitor-1.4.mar
> - The build module, which is not valid, caused org.apache.axis2.addressing.AddressingModule
> org.apache.axis2.deployment.DeploymentException: org.apache.axis2.addressing.AddressingModule
> 	at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:221)
> 	at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:546)
> 	at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71)
> 	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> 	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
> 	at org.apache.axis2.deployment.RepositoryListener.loadClassPathModules(RepositoryListener.java:195)
> 	at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:70)
> 	at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
> 	at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
> 	at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:133)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:189)
> 	at com.ttdev.secure.client.SecureClient.main(SecureClient.java:28)
> Caused by: org.apache.axis2.deployment.DeploymentException: org.apache.axis2.addressing.AddressingModule
> 	at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:84)
> 	at org.apache.axis2.deployment.ModuleBuilder.populateModule(ModuleBuilder.java:102)
> 	... 13 more
> Caused by: java.lang.ClassNotFoundException: org.apache.axis2.addressing.AddressingModule
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:164)
> 	at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
> 	at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
> 	at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder.java:68)
> 	... 14 more
> - Deploying module: metadataExchange - file:/C:/Program Files/Java/axis2-1.4.1/lib/mex-1.4.1.jar
> - Deploying Web service: SecureService - file:/C:/AIS/TongSecureClientServiceAXIS2_1_4_1/repository/services/SecureService/
> soapMsg =
> PasswordCallbackHandler: Called for id: XXX, with Usage: 2
> PasswordCallbackHandler: Called for id: XXX, with Usage: 3
> - Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
> signatureValueElement=<ds:SignatureValue xmlns:ds="http://www.w3.org/2000/09/xmldsig#" />,_state=0,_constructionElement=<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-17171576">
> <ds:SignedInfo>
> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
> <ds:Reference URI="#Id-1043272">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
> <ds:DigestValue />
> </ds:Reference>
> <ds:Reference URI="#UsernameToken-5503831">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
> <ds:DigestValue />
> </ds:Reference>
> </ds:SignedInfo>
> <ds:SignatureValue />
> <ds:KeyInfo Id="KeyId-14372770">
> <wss:SecurityTokenReference xmlns:wss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-31519478"><wss:Reference URI="#CertId-7372569" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" /></wss:SecurityTokenReference>
> </ds:KeyInfo>
> </ds:Signature>
> XMLSignature input =
> <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-1043272"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body>
> - enter engineResolve, look for: #UsernameToken-5503831
> - exit engineResolve, result: XMLSignatureInput/Element/<wss:UsernameToken xmlns:wss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-5503831"><wss:Username>XXX</wss:Username><wss:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXX</wss:Password></wss:UsernameToken> exclude null comments:false/null
> XMLSignature input =
> <wss:UsernameToken xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-5503831"><wss:Username>XXX</wss:Username><wss:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXX</wss:Password></wss:UsernameToken>
> XMLSignature output =
> si.getCanonicalizedOctetStream() = <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> <ds:Reference URI="#Id-1043272">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
> <ds:DigestValue>J88yTgWoHokl4LTsL0pVfSub6E/JfKOxqUCIAZZNVmY=</ds:DigestValue>
> </ds:Reference>
> <ds:Reference URI="#UsernameToken-5503831">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
> <ds:DigestValue>PyZwx/7hvHJBKmAJ+YmPsRX+48NfWRSmktE+TYYgXWA=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> XMLSignature.sign(): si.getDocument() = org.apache.axiom.soap.impl.dom.SOAPMessageImpl@513d61
> XMLSignature.sign(): SignerOutputStream (size: 1908): <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> <ds:Reference URI="#Id-1043272">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
> <ds:DigestValue>J88yTgWoHokl4LTsL0pVfSub6E/JfKOxqUCIAZZNVmY=</ds:DigestValue>
> </ds:Reference>
> <ds:Reference URI="#UsernameToken-5503831">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
> <ds:DigestValue>PyZwx/7hvHJBKmAJ+YmPsRX+48NfWRSmktE+TYYgXWA=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo><ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:CanonicalizationMethod>
> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod>
> <ds:Reference URI="#Id-1043272">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
> <ds:DigestValue>J88yTgWoHokl4LTsL0pVfSub6E/JfKOxqUCIAZZNVmY=</ds:DigestValue>
> </ds:Reference>
> <ds:Reference URI="#UsernameToken-5503831">
> <ds:Transforms>
> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></ds:Transform>
> </ds:Transforms>
> <ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></ds:DigestMethod>
> <ds:DigestValue>PyZwx/7hvHJBKmAJ+YmPsRX+48NfWRSmktE+TYYgXWA=</ds:DigestValue>
> </ds:Reference>
> </ds:SignedInfo>
> An error was reported by the web service: Error in signature with X509Token
> org.apache.axis2.AxisFault: Error in signature with X509Token
> 	at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:70)
> 	at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
> 	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:429)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401)
> 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> 	at com.ttdev.secure.client.SecureServiceStub.concat(SecureServiceStub.java:181)
> 	at com.ttdev.secure.client.SecureClient.main(SecureClient.java:45)
> Caused by: org.apache.rampart.RampartException: Error in signature with X509Token
> 	at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:650)
> 	at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:413)
> 	at org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:93)
> 	at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
> 	at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
> 	... 8 more
> Caused by: org.apache.ws.security.WSSecurityException: Signature creation failed; nested exception is: 
> 	java.lang.UnsupportedOperationException: TODO
> 	at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:707)
> 	at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:641)
> 	... 12 more
> Caused by: java.lang.UnsupportedOperationException: TODO
> 	at org.apache.axiom.om.impl.dom.DocumentImpl.getDoctype(DocumentImpl.java:233)
> 	at org.apache.xml.serialize.OutputFormat.whichDoctypePublic(Unknown Source)
> 	at org.apache.xml.serialize.OutputFormat.<init>(Unknown Source)
> 	at org.apache.xml.serialize.OutputFormat.<init>(Unknown Source)
> 	at org.apache.xml.security.signature.XMLSignature.DomDocument2XmlStringSerializer(XMLSignature.java:473)
> 	at org.apache.xml.security.signature.XMLSignature.sign(XMLSignature.java:543)
> 	at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:699)
> 	... 13 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.