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

Dongying Jiao commented on OOZIE-2746:
--------------------------------------

Hi:
I modified testValidateBundleNegative2 in the patch, but this case can pass in 
my envioriment.
I think the patch will not impact the other cases, patch 2 only add 
modification to testValidateBundleNegative2 compared to patch 1, as patch 1 
does't cause any test failure, so other cases failed doen't relate to the patch.

Thanks


> Several tests failure in TestV2ValidateServlet.java
> ---------------------------------------------------
>
>                 Key: OOZIE-2746
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2746
>             Project: Oozie
>          Issue Type: Test
>          Components: tests
>    Affects Versions: 4.2.0
>            Reporter: Dongying Jiao
>         Attachments: OOZIE-2746-1.patch, OOZIE-2746-2.patch
>
>
> I backport JIRA OOZIE-2159:'oozie validate' command should be moved 
> server-side in oozie 4.2.0 release, but has several UT failures in 
> TestV2ValidateServlet. For example:
> From UT output of TestV2ValidateServlet#testValidateBundle:
> error[E0701], E0701: XML schema error, bundle.xml, 
> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 115; cvc-elt.1: 
> Cannot find the declaration of element 'bundle-app'.
> org.apache.oozie.servlet.XServletException: E0701: XML schema error, 
> bundle.xml, org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 115; 
> cvc-elt.1: Cannot find the declaration of element 'bundle-app'.
> If I modify validate(String xml) function in V2ValidateServlet.java from :
> if (!e.getMessage().contains("cvc-elt.1.a"))
> { exception = e; break; }
> to:
> if (!e.getMessage().contains("cvc-elt.1"))
> { exception = e; break; }
> Then this UT can pass.
> I wonder what is the difference between exception message "cvc-elt.1" and 
> "cvc-elt.1.a".
> Why "cvc-elt.1" is generated from my environment instead of "cvc-elt.1.a"?
> Thanks very much.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to