Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
io-exception
- Page 1
IO EXCEPTION
Programming
Software Development
12 Years Ago
by amin.sohal
… when I try to debuge or execute in netbeans "
IO
EXCEPTION
WHILE READING: Localhost". Project is successfully build. I make…
Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by codechrysalis
… displaying the zip code. I seem to have a
IO
exception
error for the console.clear() line. Is there anything….Length; } // end of if loop } // end of for loop //
IO
exception
unhandled Console.Clear(); if (isItThere == true) Console.WriteLine("Zip…
Re: Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by gokul
…got the error message... "
IO
Exception
Error for Creating Socket".. …quot;); } catch (IOException ex){ error("
IO
error creating socket"); } try{ inStream …()); }catch (IOException ex){ error("
IO
error getting streams"); } System.out…
Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by gokul
Hi, I am developing small chatting application... when i try to run the application, it throws the
IO
Exception
while creating sockets.. How to resolve resolve the this one..? please help me.. i attached the code for your view...
Re: IO EXCEPTION
Programming
Software Development
12 Years Ago
by rubberman
Well, you aren't posting the stack trace, nor the related code. Without that, helping you is not possible.
Io Error's On Writing an Arraylist to file
Programming
Software Development
15 Years Ago
by Dizzzy
… } catch (IOException e) { System.out.println("
IO
Exception
"); } } /** reads all requests from the specified… } catch (IOException e) { System.out.println("
IO
Exception
"); } catch (ClassNotFoundException e) { System.out.println…
Re: Io Error's On Writing an Arraylist to file
Programming
Software Development
15 Years Ago
by Dizzzy
Hmmmm i created the The Arraylist<String> list and exported it and it worked fine then i tried again with the ArrayList<Request> allRequests and it didnt work, Same
Io
Exception
. The Request Class implements Serializable and so does the SerializableWriter Class i am using to write the .dat file.
Exception in thread "main" java.lang.NoClassDefFoundError: java/io/Console
Programming
Software Development
14 Years Ago
by sonamsinha23
Hi i am getting this error even after i have done import java.
io
.*;
Exception
in thread "main" java.lang.NoClassDefFoundError: java/
io
/Console at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:127) Does anyone have any solution to this problem
Re: IO Exception/Null
Programming
Software Development
18 Years Ago
by mzd12111
Beacuse I/O handling Throws
Exception
, and java cannot handle these kind of Exceptions automatically , as … a try block and catch
Exception
, it means : try { ..... ..... ..... } catch (
Exception
e){ ..... what you want when an
exception
Occur ..... } notice that Catch block…
Getting a null pointer exception when saving image to file.
Programming
Software Development
16 Years Ago
by VernonDozier
… execute. Any ideas on what could cause the
exception
? Thanks. [code=JAVA] package ColorForms; import javax…} catch (IOException ex) { System.out.print ("Caught an
IO
exception
- "); System.out.println (ex.toString()); } catch (NullPointerException…
Re: Io Error's On Writing an Arraylist to file
Programming
Software Development
15 Years Ago
by BestJewSinceJC
…import java.
io
.FileInputStream; import java.
io
.FileOutputStream; import java.
io
.IOException; import java.
io
.ObjectInputStream; import java.
io
.ObjectOutputStream; import java.
io
.Serializable; import… oos = new ObjectOutputStream (fileOut); oos.writeObject (list); }catch(
Exception
e){ System.out.println("Stuff went wrong! NOOOOOO!!!"…
Re: Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by thines01
I ran this and did not get an error. I would suggest a serious restructuring of the code, however. If you're allowed or accustomed, I would recommend the use of a Dictionary<string, double> to allow quick lookups without all of the looping. [CODE] var map_s2dZipCharges = new Dictionary<string,double> {…
Re: Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by codechrysalis
thanks it pointed me in the right direction I have modified the code a bit with some that you posted but I keep getting this annoying problem of unassigned local variable, if I declare a memory location then i get a parent meaning has been defined in the scope and would give a different meaning...Im stuck.. for lines 81-85 [CODE]using System; …
Re: Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by thines01
Right, you have not yet gotten the user response INTO the usrSelection variable, so it is uninitialized when you attempt to compare it to the dictionary keys. After that, you still have in a lot of code that will be unused.
Re: Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by codechrysalis
ok tweaked it a bit more: I now need to adjust something at line 57 where the console will grab the dictionary method value..If i put "null" (totally wrong to do) it displays line 59 nevertheless.. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PackageDelivery { …
Re: Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by thines01
Either remove "usr" or "input". Which ever one is left use that to receive the value from the Console.ReadLine(). Remove the Test() method. Remove the zipCode array. Remove the charges array. Put the dictionary inside Main and remove the DisplayCharges() method.
Re: Display output charges , IO exception errors
Programming
Software Development
13 Years Ago
by skatamatic
This thread is getting a bit painful to follow. You are making your program WAY overcomplicated for what it is doing. If this is for homework, please try to understand the following code before rather than just copy it and hand it in. [code] static Dictionary<string, double> _ZipsAndCharges = new Dictionary<string, double>…
Re: Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by server_crash
That means it couldn't find the destination. I noticed you are using command line args. Do you know how to get those? It won't run unless you have an argument to the right destination.
Re: Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by gokul
Hai Server_crash, What is the another way to obtain that..? give me a solution...
Re: Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by server_crash
Another way would be using a bufferedreader to get input from the user. But why not jut compile with the correct arguments? You know how to do that right? javac ProgramName.java java ProgramName argument1
Re: Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by Sauce
Ok so its 9 am...and still no sleep so i wont go thru all this code but just a quick little two cents worth. Its a chat program, the way i normally do these (and there might be others) is to use 2 ports (send / receive) and multiple threads. 1 thread for gui, 1 thread for functionality, and 1 thread for a "ConnectionListener". The …
Re: Chatting Program - Throws IO Exception
Programming
Software Development
19 Years Ago
by freesoft_2000
Hi everyone, Your error is due to the fact that you have no server. Read up on sockets and serversockets to improve your skills Richard West
Re: Chatting Program - Throws IO Exception
Programming
Software Development
17 Years Ago
by lijumon
Can any one help me with a solution to use porttalk.sys to communicate with parallel port Thank You
Re: Chatting Program - Throws IO Exception
Programming
Software Development
17 Years Ago
by Phaelax
lijumon, make your own thread and do not attempt to hijack other threads. gokul, what is "aik6 - my system name"? It might know how to connect to 'localhost' or an IP address, but unless your home network is setup to recognize aik6 in that manner it probably won't know what the heck that address is.
Re: Chatting Program - Throws IO Exception
Programming
Software Development
16 Years Ago
by andrew13d
hey all, I was also thinking about a chatting application. However I am kinda new to programming. Would someone pliz guide me on how to go about it using C++ or C#(i've gone through the basics of C++). Can the chatting "operation" be achieved by scripting also?
Re: Chatting Program - Throws IO Exception
Programming
Software Development
16 Years Ago
by Ezzaral
Well, you are off to a good start by choosing to hijack an old thread in the [B]Java[/B] forum to ask someone to walk you through it. Post your question in the C++ or C# forum and don't be surprised if you get very general answers to such a general question.
Re: Chatting Program - Throws IO Exception
Programming
Software Development
16 Years Ago
by andrew13d
Thanks. I will try that but about the question being so general I don't really know how specific I can make it, but I will try anyway.
Re: Chatting Program - Throws IO Exception
Programming
Software Development
16 Years Ago
by peter_budo
[QUOTE=andrew13d;652256]hey all, I was also thinking about a chatting application. However I am kinda new to programming. Would someone pliz guide me on how to go about it using C++ or C#(i've gone through the basics of C++). Can the chatting "operation" be achieved by scripting also?[/QUOTE] If you want to do chat application in C++ …
Re: Chatting Program - Throws IO Exception
Programming
Software Development
15 Years Ago
by debjit.samsung
Please tell me about "throws IOException" in java
Exception Details: System.IO.DirectoryNotFoundException:
Programming
Web Development
14 Years Ago
by ShaggyDogg
… the error and where it originated in the code.
Exception
Details: System.
IO
.DirectoryNotFoundException: Could not find a part of the path… 'Z:\Data\AQVD_ReadReport20101108020000.txt'. Source Error: An unhandled
exception
was generated…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC