Apache Maven 3.3.9 Maven home: /usr/share/maven Java version: 1.7.0_95, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-62-generic", arch: "amd64", family: "unix"
Distro is Ubuntu 16.04.2 LTS On Wed, Jul 19, 2017 at 2:32 PM, Andras Piros <andras.pi...@cloudera.com> wrote: > Hi Stanislavs, > > what is the OS / JDK version you're trying with? > > For me, mvn clean test succeeds from minitest folder: > > > > > ------------------------------------------------------- > > T E S T S > > ------------------------------------------------------- > > Java HotSpot(TM) 64-Bit Server VM warning: ignoring option > > MaxPermSize=512m; support was removed in 8.0 > > Concurrency config is parallel='classes', perCoreThreadCount=false, > > threadCount=1, useUnlimitedThreads=false > > objc[66917]: Class JavaLaunchHelper is implemented in both > > /Library/Java/JavaVirtualMachines/jdk1.8.0_ > 102.jdk/Contents/Home/jre/bin/java > > (0x10855d4c0) and > > /Library/Java/JavaVirtualMachines/jdk1.8.0_ > 102.jdk/Contents/Home/jre/lib/libinstrument.dylib > > (0x1208664e0). One of the two will be used. Which one is undefined. > > Running org.apache.oozie.test.TestParallelJPAOperationRetries > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 22.583 > sec > > Running org.apache.oozie.test.TestWorkflow > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.711 > sec > > Running org.apache.oozie.test.TestWorkflowRetries > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.895 > sec > > Results : > > Tests run: 7, Failures: 0, Errors: 0, Skipped: 0 > > I have Oracle JDK 1.8.0_102 and Mac OS X current version. > > Regards, > > Andras > > On Wed, Jul 19, 2017 at 12:55 PM, Staņislavs Rogozins < > stanislavs.rogoz...@gmail.com> wrote: > > > I'm trying to follow the instructions here to setup testing environment > for > > Oozie: https://oozie.apache.org/docs/4.3.0/ENG_MiniOozie.html > > > > When I run `mvn clean test`, the test phase fails. I found the following > > error in target/surefire-reports/org.apache.oozie.test.WorkflowTest.txt: > > > > > > > > Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 24.68 > sec > > > <<< FAILURE! > > > testWorkflowRun(org.apache.oozie.test.WorkflowTest) Time elapsed: > 0.156 > > > sec <<< ERROR! > > > java.lang.ExceptionInInitializerError > > > at org.apache.oozie.service.Services.<init>(Services.java:114) > > > at > > > org.apache.oozie.test.XTestCase.cleanUpDBTables(XTestCase.java:804) > > > at org.apache.oozie.test.XTestCase.setUp(XTestCase.java:431) > > > at org.apache.oozie.test.XTestCase.setUp(XTestCase.java:280) > > > at org.apache.oozie.test.XFsTestCase.setUp(XFsTestCase. > java:61) > > > at > > > org.apache.oozie.test.MiniOozieTestCase.setUp( > MiniOozieTestCase.java:61) > > > at org.apache.oozie.test.WorkflowTest.setUp( > > WorkflowTest.java:46) > > > at junit.framework.TestCase.runBare(TestCase.java:132) > > > at junit.framework.TestResult$1.protect(TestResult.java:110) > > > at junit.framework.TestResult.runProtected(TestResult.java: > 128) > > > at junit.framework.TestResult.run(TestResult.java:113) > > > at junit.framework.TestCase.run(TestCase.java:124) > > > at junit.framework.TestSuite.runTest(TestSuite.java:243) > > > at junit.framework.TestSuite.run(TestSuite.java:238) > > > at > > > org.junit.internal.runners.JUnit38ClassRunner.run( > > JUnit38ClassRunner.java:83) > > > at org.junit.runners.Suite.runChild(Suite.java:128) > > > at org.junit.runners.Suite.runChild(Suite.java:24) > > > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) > > > at > > > java.util.concurrent.Executors$RunnableAdapter. > call(Executors.java:471) > > > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > > > at > > > java.util.concurrent.ThreadPoolExecutor.runWorker( > > ThreadPoolExecutor.java:1145) > > > at > > > java.util.concurrent.ThreadPoolExecutor$Worker.run( > > ThreadPoolExecutor.java:615) > > > at java.lang.Thread.run(Thread.java:745) > > > Caused by: java.lang.IllegalArgumentException: Invalid TimeZone: UTC > > > at org.apache.oozie.util.DateUtils.getTimeZone( > > DateUtils.java:146) > > > at org.apache.oozie.util.DateUtils.<clinit>(DateUtils.java:44) > > > ... 23 more > > > testWorkflowRunFromFile(org.apache.oozie.test.WorkflowTest) Time > > elapsed: > > > 0.001 sec <<< ERROR! > > > java.lang.NoClassDefFoundError: Could not initialize class > > > org.apache.oozie.util.DateUtils > > > at org.apache.oozie.service.Services.<init>(Services.java:114) > > > at > > > org.apache.oozie.test.XTestCase.cleanUpDBTables(XTestCase.java:804) > > > at org.apache.oozie.test.XTestCase.setUp(XTestCase.java:431) > > > at org.apache.oozie.test.XTestCase.setUp(XTestCase.java:280) > > > at org.apache.oozie.test.XFsTestCase.setUp(XFsTestCase. > java:61) > > > at > > > org.apache.oozie.test.MiniOozieTestCase.setUp( > MiniOozieTestCase.java:61) > > > at org.apache.oozie.test.WorkflowTest.setUp( > > WorkflowTest.java:46) > > > at junit.framework.TestCase.runBare(TestCase.java:132) > > > at junit.framework.TestResult$1.protect(TestResult.java:110) > > > at junit.framework.TestResult.runProtected(TestResult.java: > 128) > > > at junit.framework.TestResult.run(TestResult.java:113) > > > at junit.framework.TestCase.run(TestCase.java:124) > > > at junit.framework.TestSuite.runTest(TestSuite.java:243) > > > at junit.framework.TestSuite.run(TestSuite.java:238) > > > at > > > org.junit.internal.runners.JUnit38ClassRunner.run( > > JUnit38ClassRunner.java:83) > > > at org.junit.runners.Suite.runChild(Suite.java:128) > > > at org.junit.runners.Suite.runChild(Suite.java:24) > > > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) > > > at > > > java.util.concurrent.Executors$RunnableAdapter. > call(Executors.java:471) > > > at java.util.concurrent.FutureTask.run(FutureTask.java:262) > > > at > > > java.util.concurrent.ThreadPoolExecutor.runWorker( > > ThreadPoolExecutor.java:1145) > > > at > > > java.util.concurrent.ThreadPoolExecutor$Worker.run( > > ThreadPoolExecutor.java:615) > > > at java.lang.Thread.run(Thread.java:745) > > > > > > This looks very puzzling to me. From my understanding of the code, > > DateUtils has always been calling DateUtils.getTimeZone("UTC"), but isn't > > that an illegal value? How has this code ever worked? ( > > https://github.com/apache/oozie/blob/eb168360c550943828d9fe2c7bfdcd > > 4f5e830003/core/src/main/java/org/apache/oozie/util/DateUtils.java#L44 > > ) > > >