You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2008/05/30 00:49:45 UTC

[jira] Created: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
----------------------------------------------------------------------------------

                 Key: HADOOP-3468
                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
             Project: Hadoop Core
          Issue Type: Bug
          Components: fs
            Reporter: Tsz Wo (Nicholas), SZE
            Priority: Blocker


    [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
    [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
    [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] import org.apache.commons.net.ftp.FTP;
    [javac]                                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600955#action_12600955 ] 

Doug Cutting commented on HADOOP-3468:
--------------------------------------

Are you using Java 1.5 or Java 1.6?  If this only happens with Java 1.5, is it time for HADOOP-2325?


> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Robert Chansler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Chansler updated HADOOP-3468:
------------------------------------

    Release Note: Compiled Mina jars under Java 1.5.  (was: Mina Jars compiled under Java 1.5)

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Ankur
>            Priority: Blocker
>             Fix For: 0.18.0
>
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Robert Chansler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Chansler updated HADOOP-3468:
------------------------------------

    Release Note:   (was: Compiled Mina jars under Java 1.5.)

Voted out of the release notes list.

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Ankur
>            Priority: Blocker
>             Fix For: 0.18.0
>
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3468:
---------------------------------

    Fix Version/s: 0.18.0

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Ankur
>            Priority: Blocker
>             Fix For: 0.18.0
>
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600957#action_12600957 ] 

Doug Cutting commented on HADOOP-3468:
--------------------------------------

In case it's not obvious, the simple fix for this is to revert HADOOP-3246 (r661473).

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Ankur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ankur updated HADOOP-3468:
--------------------------

    Release Note: Mina Jars compiled under Java 1.5
          Status: Patch Available  (was: Open)

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated HADOOP-3468:
---------------------------------

    Resolution: Fixed
      Assignee: Ankur
        Status: Resolved  (was: Patch Available)

I just committed this.  Thanks, Ankur!

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Ankur
>            Priority: Blocker
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601470#action_12601470 ] 

Hudson commented on HADOOP-3468:
--------------------------------

Integrated in Hadoop-trunk #509 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/509/])

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Ankur
>            Priority: Blocker
>             Fix For: 0.18.0
>
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Ankur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ankur updated HADOOP-3468:
--------------------------

    Attachment: FTPJars.tar.gz

Attaching new required Jar files created after compiling Mina FTP server jars with Java 1.5.
Verified that there are no compilation errors when compiling hadoop under Java 1.5 after replacing the required jars for HADOOP-3246 with the one attached here. I have also replaced the required jars in HADOOP-3246.

Sorry for the the compilation problems and inconvenience caused. 

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>         Attachments: FTPJars.tar.gz
>
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-3468) Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-3468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600961#action_12600961 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-3468:
------------------------------------------------

It seems that it requires Java 1.6.  Mine is 1.5.
{noformat}
bash-3.2$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode)
{noformat}

> Compile error: FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3468
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3468
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>            Priority: Blocker
>
>     [javac] Compiling 496 source files to d:\@sze\hadoop\latest\build\classes
>     [javac] d:\@sze\hadoop\latest\src\java\org\apache\hadoop\fs\ftp\FTPFileSystem.java:26: cannot access org.apache.commons.net.ftp.FTP
>     [javac] bad class file: d:\@sze\hadoop\latest\lib\commons-net-1.4.1.jar(org/apache/commons/net/ftp/FTP.class)
>     [javac] class file has wrong version 50.0, should be 49.0
>     [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
>     [javac] import org.apache.commons.net.ftp.FTP;
>     [javac]                                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.