[ https://issues.apache.org/jira/browse/OOZIE-2497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
abhishek bafna reassigned OOZIE-2497: ------------------------------------- Assignee: abhishek bafna > Testcase fails on windows with hard coded URIs > ---------------------------------------------- > > Key: OOZIE-2497 > URL: https://issues.apache.org/jira/browse/OOZIE-2497 > Project: Oozie > Issue Type: Bug > Components: tests > Environment: Windows > Reporter: abhishek bafna > Assignee: abhishek bafna > Labels: patch > Attachments: OOZIE-2497-01.patch > > > Some of the test cases have hard coded file URIs like "file://" which makes > them to fail in the windows environment. > testcase: > {noformat} > org.apache.oozie.command.coord.TestCoordSubmitXCommand#testELdataIO_xsd_4 > org.apache.oozie.action.hadoop.TestMapReduceActionExecutor#testConfigDefaultPropsToAction > org.apache.oozie.command.wf.TestSignalXCommand#testJoinFail > {noformat} > Exception message > {noformat} > --------------------testELdataIO_xsd_4-------------------------------- > java.net.URISyntaxException: Illegal character in authority at index 7: > file://D:\w\oozie\core\target\test-data\oozietests\org.apache.oozie.command.coord.TestCoordSubmitXCommand\testELdataIO_xsd_4\coordinator.xml > at java.net.URI$Parser.fail(URI.java:2827) > at java.net.URI$Parser.parseAuthority(URI.java:3165) > at java.net.URI$Parser.parseHierarchical(URI.java:3076) > at java.net.URI$Parser.parse(URI.java:3032) > at java.net.URI.<init>(URI.java:595) > at > org.apache.oozie.command.coord.TestCoordSubmitXCommand.testELdataIO_xsd_4(TestCoordSubmitXCommand.java:576) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > 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$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > --------------------testConfigDefaultPropsToAction-------------------------------- > org.apache.oozie.command.CommandException: E0803: IO error, Illegal character > in authority at index 7: > file://D:\w\oozie\sharelib\streaming\target\test-data\oozietests\org.apache.oozie.action.hadoop.TestMapReduceActionExecutor\testConfigDefaultPropsToAction\workflow.xml > at > org.apache.oozie.command.wf.SubmitXCommand.execute(SubmitXCommand.java:278) > at > org.apache.oozie.command.wf.SubmitXCommand.execute(SubmitXCommand.java:76) > at org.apache.oozie.command.XCommand.call(XCommand.java:286) > at > org.apache.oozie.action.hadoop.TestMapReduceActionExecutor.testConfigDefaultPropsToAction(TestMapReduceActionExecutor.java:139) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > 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$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > -------------------testJoinFail--------------------------------- > org.apache.oozie.DagEngineException: E0803: IO error, Illegal character in > path at index 73: > hdfs://127.0.0.1:58103/user/test/dbb3e60c-3f0a-44dc-9e4d-6ae40ffc4cc1/app\workflow.xml > at org.apache.oozie.DagEngine.submitJob(DagEngine.java:122) > at > org.apache.oozie.command.wf.TestSignalXCommand.testJoinFail(TestSignalXCommand.java:87) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > 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$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) > Caused by: org.apache.oozie.command.CommandException: E0803: IO error, > Illegal character in path at index 73: > hdfs://127.0.0.1:58103/user/test/dbb3e60c-3f0a-44dc-9e4d-6ae40ffc4cc1/app\workflow.xml > at > org.apache.oozie.command.wf.SubmitXCommand.execute(SubmitXCommand.java:278) > at > org.apache.oozie.command.wf.SubmitXCommand.execute(SubmitXCommand.java:76) > at org.apache.oozie.command.XCommand.call(XCommand.java:286) > at org.apache.oozie.DagEngine.submitJob(DagEngine.java:115) > ... 23 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)