1. Explore
  2. »
  3. Java Runtime
  4. »
  5. java.io

java.io errorsJava Runtime

Top patterns

  1. Unable to open file, file not found in the path provided

    Use the relative path when providing the location of the file. Place the file in the project folder and access it according to the hierarchy. If you want to access a file outside the project folder, provide the absolute path.

  2. FileInputStream.<init>() has thrown a FileNotFoundException
    No solution
  3. FileOutputStream.<init>() has thrown a FileNotFoundException
    No solution
Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Unable to open file, file not found in the path provided

java.io.FileNotFoundException
java.io.FileInputStream.open
3554Web pages
1Solution
FileNotFoundExceptionFileInputStream.open()3554

FileInputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileInputStream.<init>
3169Web pages
FileNotFoundExceptionFileInputStream.<init>()3169

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileOutputStream.<init>
1674Web pages
FileNotFoundExceptionFileOutputStream.<init>()1674

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
java.io.FileOutputStream.<init>
1468Web pages
FileNotFoundExceptionFileOutputStream.<init>()1468

Trying to write an object to a file/socket that is not serializable

java.io.NotSerializableException
java.io.ObjectOutputStream.writeObject0
1388Web pages
1Solution
NotSerializableExceptionObjectOutputStream.writeObject0()1388

FileInputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
java.io.FileInputStream.<init>
1385Web pages
FileNotFoundExceptionFileInputStream.<init>()1385

FileInputStream.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileInputStream.open
1162Web pages
FileNotFoundExceptionFileInputStream.open()1162

File/Directory does not exist in the provided path

java.io.FileNotFoundException
2 frames hidden
java.io.FileInputStream.<init>
1150Web pages
1Solution
FileNotFoundExceptionFileInputStream.<init>()1150

ObjectOutputStream.defaultWriteFields() has thrown a NotSerializableException

java.io.NotSerializableException
1 frames hidden
java.io.ObjectOutputStream.defaultWriteFields
888Web pages
NotSerializableExceptionObjectOutputStream.defaultWriteFields()888

ObjectOutputStream.writeSerialData() has thrown a NotSerializableException

java.io.NotSerializableException
2 frames hidden
java.io.ObjectOutputStream.writeSerialData
855Web pages
NotSerializableExceptionObjectOutputStream.writeSerialData()855

ObjectOutputStream.writeOrdinaryObject() has thrown a NotSerializableException

java.io.NotSerializableException
3 frames hidden
java.io.ObjectOutputStream.writeOrdinaryObject
844Web pages
NotSerializableExceptionObjectOutputStream.writeOrdinaryObject()844

ObjectOutputStream.writeObject0() has thrown a NotSerializableException

java.io.NotSerializableException
4 frames hidden
java.io.ObjectOutputStream.writeObject0
835Web pages
1Solution
NotSerializableExceptionObjectOutputStream.writeObject0()835

JRE unable to create file

java.io.IOException
java.io.UnixFileSystem.createFileExclusively
726Web pages
1Solution
IOExceptionUnixFileSystem.createFileExclusively()726

Unable to create/append to file

java.io.FileNotFoundException
java.io.FileOutputStream.open0
718Web pages
1Solution
FileNotFoundExceptionFileOutputStream.open0()718

FileOutputStream.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileOutputStream.open
697Web pages
FileNotFoundExceptionFileOutputStream.open()697

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
java.io.FileOutputStream.<init>
684Web pages
FileNotFoundExceptionFileOutputStream.<init>()684

Creating a java.io.File with null path

java.lang.NullPointerException
java.io.File.<init>
609Web pages
NullPointerExceptionFile.<init>()609

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
3 frames hidden
java.io.FileOutputStream.<init>
563Web pages
1Solution
FileNotFoundExceptionFileOutputStream.<init>()563

ObjectInputStream.readStreamHeader() has thrown a StreamCorruptedException

java.io.StreamCorruptedException
java.io.ObjectInputStream.readStreamHeader
549Web pages
1Solution
StreamCorruptedExceptionObjectInputStream.readStreamHeader()549

FileInputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
3 frames hidden
java.io.FileInputStream.<init>
508Web pages
FileNotFoundExceptionFileInputStream.<init>()508

FileOutputStream.writeBytes() has thrown an IOException

java.io.IOException
java.io.FileOutputStream.writeBytes
501Web pages
IOExceptionFileOutputStream.writeBytes()501

Failed to write file

java.io.IOException
1 frames hidden
java.io.FileOutputStream.write
491Web pages
IOExceptionFileOutputStream.write()491

ObjectInputStream.<init>() has thrown a StreamCorruptedException

java.io.StreamCorruptedException
1 frames hidden
java.io.ObjectInputStream.<init>
488Web pages
1Solution
StreamCorruptedExceptionObjectInputStream.<init>()488

File.createNewFile() has thrown an IOException

java.io.IOException
1 frames hidden
java.io.File.createNewFile
446Web pages
IOExceptionFile.createNewFile()446

ObjectStreamClass.initNonProxy() has thrown an InvalidClassException

java.io.InvalidClassException
java.io.ObjectStreamClass.initNonProxy
441Web pages
InvalidClassExceptionObjectStreamClass.initNonProxy()441

DataInputStream.readInt() has thrown an EOFException

java.io.EOFException
java.io.DataInputStream.readInt
440Web pages
EOFExceptionDataInputStream.readInt()440

ObjectInputStream.readNonProxyDesc() has thrown an InvalidClassException

java.io.InvalidClassException
1 frames hidden
java.io.ObjectInputStream.readNonProxyDesc
433Web pages
InvalidClassExceptionObjectInputStream.readNonProxyDesc()433

ObjectInputStream.readClassDesc() has thrown an InvalidClassException

java.io.InvalidClassException
2 frames hidden
java.io.ObjectInputStream.readClassDesc
430Web pages
InvalidClassExceptionObjectInputStream.readClassDesc()430

BufferedOutputStream.flush() has thrown a SocketException

java.net.SocketException
4 frames hidden
java.io.BufferedOutputStream.flush
421Web pages
SocketExceptionBufferedOutputStream.flush()421

File.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
java.io.File.<init>
406Web pages
IllegalArgumentExceptionFile.<init>()406

Reader.<init>() has thrown a NullPointerException

java.lang.NullPointerException
java.io.Reader.<init>
394Web pages
NullPointerExceptionReader.<init>()394

RandomAccessFile.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
java.io.RandomAccessFile.open
388Web pages
FileNotFoundExceptionRandomAccessFile.open()388

ObjectOutputStream.writeObject() has thrown a NotSerializableException

java.io.NotSerializableException
5 frames hidden
java.io.ObjectOutputStream.writeObject
385Web pages
1Solution
NotSerializableExceptionObjectOutputStream.writeObject()385

ObjectInputStream$PeekInputStream.readFully() has thrown an EOFException

java.io.EOFException
java.io.ObjectInputStream$PeekInputStream.readFully
384Web pages
EOFExceptionObjectInputStream$PeekInputStream.readFully()384

The InputStream parameter is null

java.lang.NullPointerException
1 frames hidden
java.io.InputStreamReader.<init>
384Web pages
1Solution
NullPointerExceptionInputStreamReader.<init>()384

ObjectInputStream$BlockDataInputStream.peekByte() has thrown an EOFException

java.io.EOFException
java.io.ObjectInputStream$BlockDataInputStream.peekByte
381Web pages
EOFExceptionObjectInputStream$BlockDataInputStream.peekByte()381

ObjectOutputStream.writeObject() has thrown a NotSerializableException

java.io.NotSerializableException
1 frames hidden
java.io.ObjectOutputStream.writeObject
376Web pages
NotSerializableExceptionObjectOutputStream.writeObject()376

ObjectOutputStream.defaultWriteFields() has thrown a NotSerializableException

java.io.NotSerializableException
5 frames hidden
java.io.ObjectOutputStream.defaultWriteFields
376Web pages
NotSerializableExceptionObjectOutputStream.defaultWriteFields()376

DataInputStream.readFully() has thrown an EOFException

java.io.EOFException
java.io.DataInputStream.readFully
368Web pages
EOFExceptionDataInputStream.readFully()368

ObjectInputStream.readObject0() has thrown an EOFException

java.io.EOFException
1 frames hidden
java.io.ObjectInputStream.readObject0
366Web pages
EOFExceptionObjectInputStream.readObject0()366

ObjectInputStream$BlockDataInputStream.readShort() has thrown an EOFException

java.io.EOFException
1 frames hidden
java.io.ObjectInputStream$BlockDataInputStream.readShort
339Web pages
EOFExceptionObjectInputStream$BlockDataInputStream.readShort()339

ObjectOutputStream.writeSerialData() has thrown a NotSerializableException

java.io.NotSerializableException
6 frames hidden
java.io.ObjectOutputStream.writeSerialData
337Web pages
NotSerializableExceptionObjectOutputStream.writeSerialData()337

RandomAccessFile.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.RandomAccessFile.<init>
337Web pages
FileNotFoundExceptionRandomAccessFile.<init>()337

ObjectInputStream.readStreamHeader() has thrown an EOFException

java.io.EOFException
2 frames hidden
java.io.ObjectInputStream.readStreamHeader
335Web pages
EOFExceptionObjectInputStream.readStreamHeader()335

ObjectOutputStream.writeObject0() has thrown a NotSerializableException

java.io.NotSerializableException
8 frames hidden
java.io.ObjectOutputStream.writeObject0
335Web pages
NotSerializableExceptionObjectOutputStream.writeObject0()335

BufferedInputStream.fill() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.io.BufferedInputStream.fill
329Web pages
SocketExceptionBufferedInputStream.fill()329

ObjectInputStream.readObject() has thrown an EOFException

java.io.EOFException
2 frames hidden
java.io.ObjectInputStream.readObject
309Web pages
EOFExceptionObjectInputStream.readObject()309

ObjectInputStream.<init>() has thrown an EOFException

java.io.EOFException
3 frames hidden
java.io.ObjectInputStream.<init>
301Web pages
EOFExceptionObjectInputStream.<init>()301

FileInputStream.readBytes() has thrown an IOException

java.io.IOException
java.io.FileInputStream.readBytes
301Web pages
IOExceptionFileInputStream.readBytes()301

FileInputStream.read() has thrown an IOException

java.io.IOException
1 frames hidden
java.io.FileInputStream.read
293Web pages
1Solution
IOExceptionFileInputStream.read()293
Nothing to list here.
Nothing to list here.
Nothing to list here.