You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2014/04/15 22:40:16 UTC

[jira] [Resolved] (CXF-5686) Outbound XSD validation fails using javax.xml.ws.Provider

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

Daniel Kulp resolved CXF-5686.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.7.12
         Assignee: Daniel Kulp

> 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
>            Assignee: Daniel Kulp
>             Fix For: 2.7.12, 3.0.0
>
>         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, 2.7.10 and 2.7.11.
> 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)