You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Sonia Garudi (JIRA)" <ji...@apache.org> on 2018/03/19 12:17:00 UTC

[jira] [Commented] (FALCON-2332) Tests failing with java.lang.ClassCastException for unmarshal

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

Sonia Garudi commented on FALCON-2332:
--------------------------------------

I modified the OozieUtils.java to import com.sun.org.apache.xerces.internal.dom.ElementNSImpl instead of org.apache.xerces.dom.ElementNSImpl and the test case passed. However with this change the same tests fail on Ubuntu container with following error :
{code:java}
java.lang.ClassCastException: org.apache.xerces.dom.ElementNSImpl cannot be cast to com.sun.org.apache.xerces.internal.dom.ElementNSImpl{code}

> Tests failing with java.lang.ClassCastException for unmarshal
> -------------------------------------------------------------
>
>                 Key: FALCON-2332
>                 URL: https://issues.apache.org/jira/browse/FALCON-2332
>             Project: Falcon
>          Issue Type: Bug
>          Components: oozie
>    Affects Versions: trunk
>         Environment: $ cat /etc/redhat-release
> CentOS Linux release 7.2.1511 (AltArch)
> $ java -version
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (build 1.8.0_161-b14)
> OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
>            Reporter: Sonia Garudi
>            Priority: Major
>              Labels: ppc64le, x86
>
> Error message :
> {code:java}
> java.lang.ClassCastException: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to org.apache.xerces.dom.ElementNSImpl
> at org.apache.falcon.util.OozieUtils.unMarshalSparkAction(OozieUtils.java:138)
> {code}
> The following is the list of tests failing with the above error:
>  
> {code:java}
> Failed tests:
>  OozieProcessWorkflowBuilderTest.testHiveProcessMapper:283 ? ClassCast com.sun....
>  OozieProcessWorkflowBuilderTest.testHiveProcessMapper:283 ? ClassCast com.sun....
>  OozieProcessWorkflowBuilderTest.testHiveProcessMapperWithFSInputFeedAndTableOutputFeed:469 ? ClassCast
>  OozieProcessWorkflowBuilderTest.testHiveProcessMapperWithFSInputFeedAndTableOutputFeed:469 ? ClassCast
>  OozieProcessWorkflowBuilderTest.testHiveProcessMapperWithTableInputFeedAndFSOutputFeed:523 ? ClassCast
>  OozieProcessWorkflowBuilderTest.testHiveProcessMapperWithTableInputFeedAndFSOutputFeed:523 ? ClassCast
>  OozieProcessWorkflowBuilderTest.testHiveProcessWithNoInputsAndOutputs:573 ? ClassCast
>  OozieProcessWorkflowBuilderTest.testHiveProcessWithNoInputsAndOutputs:573 ? ClassCast
>  OozieProcessWorkflowBuilderTest.testSparkProcess:417 ? ClassCast com.sun.org.a...
>  OozieProcessWorkflowBuilderTest.testSparkSQLProcess:349 ? ClassCast com.sun.or...
>  
> {code}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)