[jdom-interest] jdk1.4 and SAXBuilder throwing FtpLoginException

Elliotte Rusty Harold elharo at metalab.unc.edu
Sun Apr 6 09:41:55 PDT 2003


At 9:37 AM -0500 4/4/03, Jones, Scott wrote:

>  With jdk1.4.1 I am getting an exception. The application is running 
>in a J2EE container(oc4j) and uses 
>context.getResource("/xml/column.xml") to get the url. This resolves 
>the url to file://c:/apphome/xml/column.xml (or something close to 
>that)  When I run in jdk1.3.1 it runs just fine but under 1.4.1 I 
>receive the following exception.
>sun.net.ftp.FtpLoginException: Not logged in
>         at sun.net.ftp.FtpClient.readReply(FtpClient.java:225)


Weird. Just guessing, but it looks like your Java 1.4 VM is 
interpreting the file protocol as an FTP URL rather than a local file 
URL. This is actually what the file URL used to be maybe ten years 
ago (forever in Internet time) so I'm a little surprised to see it 
popping up in Java 1.4. I suggest writing a program that doesn't use 
JDOM at all and attempts to load the same file URL as a stream and 
seeing if you get the same problem. If you can reproduce it on a 
simple test case it might be worth a bug report to Sun.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list