Questions tagged [ioexception]

IOException is the general class of exceptions produced by failed or interrupted input/output operations in several languages, including Java and C#.

IOException is the general class of exceptions produced by failed or interrupted Input/Output operations in several languages, including Java and C# and other .NET languages.

1451 questions
-1
votes
1 answer

A required privilege is not held by the client. error in vb project

my program wrote in vb.net. in run time,give me "IO Exception was caught" please help me.
Sahar Kiyan
  • 67
  • 2
  • 14
-1
votes
1 answer

Unreported IOException? What is wrong with this code?

I am working on some code for homework and for the life of me can't figure out why this won't run. It ran until I added in the methods for file reading, which I know worked in another program. I took the code directly from some of my other work. So,…
Tom
  • 141
  • 1
  • 10
-2
votes
1 answer

Java.io.IO.Exception; there is not enough space on the disk while running J2ME application

I am getting following Error "Java.io.IO.Exception; there is not enough space on the disk" while running my J2ME Application can any body Please tell me what type of the Error is this and why it is coming. This error is coming when I am uploading…
mayur rahatekar
  • 4,410
  • 12
  • 37
  • 51
-2
votes
1 answer

IOException problem with file loading - Java /

How can i fix problem with load ArrayList from file? Full code is on the git: project github link When I load data from file I'll get it back -> IOException I'm learning to use the stream so I'm writing it to a file. After the end of the program, I…
-2
votes
1 answer

Can someone tell me why am I getting java.lang.ArrayIndexOutOfBoundsException error in my code?

I am working on a Java program to iterate through two arrays and compare the first one to the second for any matches. It should return all the numbers/strings that DON'T MATCH as an array list. I am done, but I am not sure why I am getting an…
Janu
  • 13
  • 1
  • 3
-2
votes
1 answer

ObjectInputStream gives IOException when readObject() is called

I'm trying to copy a file with .dat extension from a certain directory decided by the user into the project directory. When I try to read the saved object selected by the user, the program always gives IOException. File f = new…
Freder
  • 51
  • 1
  • 5
-2
votes
2 answers

Java is giving me an error of "java.io.ioexception is never thrown in body of corresponding try statement"

So I am making a program that renders pictures from .ppm files. I have got another version working but have now moved on to the other part which is reading multiple images from the same document and to basically use this to animate it with a small…
DrSaac
  • 1
  • 1
-2
votes
1 answer

java File.createNewFile throws IOException before rest of program is executed occasionally

I have this project that I'm doing and for whatever reason, whenever I execute the program and put in the given arguments required for it (that I set and all) and occasionally an IOException is thrown before anything else is executed. It seems to be…
Alex Couch
  • 71
  • 8
-2
votes
1 answer

IOExpectation use

import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class OpenTest { public static void main(String args[]){ int ln = 0; try { BufferedReader in = new BufferedReader (new…
-2
votes
2 answers

jsoup java.net.UnknownHostException while trying Jsoup.connect(''any url'')

Im trying to run this piece of code String test; Document doc= null; try { doc = Jsoup.connect("http:\\thatsthefinger.com\\").get(); test=doc.title(); } catch…
PoomaniGP
  • 80
  • 1
  • 1
  • 11
-2
votes
2 answers

Jumping to another class using a JButton

I have the below code where I made a simple GUI. I would like Button2 to navigate to class 'Project2', which should start another piece of code. Just to note, in its current state, 'Project2' has no GUI, though I intend to add one soon. Anyway, this…
LMB
  • 3
  • 1
  • 3
-2
votes
2 answers

IOException error when compiling

I get an IOException error when trying to compile this code: public class TextEditor extends JDialog implements ActionListener { public TextEditor (File fich,Frame owner) throws IOException{ super(owner,true); fichier=fich; String…
Carlos
  • 109
  • 5
-2
votes
2 answers

Android IOException error message interpretation

I keep getting an IOException and I don't understand what it means. Code (pseudo): File file = new File("/filepath/"); fos = new FileOutputStream(file); String str = String.format("0"); fos.write(str.getBytes()); fos.close(); Error: W/System.err(…
user4326368
-2
votes
2 answers

why BufferedReader class producing Exception at compile time not at the run time

I know Exceptions are occurs at run time not at the time of compilation. so this code compiles successfully without any compile time Exception of type java.lang.ArithmeticException: / by zero but give an exception only at the run time class…
g1ji
  • 1,099
  • 1
  • 10
  • 21
-2
votes
2 answers

Why is there no catch?

Im trying to delete TXT-files, but I always get the same error message. It's nearly the same code as the one I found on the Internet. for (int i = 0; i < datei.length; i++) { try …
Moritz H.
  • 3
  • 1