Results 1 to 2 of 2
- 04-14-2011, 04:56 AM #1
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
java.io.FileNotFoundException: http://192.168.1.101:80/abc
Hello Friends Im using this program to identify files on web servers for that it should continually try random file names , but when it moves to a unavailable file or a file it gives a error saying file not found ,
is there anyway to continue that without having any errors ?
Java Code:private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { URL url = new URL("http://192.168.1.101:80/asd"); BufferedReader in = new BufferedReader (new InputStreamReader(url.openStream())); String htmlText; while ((htmlText = in.readLine()) != null) { System.out.println(htmlText); } in.close(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
- 04-14-2011, 05:04 AM #2
Similar Threads
-
java.io.FileNotFoundException: ..\log\server.log (Access is denied.
By parimal in forum Advanced JavaReplies: 22Last Post: 04-09-2011, 04:59 AM -
Exception in thread "main" java.io.FileNotFoundException: reverse.dat (No such file o
By erin.ctm in forum New To JavaReplies: 4Last Post: 11-05-2010, 11:50 PM -
java.io.FileNotFoundException: (No such file or directory)
By sudukrish in forum Advanced JavaReplies: 1Last Post: 04-01-2009, 07:34 PM -
Getting FileNotFoundException in my java program after running for some time
By satya_vanimireddy in forum New To JavaReplies: 1Last Post: 01-12-2009, 08:59 AM -
java.io.FileNotFoundException
By thevoice in forum New To JavaReplies: 5Last Post: 06-13-2008, 08:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks