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
9
votes
3 answers

JUnit Rule TemporaryFolder arbitrarily throws an IOException

I am facing a weird problem here... I have a JUnit implementing a few tests. This class looks like the following: public class MyTest { @Rule public TemporaryFolder folder = new TemporaryFolder(); @Test public void myTest1() throws…
Jean Logeart
  • 52,687
  • 11
  • 83
  • 118
8
votes
4 answers

Failed to install app at first time in the device I got java.io.IOException: Failed to load asset path

Everytime I install the app at first time (I mean not installed in device before or when uninstall it and re-install it again) I got this error E Failed to open APK…
Dr Mido
  • 2,414
  • 4
  • 32
  • 72
8
votes
2 answers

Spring application deployed on tomcat - org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer

I am working on a springboot application. I'm gettng the following exceptions a lot, when the application is deployed on external tomcat server. But, when I test the application in local through springboot's internal tomcat, it doesn't show this…
pkgajulapalli
  • 1,066
  • 3
  • 20
  • 44
8
votes
1 answer

Java Resource InputStream being closed?

I'm in the process of migrating our Java codebase from Java 7 (80) to Java 8 (162). (Yep... we're at the cutting edge of technology.) After the switchover, I've been having issues when loading XML resource files from deployed jars in a heavily…
amaidment
  • 6,942
  • 5
  • 52
  • 88
8
votes
0 answers

Spring websocket heartbeat Broken pipe IOException

I'm using spring-boot-starter-websocket with Spring Boot 1.5.3.RELEASE. I get tons of logs when sockjs is trying to perform a heartbeat task. Somehow the connection is lost in the way. This article says its closed (according to JIRA), but I'm still…
8
votes
2 answers

How to read a file which is currently used, like Windows does when copying it?

One of my applications is intended to read (and only read) files which may be in use. But, when reading a file which is already opened in, for example, Microsoft Word, this application throws a System.IO.IOException: The process cannot access the…
Arseni Mourzenko
  • 50,338
  • 35
  • 112
  • 199
8
votes
3 answers

How to write junit test cases for IOException

I want to check the IOException class in JUNIT testing. Here is my code: public void loadProperties(String path) throws IOException { InputStream in = this.getClass().getResourceAsStream(path); Properties properties = new Properties(); …
user6090970
  • 185
  • 1
  • 3
  • 14
8
votes
1 answer

What causes jobb tool to throw FAT Full IOException?

I am trying to use the Android jobb tool to create a large OBB file for my application, but I am plagued by the "FAT Full" IOException: java.io.IOException: FAT Full (XXXX, YYYY) at de.waldheinz.fs.fat.Fat.allocNew(Fat.java:298) at…
monkey0506
  • 2,489
  • 1
  • 21
  • 27
7
votes
0 answers

HttpsURLConnection POST request of a large file throws IOException after several minutes

I've been working on this bug for several days now and couldn't solve it. I wrote an HttpsURLConnection client to upload large files(>1GB) using POST requests. I also implemented the server side using com.sun.net.httpserver.HttpServer. As the files…
Oren Hacohen
  • 161
  • 8
7
votes
1 answer

In Java, why dont I need to import RuntimeException to use it?

If I try to use IOException without the fully qualified name and without importing, I get a compilation error. But it doesn't happen when I do the same with, say, RuntimeException or Exception. Why is that? Thanks
dumptoday
  • 197
  • 3
  • 6
7
votes
5 answers

what is java.io.IOException: invalid header field?

When i try to run the following command : jar cvfm myjar.jar manifest.txt *.class I get the following exceptions : java.io.IOException: invalid header field at java.util.jar.Attributes.read(Attributes.java:410) at…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
7
votes
2 answers

IOException - detail message all question marks

I want to createNewFile with a path but I got an IOException. The question is, the detailed message cannot be interpreted, I can only see a bunch of question marks. I am with Windows 10 originally in Spanish, but with Chinese language pack…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
7
votes
5 answers

Kafka server failed to start - java.io.IOException: Map failed

I am not able to start Kafka Server because of the error below. java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:940) at kafka.log.AbstractIndex.(AbstractIndex.scala:61) at…
Gopi
  • 619
  • 2
  • 9
  • 27
7
votes
2 answers

Unable to tunnel through proxy. Proxy returns HTTP/1.1 503 Service Unavailable

I want to connect to an intranet server, the url that I need to connect is: URLConnection conn = new URL("https://mywebsite").openConnection(); When I reach to the connect method call through:` conn.connect(); I'm getting the following…
ManKeer
  • 543
  • 2
  • 6
  • 27
7
votes
2 answers

IOException: The network name cannot be found

I running a C# MVC website written on C# for quite long time. Recently, I've noticed this log message in my logger data: System.IO.IOException: The network name cannot be found. at System.IO.__Error.WinIOError(Int32 errorCode, String…
No1Lives4Ever
  • 6,430
  • 19
  • 77
  • 140