Colm –
Doing that leads to another exception …
Caused by: javax.xml.stream.XMLStreamException: Trying to write END_DOCUMENT
when document has no root (ie. trying to output empty document).
at
com.ctc.wstx.sw.BaseStreamWriter.throwOutputError(BaseStreamWriter.java:1537)
at
com.ctc.wstx.sw.BaseStreamWriter.reportNwfStructure(BaseStreamWriter.java:1566)
at
com.ctc.wstx.sw.BaseStreamWriter._finishDocument(BaseStreamWriter.java:1392)
at
com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.java:532)
at
org.apache.cxf.interceptor.StaxOutEndingInterceptor.handleMessage(StaxOutEndingInterceptor.java:56)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at
org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570)
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)
at
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)
at
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:136)
... 33 more
I’m trying to figure out where exactly that got emitted from, it’s downstream
from the signature code somewhere, but I am sure it is related to that.
Thanx,
Stephen W. Chappell
From: Colm O hEigeartaigh [mailto:[email protected]]
Sent: Monday, November 24, 2014 11:41 AM
To: Chappell, Stephen CTR (FAA)
Cc: [email protected]
Subject: Re: org.apache.xml.security.utils.resolver.ResourceResolverException:
Cannot resolve element with ID
You'll need to do the exact same thing with the SAML Assertion DOM Element -
register it with the XML Security Crypto Context, via the WSSecurityUtil or
WSDocInfo methods.
Colm.