[ 
https://issues.apache.org/jira/browse/CXF-5217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13743638#comment-13743638
 ] 

iris ding commented on CXF-5217:
--------------------------------

in org.apache.cxf.jaxb.JAXBEncoderDecoder.marshallException(Marshaller, 
Exception, MessagePartInfo, Object):
           if (sch != null) {
                if (!sch.isElementFormQualified()) {
                    namespace = null;
                }
            } else {
                LOG.warning("Schema associated with " + namespace + " is null");
            }
When we have not found related schema, we just issue a warning. But instead we 
need to set the namespace = null.

The proposed solution is:

            if (sch != null) {
                if (!sch.isElementFormQualified()) {
                    namespace = null;
                }
            } else {
                LOG.warning("Schema associated with " + namespace + " is null");
                namespace = null;
            }



                
> namespace should be null when we can not find related schema
> ------------------------------------------------------------
>
>                 Key: CXF-5217
>                 URL: https://issues.apache.org/jira/browse/CXF-5217
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.6.2, 2.7.6
>            Reporter: iris ding
>             Fix For: 2.7.6
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to