All Questions

101
votes
3answers
230876 views

IOException: The process cannot access the file 'file path' because it is being used by another process

I have some code and when it executes, it throws a IOException, saying that The process cannot access the file 'filename' because it is being used by another process What does this mean, and...
25
votes
4answers
117799 views

Why do I get the "Unhandled exception type IOException"?

I have the following simple code: import java.io.*; class IO { public static void main(String[] args) { BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in)); ...
51
votes
4answers
39631 views

java.io.IOException: mark/reset not supported

try { //String location = dir1.getCanonicalPath()+"\\app_yamb_test1\\mySound.au"; //displayMessage(location); AudioInputStream audio2 = AudioSystem.getAudioInputStream(getClass().getResour...
20
votes
4answers
29255 views

java.io.IOException : No authentication challenges found

I am newbie to android and this is my first project on android. I am struggling with "authentication" problem for more than a day. I tried several options but none of them worked. Basically, I want ...
34
votes
8answers
38511 views

Hadoop java.io.IOException: Mkdirs failed to create /some/path

When I try to run my Job I am getting the following exception: Exception in thread "main" java.io.IOException: Mkdirs failed to create /some/path at org.apache.hadoop.util.RunJar.ensureDirectory(...
59
votes
5answers
15954 views

How to check if IOException is Not-Enough-Disk-Space-Exception type?

How can I check if IOException is a "Not enough disk space" exception type? At the moment I check to see if the message matches something like "Not enough disk space", but I know that this won't work...
37
votes
8answers
153653 views

Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host

I have a server app and sometimes, when the client tries to connect, I get the following error: NOTE: the "couldn't get stream from client or login failed" is a text that's added by me in catch st...
28
votes
4answers
45720 views

MediaPlayer.setDataSource causes IOException for valid file

This code used to work. Then, maybe I changed something, somewhere (or if I know Android right, an update introduced a bug in the media player). It stopped working on some devices! Especially my Nexus...
27
votes
6answers
8291 views

Does close ever throw an IOException?

After providing some answers here, and reading some comments, it would seem that, in practice IOException is never thrown on close for file I/O. Are there any cases in which calling close on a Stream...
18
votes
3answers
68878 views

Java - What throws an IOException

java.io.IOException seems to be the most common type of exception, coincidentally, it seems to also be the most ambiguous. I keep seeing the throws IOException whenever writing with sockets, files, &...

Previous Next