Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3190

Test cases in TestGraphGenerator.java of oozie-core fail with a NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • 5.0.0b1
    • None
    • core
    • uname -a
      Linux pts00607-vm1 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:05:18 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux

    Description

      The test cases testSimpleGraphPng and testSimpleGraphSvg under TestGraphGenerator.java fail with java.lang.NullPointerException.
      Maven command used for testSimpleGraphPng is mvn -Dtest=TestGraphGenerator#testSimpleGraphPng test.

      [INFO] Running org.apache.oozie.util.graph.TestGraphGenerator
      [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 24.229 s <<< FAILURE! - in org.apache.oozie.util.graph.TestGraphGenerator
      [ERROR] testSimpleGraphPng(org.apache.oozie.util.graph.TestGraphGenerator) Time elapsed: 24.229 s <<< FAILURE!
      java.lang.AssertionError: Render and write PNG failed for graph-workflow-simple.xml: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      at org.apache.oozie.util.graph.TestGraphGenerator.generateAndAssertPng(TestGraphGenerator.java:96)
      at org.apache.oozie.util.graph.TestGraphGenerator.testSimpleGraphPng(TestGraphGenerator.java:64)
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Failures:
      [ERROR] TestGraphGenerator.testSimpleGraphPng:64->generateAndAssertPng:96 Render and write PNG failed for graph-workflow-simple.xml: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      

      Maven command used for testSimpleGraphSvg is mvn -Dtest=TestGraphGenerator#testSimpleGraphSvg test.

      [INFO] Running org.apache.oozie.util.graph.TestGraphGenerator
      [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 24.113 s <<< FAILURE! - in org.apache.oozie.util.graph.TestGraphGenerator
      [ERROR] testSimpleGraphSvg(org.apache.oozie.util.graph.TestGraphGenerator) Time elapsed: 24.113 s <<< FAILURE!
      java.lang.AssertionError: Render and write SVG failed: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      at org.apache.oozie.util.graph.TestGraphGenerator.testSimpleGraphSvg(TestGraphGenerator.java:144)
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Failures:
      [ERROR] TestGraphGenerator.testSimpleGraphSvg:144 Render and write SVG failed: java.util.concurrent.ExecutionException: java.lang.NullPointerException
      

      Have observed that the test cases use the values from the enum OutputFormat which contains 3 constants : PNG, DOT & SVG
      The test cases using OutputFormat.DOT have passed whereas the once which have used the other two constants i.e PNG and SVG , fail on ppc64le arch.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alishap Alisha Prabhu
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: