Java Runtime errors

Core environment and runtime library

https://java.com
Solution coverage:
Summary coverage:

Top patterns

  1. FileInputStream.open() has thrown a FileNotFoundException

    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.open() has thrown a FileNotFoundException
    No solution

DescriptionException TypeEntry MethodWeb pages

FileInputStream.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
java.io.FileInputStream.open
3729Web pages
1Solution
FileNotFoundExceptionFileInputStream.open3729

FileInputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileInputStream.<init>
3352Web pages
FileNotFoundExceptionFileInputStream.<init>3352

FileOutputStream.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
java.io.FileOutputStream.open
2020Web pages
FileNotFoundExceptionFileOutputStream.open2020

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileOutputStream.<init>
1821Web pages
FileNotFoundExceptionFileOutputStream.<init>1821

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
java.io.FileOutputStream.<init>
1604Web pages
FileNotFoundExceptionFileOutputStream.<init>1604

ObjectOutputStream.writeObject0() has thrown a NotSerializableException

java.io.NotSerializableException
java.io.ObjectOutputStream.writeObject0
1496Web pages
1Solution
NotSerializableExceptionObjectOutputStream.writeObject01496

FileInputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
java.io.FileInputStream.<init>
1461Web pages
FileNotFoundExceptionFileInputStream.<init>1461

FileInputStream.open0() has thrown a FileNotFoundException

java.io.FileNotFoundException
java.io.FileInputStream.open0
1071Web pages
FileNotFoundExceptionFileInputStream.open01071

FileInputStream.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileInputStream.open
1046Web pages
FileNotFoundExceptionFileInputStream.open1046

FileInputStream.<init>() has thrown a FileNotFoundException

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

ObjectOutputStream.defaultWriteFields() has thrown a NotSerializableException

java.io.NotSerializableException
1 frames hidden
java.io.ObjectOutputStream.defaultWriteFields
983Web pages
NotSerializableExceptionObjectOutputStream.defaultWriteFields983

ObjectOutputStream.writeSerialData() has thrown a NotSerializableException

java.io.NotSerializableException
2 frames hidden
java.io.ObjectOutputStream.writeSerialData
950Web pages
NotSerializableExceptionObjectOutputStream.writeSerialData950

ObjectOutputStream.writeOrdinaryObject() has thrown a NotSerializableException

java.io.NotSerializableException
3 frames hidden
java.io.ObjectOutputStream.writeOrdinaryObject
935Web pages
NotSerializableExceptionObjectOutputStream.writeOrdinaryObject935

ObjectOutputStream.writeObject0() has thrown a NotSerializableException

java.io.NotSerializableException
4 frames hidden
java.io.ObjectOutputStream.writeObject0
925Web pages
1Solution
NotSerializableExceptionObjectOutputStream.writeObject0925

UnixFileSystem.createFileExclusively() has thrown an IOException

java.io.IOException
java.io.UnixFileSystem.createFileExclusively
737Web pages
1Solution
IOExceptionUnixFileSystem.createFileExclusively737

FileOutputStream.open0() has thrown a FileNotFoundException

java.io.FileNotFoundException
java.io.FileOutputStream.open0
639Web pages
FileNotFoundExceptionFileOutputStream.open0639

File.<init>() has thrown a NullPointerException

java.lang.NullPointerException
java.io.File.<init>
635Web pages
NullPointerExceptionFile.<init>635

FileOutputStream.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.FileOutputStream.open
621Web pages
FileNotFoundExceptionFileOutputStream.open621

FileOutputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
java.io.FileOutputStream.<init>
609Web pages
FileNotFoundExceptionFileOutputStream.<init>609

ObjectInputStream.readStreamHeader() has thrown a StreamCorruptedException

java.io.StreamCorruptedException
java.io.ObjectInputStream.readStreamHeader
570Web pages
1Solution
StreamCorruptedExceptionObjectInputStream.readStreamHeader570

BufferedOutputStream.flushBuffer() has thrown a SocketException

java.net.SocketException
3 frames hidden
java.io.BufferedOutputStream.flushBuffer
530Web pages
SocketExceptionBufferedOutputStream.flushBuffer530

FileOutputStream.writeBytes() has thrown an IOException

java.io.IOException
java.io.FileOutputStream.writeBytes
521Web pages
IOExceptionFileOutputStream.writeBytes521

ObjectInputStream.<init>() has thrown a StreamCorruptedException

java.io.StreamCorruptedException
1 frames hidden
java.io.ObjectInputStream.<init>
511Web pages
1Solution
StreamCorruptedExceptionObjectInputStream.<init>511

FileOutputStream.write() has thrown an IOException

java.io.IOException
1 frames hidden
java.io.FileOutputStream.write
510Web pages
IOExceptionFileOutputStream.write510

FileOutputStream.<init>() has thrown a FileNotFoundException

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

DataInputStream.readInt() has thrown an EOFException

java.io.EOFException
java.io.DataInputStream.readInt
474Web pages
EOFExceptionDataInputStream.readInt474

ObjectStreamClass.initNonProxy() has thrown an InvalidClassException

java.io.InvalidClassException
java.io.ObjectStreamClass.initNonProxy
463Web pages
InvalidClassExceptionObjectStreamClass.initNonProxy463

FileInputStream.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
3 frames hidden
java.io.FileInputStream.<init>
454Web pages
FileNotFoundExceptionFileInputStream.<init>454

ObjectInputStream.readNonProxyDesc() has thrown an InvalidClassException

java.io.InvalidClassException
1 frames hidden
java.io.ObjectInputStream.readNonProxyDesc
453Web pages
InvalidClassExceptionObjectInputStream.readNonProxyDesc453

ObjectInputStream.readClassDesc() has thrown an InvalidClassException

java.io.InvalidClassException
2 frames hidden
java.io.ObjectInputStream.readClassDesc
450Web pages
InvalidClassExceptionObjectInputStream.readClassDesc450

File.createNewFile() has thrown an IOException

java.io.IOException
1 frames hidden
java.io.File.createNewFile
442Web pages
IOExceptionFile.createNewFile442

ObjectOutputStream.defaultWriteFields() has thrown a NotSerializableException

java.io.NotSerializableException
5 frames hidden
java.io.ObjectOutputStream.defaultWriteFields
437Web pages
NotSerializableExceptionObjectOutputStream.defaultWriteFields437

BufferedOutputStream.flush() has thrown a SocketException

java.net.SocketException
4 frames hidden
java.io.BufferedOutputStream.flush
429Web pages
SocketExceptionBufferedOutputStream.flush429

ObjectInputStream$BlockDataInputStream.peekByte() has thrown an EOFException

java.io.EOFException
java.io.ObjectInputStream$BlockDataInputStream.peekByte
425Web pages
EOFExceptionObjectInputStream$BlockDataInputStream.peekByte425

RandomAccessFile.open() has thrown a FileNotFoundException

java.io.FileNotFoundException
java.io.RandomAccessFile.open
417Web pages
FileNotFoundExceptionRandomAccessFile.open417

File.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
java.io.File.<init>
413Web pages
IllegalArgumentExceptionFile.<init>413

ObjectOutputStream.writeObject() has thrown a NotSerializableException

java.io.NotSerializableException
5 frames hidden
java.io.ObjectOutputStream.writeObject
411Web pages
1Solution
NotSerializableExceptionObjectOutputStream.writeObject411

ObjectInputStream.readObject0() has thrown an EOFException

java.io.EOFException
1 frames hidden
java.io.ObjectInputStream.readObject0
410Web pages
EOFExceptionObjectInputStream.readObject0410

Reader.<init>() has thrown a NullPointerException

java.lang.NullPointerException
java.io.Reader.<init>
405Web pages
NullPointerExceptionReader.<init>405

ObjectOutputStream.writeSerialData() has thrown a NotSerializableException

java.io.NotSerializableException
6 frames hidden
java.io.ObjectOutputStream.writeSerialData
399Web pages
NotSerializableExceptionObjectOutputStream.writeSerialData399

ObjectInputStream$PeekInputStream.readFully() has thrown an EOFException

java.io.EOFException
java.io.ObjectInputStream$PeekInputStream.readFully
399Web pages
EOFExceptionObjectInputStream$PeekInputStream.readFully399

ObjectOutputStream.writeOrdinaryObject() has thrown a NotSerializableException

java.io.NotSerializableException
7 frames hidden
java.io.ObjectOutputStream.writeOrdinaryObject
397Web pages
NotSerializableExceptionObjectOutputStream.writeOrdinaryObject397

ObjectOutputStream.writeObject0() has thrown a NotSerializableException

java.io.NotSerializableException
8 frames hidden
java.io.ObjectOutputStream.writeObject0
397Web pages
NotSerializableExceptionObjectOutputStream.writeObject0397

InputStreamReader.<init>() has thrown a NullPointerException

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

ObjectOutputStream.writeObject() has thrown a NotSerializableException

java.io.NotSerializableException
1 frames hidden
java.io.ObjectOutputStream.writeObject
381Web pages
NotSerializableExceptionObjectOutputStream.writeObject381

DataInputStream.readFully() has thrown an EOFException

