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
18
votes
2 answers

New GCM API Register Unknown Source Error

I am currently building an application that uses the new Google Cloud Messaging system. I have a HTTP client server set up on a live environment to allow me to test through my mobile devices, but when ever I try to register with the GCM I keep…
17
votes
5 answers

Can you explain why DirectoryInfo.GetFiles produces this IOException?

I have a WinForms client-server app running on a Novell network that produces the following error when connecting to the lone Windows 2003 Server on the network: TYPE: System.IO.IOException MSG: Logon failure: unknown user name or bad…
flipdoubt
  • 13,897
  • 15
  • 64
  • 96
17
votes
5 answers

Understanding Java IOException

I need some help with understanding the IOException. I've reviewed a lot of information on the internet, and looked at the technical specifications at Oracle's Java website. Am I correct in my understanding of the IOException class and all of it's…
Guy Rich
  • 451
  • 3
  • 8
  • 18
16
votes
3 answers

java.io.IOException: Unable to open sync connection! in to the Nexus

I try my application run on eclipse but i found these errors. which is faced first time so would you please give me any ideas for these error. i am currently using Nexus mobile. [2011-08-04 15:59:09 - App] Android Launch! [2011-08-04 15:59:09 -…
Horrorgoogle
  • 7,858
  • 11
  • 48
  • 81
16
votes
1 answer

Attempted to read past end of the stream error in MySQL

I'm running into a problem with MySQL where I have the following error. MySqlClient.MySqlException: Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException: Fatal error encountered attempting to read the…
Austin
  • 1,521
  • 5
  • 15
  • 27
16
votes
6 answers

How to read open excel file at C#

I want to read already open excel file with C#. I am using this method but it can't read the excel file while the file is open in Microsoft excel. FileStream stream = File.Open("myfile.xlsx", FileMode.Open, FileAccess.Read); It gives IOException:…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
16
votes
2 answers

Android Proguard Issue - Still getting "java.io.IOException: Can't process class..." error when obfuscation is skipped

I am building an android app with proguard in Android Studio and my project has a library jar (na.jar) that I would like to skip obfuscation and preverification because some classes from the na.jar are giving me errors during the build. So in my…
16
votes
4 answers

Debugging the "Too many files open" issue

The application i am working on suddenly crashed with java.io.IOException: ... Too many open files As i understand the issue it means that files are opened but not closed. Stacktrace of course happens after the fact and can only help understand…
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
15
votes
5 answers

Catching java exceptions FileNotFound and IOException at the same time

Is the FileNotFoundException somehow a "sub-exception" of the IOException? This is my code opening an input stream to a file at the given path: method(){ FileInputStream fs; try { fs = new FileInputStream(path); …
xrdty
  • 886
  • 2
  • 10
  • 22
15
votes
1 answer

How to debug "Sharing Violation" when trying to delete a file

I have a multi threaded C# application which creates files, opens them for processing, then deletes them once finished. This application can expect anywhere from 1 - 100 files to be processed. Somewhat randomly (most likely attributed to the multi…
VFein
  • 1,021
  • 2
  • 11
  • 23
14
votes
4 answers

Caused by: java.io.IOException: HTTP/1.1 header parser received no bytes

I am getting for the first time Caused by: java.io.IOException: HTTP/1.1 header parser received no bytes (my app seemed to work up to now...) HttpClient httpClient = HttpClient.newHttpClient(); HttpRequest httpRequest = HttpRequest …
Ob-la-di
  • 143
  • 1
  • 1
  • 5
14
votes
1 answer

Google Drive SDK for OCR

I have just setup the quickstart google drive sdk application for Android available on this link I am trying to upload images and then do OCR on them. The sample application on the Android quickstart works fine, but when I try to set the boolean for…
14
votes
1 answer

Troubleshooting 'Too many files open' with lsof

I have a Java application running on Linux with PID 25426. When running lsof -p 25426, I noticed: java 25426 uid 420w FIFO 0,8 0t0 273664482 pipe java 25426 uid 421r FIFO 0,8 0t0 273664483 pipe java …
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
13
votes
2 answers

Write end dead exception using PipedInputStream java

Write end dead exception occurs in the following situation: Two threads: A: PipedOutputStream put = new PipedOutputStream(); String msg = "MESSAGE"; output.wirte(msg.getBytes()); output.flush(); B: PipedInputStream get = new…
laynece
  • 231
  • 1
  • 3
  • 6
13
votes
1 answer

Error writing to server

I am uploading a file from one server to another server using a Java Program 'POST' method. But I am getting below exception. java.io.IOException: Error writing to server at…
Vishwajit R. Shinde
  • 465
  • 2
  • 5
  • 18