[
https://issues.apache.org/jira/browse/CXF-5686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13968261#comment-13968261
]
Eirik Bjorsnos commented on CXF-5686:
-------------------------------------
In CXF-4334, Freeman Fang mentions that I could re-attach that test-case with
"Grant Apache License" so that it could be included in the CXF code base.
I can't seem to find a switch like that in Jira now.
https://issues.apache.org/jira/browse/INFRA-4708 indicates that I should follow
"Manage attachments", but I can't seem to find anything related to license
grants there.
For stopping regressions and having a place to add more test cases related to
validation, I'd like to get both that test case and the test case attached to
this issue uploaded with any necessary grants applied.
> Outbound XSD validation fails using javax.xml.ws.Provider
> ---------------------------------------------------------
>
> Key: CXF-5686
> URL: https://issues.apache.org/jira/browse/CXF-5686
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.7.7, 2.7.8, 2.7.9, 2.7.10
> Reporter: Eirik Bjorsnos
> Attachments: CXF-5686-fault-validation.zip
>
>
> When an endpoint is published backed by a javax.xml.ws.Provider<Source> and
> Message.SCHEMA_VALIDATION_ENABLED is set to "BOTH", then returning a
> soap:Fault from that Provider will cause the exchange to fail with the
> following exception:
> {code}
> WARNING: Interceptor for
> {http://www.examples.com/wsdl/HelloService.wsdl}Hello_Service#{http://www.examples.com/wsdl/HelloService.wsdl}sayHello
> has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: Could not generate the XML stream caused
> by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
> element 'soap:Fault'..
> at
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:99)
> at
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:54)
> at
> org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:48)
> at
> org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:123)
> at
> org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
> {code}
> The following is observed:
> When the same soap:Fault is "returned" (thrown) from a Java SEI
> implementation, the issue does not reproduce.
> When SCHEMA_VALIDATION_ENABLED is set to "FALSE" or "IN", the issue does not
> reproduce.
> The issue is reproducible on 2.7.7, 2.7.8, 2.7.9 and 2.7.10.
> The issue is not reproducible on 2.7.6.
> I'll attach a simplified Maven test case for this issue.
--
This message was sent by Atlassian JIRA
(v6.2#6252)