You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/05/05 21:03:26 UTC

DO NOT REPLY [Bug 28791] New: - java.lang.IllegalAccessError is thrown when trying MS FTP.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28791>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28791

java.lang.IllegalAccessError is thrown when trying MS FTP.

           Summary: java.lang.IllegalAccessError is thrown when trying MS
                    FTP.
           Product: Commons
           Version: 1.2 Final
          Platform: All
               URL: http://http://
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: raghu.changlaveedu@bt.com


java.lang.IllegalAccessError: try to access method 
java.util.Calendar.getTimeInMillis()J from class 
org.apache.commons.net.ftp.parser.NTFTPEntryParser

I am using JDK 1.3.1_09. This error is thrown because 
java.util.Calendar.getTimeMillis() method has protected access till JDK 1.3.x.
This has been changed to public from JDK 1.4.x. 

I got this error when I tried to use the ftp task, to ftp to a MS/NT machine.
I had commons-net-1.2.0.jar in my ant/lib directory. 

Got this problem solved when I installed JDK 1.4.2v, and had the ftp task 
running perfectly fine.

Thanks & Regards
Raghu.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org