sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Jarcec Cecho (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SQOOP-504) Windows bug: unable to load jar
Date Wed, 22 May 2013 06:33:21 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jarek Jarcec Cecho resolved SQOOP-504.
--------------------------------------

       Resolution: Duplicate
    Fix Version/s: no-release
    
> Windows bug: unable to load jar
> -------------------------------
>
>                 Key: SQOOP-504
>                 URL: https://issues.apache.org/jira/browse/SQOOP-504
>             Project: Sqoop
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4.2
>         Environment: Windows
>            Reporter: Alban Perillat-Merceroz
>            Assignee: Alban Perillat-Merceroz
>             Fix For: no-release
>
>         Attachments: SQOOP-504.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> A piece of code was unix specific for loading a jar.
> The attached file is the a for a generic implementation (works for windows too).
> Edit.
> The issue is: Sqoop generates a jar file containing the generated class corresponding
to the DB table to import.
> his code tries to load the jar in order to read the class, but the path "jar:file://"
+ new File(jarFile).getAbsolutePath() + "!/" seems not to be a valid windows path.
> So I simply replaced the file path
> From this:
> URL url = new URL("jar:file://" + new File(jarFile).getAbsolutePath() + "!/")
> to this:
> URL url = new File(jarFile).toURI().toURL();

--
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