Hi,
We are using Java REST SDK for communication with vCO. Unfortunatelly when we try to use for our application JDK 7 greater than update 21 we get the following exceptions:
Caused by: com.vmware.vim.sso.client.exception.InvalidTokenException: Signature validation failed
at com.vmware.vim.sso.client.impl.SamlTokenImpl.validateSignature(SamlTokenImpl.java:528) ~[client-5.1.0.jar:na]
at com.vmware.vim.sso.client.impl.SamlTokenImpl.validateAndPopulate(SamlTokenImpl.java:450) ~[client-5.1.0.jar:na]
at com.vmware.vim.sso.client.impl.SamlTokenImpl.<init>(SamlTokenImpl.java:213) ~[client-5.1.0.jar:na]
at com.vmware.vim.sso.client.impl.SamlTokenImpl.<init>(SamlTokenImpl.java:264) ~[client-5.1.0.jar:na]
at com.vmware.vim.sso.client.DefaultTokenFactory.parseToken(DefaultTokenFactory.java:37) ~[client-5.1.0.jar:na]
at com.vmware.vim.sso.client.DefaultTokenFactory.parseToken(DefaultTokenFactory.java:62) ~[client-5.1.0.jar:na]
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl.acquireToken(SecurityTokenServiceImpl.java:122) ~[client-5.1.0.jar:na]
at com.vmware.o11n.sdk.rest.client.impl.SsoTokenServiceAdaptor.acquireHokToken(SsoTokenServiceAdaptor.java:54) ~[rest-client-services-5.1.0.jar:na]
... 92 common frames omitted
Caused by: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.URIReferenceException: com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID _530718a3-9837-4eca-a1b5-6eac7339f7d9
at org.jcp.xml.dsig.internal.dom.DOMReference.dereference(DOMReference.java:412) ~[na:1.7.0_45]
at org.jcp.xml.dsig.internal.dom.DOMReference.validate(DOMReference.java:371) ~[na:1.7.0_45]
at org.jcp.xml.dsig.internal.dom.DOMXMLSignature.validate(DOMXMLSignature.java:265) ~[na:1.7.0_45]
at com.vmware.vim.sso.client.impl.SamlTokenImpl.validateSignature(SamlTokenImpl.java:522) ~[client-5.1.0.jar:na]
... 99 common frames omitted
Caused by: javax.xml.crypto.URIReferenceException: com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID _530718a3-9837-4eca-a1b5-6eac7339f7d9
at org.jcp.xml.dsig.internal.dom.DOMURIDereferencer.dereference(DOMURIDereferencer.java:124) ~[na:1.7.0_45]
at org.jcp.xml.dsig.internal.dom.DOMReference.dereference(DOMReference.java:404) ~[na:1.7.0_45]
... 102 common frames omitted
Caused by: com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException: Cannot resolve element with ID _530718a3-9837-4eca-a1b5-6eac7339f7d9
at com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverFragment.engineResolve(ResolverFragment.java:90) ~[na:1.7.0_45]
at com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver.resolve(ResourceResolver.java:283) ~[na:1.7.0_45]
at org.jcp.xml.dsig.internal.dom.DOMURIDereferencer.dereference(DOMURIDereferencer.java:117) ~[na:1.7.0_45]
... 103 common frames omitted
Same thing occurs on early released of JDK 8 (will be released in march). Some info about nature of this error https://stackoverflow.com/questions/17331187/xml-dig-sig-error-after-upgrade-to-java7u25
Are there any plans to solve this in SDK?