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
13
votes
4 answers

Is there a limit for the number of files in a directory on an SD card?

I have a project written for Android devices. It generates a large number of files, each day. These are all text files and images. The app uses a database to reference these files. The app is supposed to clear up these files after a little use…
jamesh
  • 19,863
  • 14
  • 56
  • 96
13
votes
1 answer

AuthenticateAsClient: System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream

Due to Heartbleed, our Gateway Server was updated and this problem presented itself. Due to POODLE, SSLv3 is no longer supported. Note, the problem is only present on Win7+ boxes; WinXP boxes work without issue (same code, different OS = problem);…
Bret
  • 2,283
  • 4
  • 20
  • 28
12
votes
2 answers

Jetty IOException: Too many open files

I'm running Jetty on a website doing around 100 requests/sec, with nginx in front. I just noticed in the logs, only a few minutes after doing a deploy and starting Jetty, that for a little while it was spamming: java.io.IOException: Too many open…
John Smith
  • 121
  • 1
  • 1
  • 3
12
votes
6 answers

Java: IOException when writing to a ByteArrayOutputStream?

Since ByteArrayOutputStream simply writes to memory, an IOException should never occur. However, because of the contract of the OutputStream interface, all stream operations define IOException in their throws clause. What is the correct way to…
Tony the Pony
  • 40,327
  • 71
  • 187
  • 281
12
votes
1 answer

IOException while requesting key: Invalid device key response

I'm using a Pi 3 with google IOT to operate some relays that control valves on an irrigation system. The system uses the internet to get a weather forecast to work how much water to use, and uses NanoHTTPD to provide a UI. It's running nicely, but…
pir8ped
  • 199
  • 1
  • 1
  • 8
12
votes
1 answer

.NET IO Exception "Invalid Signature"

Executing code in a web service: using (File.OpenRead(@"\\server\file.txt")) { // some stuff } Causing IO Exception that just says "Invalid Signature" I can't find anything through google about this error message when using File static…
Joel Reid
  • 143
  • 1
  • 11
12
votes
1 answer

java.io.IOException: Cannot run program "dir": CreateProcess error=2, Das System

Hello I try to run the following cmd code in eclipse: "DIR \""+DEV_HOME+"\\src\"\\*.java /b /s >> \""+DEV_HOME+"\\bin\\javaFiles.txt\"" In clear it looks like this: DIR "D:\Thomas\Dokumente\Daten\workspace\WBRLight\src"\*.java /b /s >>…
user2889693
  • 155
  • 1
  • 2
  • 10
12
votes
1 answer

PushbackInputStream: Push back buffer is full

Why I am getting the following exception: Exception in thread "main" java.io.IOException: Push back buffer is full at java.io.PushbackInputStream.unread(PushbackInputStream.java:232) at…
alien01
  • 1,334
  • 2
  • 14
  • 31
12
votes
4 answers

IOException while reading from InputStream

I'm running into a strange problem while reading from an InputStream on the Android platform. I'm not sure if this is an Android specific issue, or something I'm doing wrong in general. The only thing that is Android specific is this…
DJayC
  • 1,765
  • 3
  • 12
  • 10
12
votes
5 answers

hadoop java.io.IOException: while running namenode -format

I ran namenode -format.This is my output. I tried changing the file permissions chmod 777 hadoop. I believe this line is the error ERROR namenode.NameNode: java.io.IOException: Cannot create directory…
alex
  • 398
  • 1
  • 6
  • 24
11
votes
2 answers

IOException for drive full or out of space

I am looking for a list of platform-specific (JRE-specific) of IOException messages indicating disk is full or out of space. So far I have: Windows: There is not enough space on the disk Solaris/Linux?: Not enough space GCJ: No space left on…
Ben
  • 4,785
  • 3
  • 27
  • 39
11
votes
5 answers

Why it is mandatory to use "throws IOException"

Why it is mandatory to use "throws IOException" in main method while handling an external file operation, if the file is located within the local file system.
Mayur Patel
  • 121
  • 1
  • 1
  • 3
11
votes
2 answers

Android playing resource files from internal storage causes MediaPlayer.prepare to give IOException

My app plays audio resource files from the internal directory designated for my app (/data/data/com...). It seems to download the files to that location okay, setDataSource(String path) doesn't throw any exceptions, but MediaPlayer.prepare() throws…
AnimatedRNG
  • 1,859
  • 3
  • 26
  • 39
11
votes
9 answers

Deleting google-services json file

Actually by mistake I pasted google-services json file of another project in my current project of android .So when building the app , i get error no matching client found for package 'com.mybidu.www'. I tried to delete the file but it gives error…
Divyang Shah
  • 3,577
  • 5
  • 14
  • 27
11
votes
2 answers

How to tell if a caught IOException is caused by the file being used by another process, without resorting to parsing the exception's Message property

When I open a file, I want to know if it is being used by another process so I can perform special handling; any other IOException I will bubble up. An IOException's Message property contains "The process cannot access the file 'foo' because it is…
Paul Killick
  • 427
  • 6
  • 9