java.io.EOFException
java.io.DataInputStream.readFully
374Web pages
EOFExceptionDataInputStream.readFully374

RandomAccessFile.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
java.io.RandomAccessFile.<init>
365Web pages
FileNotFoundExceptionRandomAccessFile.<init>365

ObjectInputStream$BlockDataInputStream.readShort() has thrown an EOFException

java.io.EOFException
1 frames hidden
java.io.ObjectInputStream$BlockDataInputStream.readShort
352Web pages
EOFExceptionObjectInputStream$BlockDataInputStream.readShort352

ObjectInputStream.readObject() has thrown an EOFException

java.io.EOFException
2 frames hidden
java.io.ObjectInputStream.readObject
352Web pages
EOFExceptionObjectInputStream.readObject352

BufferedInputStream.fill() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.io.BufferedInputStream.fill
351Web pages
SocketExceptionBufferedInputStream.fill351
Package namePatterns foundSolution coverageSummary coverage
java.lang7927
java.util.concurrent4667
java.io4419
java.lang.reflect4019
java.awt2397
java.net2282
sun.reflect2209
java.util1921
javax.swing1636
java.security1033
javax.naming1017
java.sql803
sun.net.www.protocol.http740
sun.net.www.protocol.https718
sun.nio.ch466
sun.rmi.server381
sun.rmi.transport.tcp326
java.util.zip322
com.sun.jndi.ldap289
java.util.regex285
com.sun.org.apache.xerces.internal.impl269
sun.net.www.http261
java.nio.file257
com.sun.org.apache.xerces.internal.parsers247
javax.swing.plaf.basic240
sun.misc236
java.util.logging172
com.sun.org.apache.xerces.internal.jaxp168
java.util.jar162
java.beans160
javax.swing.text158
java.nio157
sun.rmi.registry151
java.util.stream143
javax.security.auth.login143
java.text143
javax.management.remote.rmi142
java.rmi137
javax.imageio135
sun.rmi.transport134
sun.nio.cs131
javax.net.ssl129
java.awt.event124
com.sun.org.apache.xalan.internal.xsltc.trax117
java.awt.image115
javax.security.auth115
java.nio.channels110
java.rmi.server92
java.util.concurrent.locks90
javax.naming.directory88
Package nameClass namePatterns foundSolution coverageSummary coverage
java.ioObjectInputStream1201
java.ioObjectOutputStream600
java.ioBufferedInputStream287
java.ioBufferedOutputStream234
java.ioFile202
java.ioBufferedReader187
java.ioDataInputStream179
java.ioFilterInputStream161
java.ioFileInputStream122
java.ioFileOutputStream100
java.ioRandomAccessFile90
java.ioInputStreamReader86
java.ioDataOutputStream81
java.ioObjectStreamClass78
java.ioInputStream76
java.ioOutputStreamWriter72
java.ioFilterOutputStream65
java.ioPrintStream65
java.ioBufferedWriter61
java.ioPrintWriter58
java.ioOutputStream57
java.ioObjectInputStream$BlockDataInputStream44
java.ioWriter29
java.ioByteArrayOutputStream27
java.ioObjectInputStream$PeekInputStream27
java.ioReader27
java.ioFileReader26
java.ioObjectOutputStream$BlockDataOutputStream24
java.ioFileWriter20
java.ioUnixFileSystem18
java.ioPushbackInputStream14
java.ioStringWriter14
java.ioObjectStreamClass$211
java.ioFilePermission10
java.ioPipedInputStream7
java.ioIOException7
java.ioPipedOutputStream5
java.ioByteArrayInputStream3
java.ioBufferedReader$13
java.ioObjectStreamClass$13
java.ioObjectInputStream$HandleTable3
java.ioFilterWriter3
java.ioFileDescriptor3
java.ioObjectOutputStream$HandleTable3
java.ioSequenceInputStream3
java.ioStringReader3
java.ioPipedWriter2
java.ioFilePermission$12
java.ioObjectStreamClass$FieldReflector2
java.ioCharArrayWriter2
Package nameClass nameMethod namePatterns foundSolution coverage
java.ioObjectInputStreamreadObject409
java.ioObjectInputStreamreadObject0376
java.ioObjectOutputStreamwriteObject0227
java.ioObjectOutputStreamwriteObject198
java.ioBufferedInputStreamread179
java.ioFilterInputStreamread141
java.ioBufferedReaderreadLine113
java.ioBufferedOutputStreamflush108
java.ioFileInputStream<init>81
java.ioObjectInputStreamdefaultReadFields79
java.ioInputStreamReaderread73
java.ioObjectInputStreamreadClassDesc72
java.ioInputStreamread71
java.ioBufferedInputStreamfill69
java.ioBufferedOutputStreamflushBuffer64
java.ioFileOutputStream<init>58
java.ioOutputStreamwrite57
java.ioObjectOutputStreamdefaultWriteFields53
java.ioBufferedOutputStreamwrite48
java.ioObjectInputStreamreadOrdinaryObject43
java.ioDataInputStreamread40
java.ioFilecreateTempFile39
java.ioBufferedReaderfill37
java.ioDataInputStreamreadFully35
java.ioBufferedWriterflush34
java.ioOutputStreamWriterflush31
java.ioDataInputStreamreadInt31
java.ioDataOutputStreamflush29
java.ioDataOutputStreamwrite29
java.ioObjectInputStream<init>28
java.ioObjectInputStreamdefaultReadObject28
java.ioWriterwrite27
java.ioObjectStreamClasslookup26
java.ioFileReader<init>26
java.ioRandomAccessFile<init>26
java.ioReaderread25
java.ioObjectInputStreamresolveClass25
java.ioBufferedReaderread25
java.ioObjectInputStreamreadSerialData25
java.ioObjectOutputStreamdefaultWriteObject25
java.ioPrintStreamprintln25
java.ioDataInputStreamreadByte24
java.ioFilterOutputStreamwrite24
java.ioFilterOutputStreamclose24
java.ioFileOutputStreamwrite22
java.ioOutputStreamWriterwrite21
java.ioObjectOutputStreamwriteOrdinaryObject21
java.ioDataInputStreamreadUTF21
java.ioFileInputStreamread21
java.ioFileWriter<init>20
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
java.ioObjectOutputStreamwriteObject0NotSerializableException144
java.ioObjectOutputStreamwriteObjectNotSerializableException138
java.ioObjectInputStreamreadObjectClassNotFoundException114
java.ioObjectInputStreamreadObject0ClassNotFoundException93
java.ioObjectInputStreamreadObjectInvalidClassException61
java.ioFilterInputStreamreadIOException51
java.ioObjectInputStreamreadObject0InvalidClassException46
java.ioBufferedInputStreamreadSocketException43
java.ioBufferedInputStreamreadSocketTimeoutException37
java.ioBufferedReaderreadLineIOException36
java.ioBufferedInputStreamreadIOException33
java.ioFileOutputStream<init>FileNotFoundException33
java.ioObjectOutputStreamdefaultWriteFieldsNotSerializableException32
java.ioObjectInputStreamreadObjectStreamCorruptedException32
java.ioObjectOutputStreamwriteObject0StackOverflowError32
java.ioFileInputStream<init>FileNotFoundException31
java.ioObjectInputStreamreadObject0StreamCorruptedException30
java.ioBufferedOutputStreamflushSSLHandshakeException28
java.ioFilecreateTempFileIOException27
java.ioInputStreamReaderreadIOException27
java.ioObjectInputStreamreadObject0EOFException26
java.ioObjectInputStreamreadClassDescClassNotFoundException25
java.ioObjectInputStreamreadObjectClassCastException25
java.ioFilterInputStreamreadSocketException24
java.ioObjectInputStreamreadObjectEOFException23
java.ioObjectInputStreamreadObject0ClassCastException23
java.ioObjectInputStreamreadObject0OutOfMemoryError21
java.ioObjectInputStreamreadObject0IllegalStateException21
java.ioFilterInputStreamreadZipException20
java.ioInputStreamreadIOException19
java.ioObjectInputStreamresolveClassClassNotFoundException19
java.ioObjectOutputStreamdefaultWriteObjectNotSerializableException19
java.ioBufferedReaderreadLineSocketException19
java.ioFilterInputStreamreadSocketTimeoutException18
java.ioBufferedOutputStreamflushSSLException18
java.ioBufferedOutputStreamwriteSocketException18
java.ioOutputStreamwriteIOException17
java.ioBufferedOutputStreamflushSocketException17
java.ioBufferedInputStreamfillSocketTimeoutException16
java.ioObjectOutputStreamwriteObject0OutOfMemoryError16
java.ioBufferedInputStreamreadSSLException15
java.ioObjectInputStreamdefaultReadFieldsClassNotFoundException15
java.ioBufferedOutputStreamflushBufferIOException15
java.ioBufferedInputStreamfillSocketException15
java.ioObjectInputStreamreadObjectIllegalStateException14
java.ioObjectInputStreamreadObject0SparkException14
java.ioObjectInputStreamreadObject0NoClassDefFoundError14
java.ioBufferedOutputStreamflushIOException14
java.ioDataInputStreamreadIOException14
java.ioBufferedOutputStreamflushBufferSSLHandshakeException14