Results 1 to 2 of 2
- 08-05-2007, 04:23 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
Help with "new URL (getDocumentBase(),MyFileName);"
Hi, Take a look at the following code:
I have put a break point at the first line (url=new...). I have noticed that at execution time an exception occurs "Something is wrong"-->message.Java Code:try{ url=new URL ("http://www.ora.com/images/logo.jpg"); InputStream in = null; in=url.openStream(); BufferedReader bf = null; bf=new BufferedReader(new java.io.InputStreamReader(in)); theString=bf.readLine(); }catch(Exception e){ System.out.println("Something is wrong"); }
What is wrong with it?
I have also tried the
But still no effects.Java Code:url=new URL (getDocumentBase(),MyFileName);
Thanks.
- 08-07-2007, 07:50 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 35
- Rep Power
- 0
Similar Threads
-
Hwlp with "Open", "Save", "Save as..."
By trill in forum New To JavaReplies: 3Last Post: 11-02-2010, 09:26 AM -
failure at Class.forName("oracle.jdbc.driver.OracleDriver");
By RonNYC in forum EclipseReplies: 1Last Post: 03-14-2008, 02:51 PM -
Exception in thread "main" java.net.ConnectException: Connection timed out
By osval in forum Advanced JavaReplies: 1Last Post: 07-27-2007, 10:59 PM -
Error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
By romina in forum New To JavaReplies: 1Last Post: 07-25-2007, 10:55 PM -
ArrayList: Exception in thread "main" java.lang.NullPointerException
By susan in forum New To JavaReplies: 1Last Post: 07-16-2007, 06:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks