hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Nauroth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-8961) GenericOptionsParser URI parsing failure on Windows
Date Mon, 22 Oct 2012 19:30:14 GMT

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

Chris Nauroth commented on HADOOP-8961:
---------------------------------------

{code}
testFilesOption(org.apache.hadoop.util.TestGenericOptionsParser)  Time elapsed: 328 sec  <<<
ERROR!
java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in opaque
part at index 2: C:\hdc\hadoop-common-project\hadoop-common\target\test\data\generic\tmpfile
	at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:380)
	at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:294)
	at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:422)
	at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:168)
	at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:151)
	at org.apache.hadoop.util.TestGenericOptionsParser.testFilesOption(TestGenericOptionsParser.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\hdc\hadoop-common-project\hadoop-common\target\test\data\generic\tmpfile
	at java.net.URI$Parser.fail(URI.java:2810)
	at java.net.URI$Parser.checkChars(URI.java:2983)
	at java.net.URI$Parser.parse(URI.java:3020)
	at java.net.URI.<init>(URI.java:577)
	at org.apache.hadoop.util.GenericOptionsParser.validateFiles(GenericOptionsParser.java:378)
	... 30 more
{code}

                
> GenericOptionsParser URI parsing failure on Windows
> ---------------------------------------------------
>
>                 Key: HADOOP-8961
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8961
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>    Affects Versions: trunk-win
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>
> This appears to be a mishandling of a path that starts with a drive specification on
Windows.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message