This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URL in 1.4 vs 1.3  RSS feed

 
Shane Roylance
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this code:
try {
prefs.load(getUserURL().openStream());
} catch (Exception e) {
e.printStackTrace();
}
Where getUserURL() will return a URL that looks something like this: ftp://user:password@host///path/filename
Using java 1.3 this works fine. With 1.4 it seems to run fine, but I keep getting a FileNotFound exception. The only difference in the execution is the version of java I am using. Any clues as to what could be wrong?
[ January 04, 2002: Message edited by: Shane Roylance ]
[ January 04, 2002: Message edited by: Shane Roylance ]
[ January 04, 2002: Message edited by: Shane Roylance ]
 
Shane Roylance
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never figured out why the URL.getInputStream() isn't working properly, but I did fix my problem by getting an ftp connection the getting the input stream from my ftp connection. In case you wanted to know.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!