1. Explore
  2. »
  3. Java Runtime

Java Runtime errors

Core environment and runtime library

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

Top patterns

  1. Trying to put null to a HashTable

    Thrown when an application is trying to use or access an object whose reference equals to null. You are probably trying to use a reference that points to no location in memory as though it were referencing an object.

  2. Unable to load the provided class through reflection

    To get more information on how to properly load a class, check this answer

  3. Unable to load provided class or class name is null
    No solution
Error patternsPackagesClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Trying to put null to a HashTable

java.lang.NullPointerException
java.util.Hashtable.put
713Web pages
1Solution
NullPointerExceptionHashtable.put()713

Unable to load the provided class through reflection

java.lang.NoClassDefFoundError
java.lang.Class.getDeclaredMethods0
706Web pages
1Solution
NoClassDefFoundErrorClass.getDeclaredMethods0()706

Unable to load provided class or class name is null

javax.naming.NoInitialContextException
javax.naming.spi.NamingManager.getInitialContext
703Web pages
NoInitialContextExceptionNamingManager.getInitialContext()703

Net.bind() has thrown a BindException

java.net.BindException
2 frames hidden
sun.nio.ch.Net.bind
698Web pages
BindExceptionNet.bind()698

URLClassLoader$1.run() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
5 frames hidden
java.net.URLClassLoader$1.run
697Web pages
NoClassDefFoundErrorURLClassLoader$1.run()697

FileOutputStream.open() has thrown a FileNotFoundException

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

SocketInputStream.read() has thrown a SocketException

java.net.SocketException
1 frames hidden
java.net.SocketInputStream.read
697Web pages
SocketExceptionSocketInputStream.read()697

AccessController.doPrivileged() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
6 frames hidden
java.security.AccessController.doPrivileged
694Web pages
NoClassDefFoundErrorAccessController.doPrivileged()694

NativeConstructorAccessorImpl.newInstance() has thrown a WebDriverException

org.openqa.selenium.WebDriverException
1 frames hidden
sun.reflect.NativeConstructorAccessorImpl.newInstance
693Web pages
WebDriverExceptionNativeConstructorAccessorImpl.newInstance()693

URLClassLoader.findClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
7 frames hidden
java.net.URLClassLoader.findClass
692Web pages
NoClassDefFoundErrorURLClassLoader.findClass()692

PlainSocketImpl.bind() has thrown a BindException

java.net.BindException
1 frames hidden
java.net.PlainSocketImpl.bind
692Web pages
BindExceptionPlainSocketImpl.bind()692

DelegatingConstructorAccessorImpl.newInstance() has thrown a WebDriverException

org.openqa.selenium.WebDriverException
2 frames hidden
sun.reflect.DelegatingConstructorAccessorImpl.newInstance
690Web pages
WebDriverExceptionDelegatingConstructorAccessorImpl.newInstance()690

Conflict between library/dependency versions

java.lang.IncompatibleClassChangeError
java.lang.ClassLoader.defineClass1
690Web pages
IncompatibleClassChangeErrorClassLoader.defineClass1()690

Socket.connect() has thrown a ConnectException

java.net.ConnectException
4 frames hidden
java.net.Socket.connect
689Web pages
ConnectExceptionSocket.connect()689

Constructor.newInstance() has thrown a WebDriverException

org.openqa.selenium.WebDriverException
3 frames hidden
java.lang.reflect.Constructor.newInstance
688Web pages
WebDriverExceptionConstructor.newInstance()688

FileOutputStream.<init>() has thrown a FileNotFoundException

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

EventQueue.dispatchEvent() has thrown a ClassCastException

java.lang.ClassCastException
33 frames hidden
java.awt.EventQueue.dispatchEvent
680Web pages
ClassCastExceptionEventQueue.dispatchEvent()680

Class.getConstructor0() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
2 frames hidden
java.lang.Class.getConstructor0
679Web pages
NoClassDefFoundErrorClass.getConstructor0()679

InitialContext.getDefaultInitCtx() has thrown a NoInitialContextException

javax.naming.NoInitialContextException
1 frames hidden
javax.naming.InitialContext.getDefaultInitCtx
677Web pages
NoInitialContextExceptionInitialContext.getDefaultInitCtx()677

Unable to convert String to Integer due to non-numeric String data

java.lang.NumberFormatException
1 frames hidden
java.lang.Integer.parseInt
676Web pages
NumberFormatExceptionInteger.parseInt()676

Unable to retrieve method from class using reflection

java.lang.NoSuchMethodException
java.lang.Class.getMethod
670Web pages
1Solution
NoSuchMethodExceptionClass.getMethod()670

ServerSocketChannelImpl.bind() has thrown a BindException

java.net.BindException
3 frames hidden
sun.nio.ch.ServerSocketChannelImpl.bind
669Web pages
BindExceptionServerSocketChannelImpl.bind()669

EventDispatchThread.run() has thrown a ClassCastException

java.lang.ClassCastException
40 frames hidden
java.awt.EventDispatchThread.run
667Web pages
ClassCastExceptionEventDispatchThread.run()667

Exhausted or terminated threadpool executor rejecting request for new tasks

java.util.concurrent.RejectedExecutionException
1 frames hidden
java.util.concurrent.ThreadPoolExecutor.reject
664Web pages
RejectedExecutionExceptionThreadPoolExecutor.reject()664

ClassLoader.loadClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
8 frames hidden
java.lang.ClassLoader.loadClass
664Web pages
NoClassDefFoundErrorClassLoader.loadClass()664

Class version not compatible with JRE

java.lang.UnsupportedClassVersionError
java.lang.ClassLoader.defineClass0
662Web pages
UnsupportedClassVersionErrorClassLoader.defineClass0()662

Class.privateGetDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.Class.privateGetDeclaredMethods
652Web pages
NoClassDefFoundErrorClass.privateGetDeclaredMethods()652

Source and target array size mismatch, trying to copy an array of larger size to a smaller one

java.lang.ArrayIndexOutOfBoundsException
java.lang.System.arraycopy
647Web pages
ArrayIndexOutOfBoundsExceptionSystem.arraycopy()647

ClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
1 frames hidden
java.lang.ClassLoader.defineClass
646Web pages
UnsupportedClassVersionErrorClassLoader.defineClass()646

No matching ENUM found for the given string

java.lang.IllegalArgumentException
java.lang.Enum.valueOf
644Web pages
1Solution
IllegalArgumentExceptionEnum.valueOf()644

Network issue or Client/Server abruptly disconnected

java.io.IOException
sun.nio.ch.FileDispatcherImpl.read0
636Web pages
IOExceptionFileDispatcherImpl.read0()636

ClassLoader.defineClass() has thrown a ClassFormatError

java.lang.ClassFormatError
1 frames hidden
java.lang.ClassLoader.defineClass
635Web pages
ClassFormatErrorClassLoader.defineClass()635

AbstractPlainSocketImpl.connect() has thrown an UnknownHostException

java.net.UnknownHostException
java.net.AbstractPlainSocketImpl.connect
633Web pages
UnknownHostExceptionAbstractPlainSocketImpl.connect()633

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
11 frames hidden
java.lang.ClassLoader.loadClass
633Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()633

ServerSocketAdaptor.bind() has thrown a BindException

java.net.BindException
4 frames hidden
sun.nio.ch.ServerSocketAdaptor.bind
627Web pages
1Solution
BindExceptionServerSocketAdaptor.bind()627

Thread.start0() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.lang.Thread.start0
624Web pages
OutOfMemoryErrorThread.start0()624

Class.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
java.lang.Class.forName
620Web pages
ClassNotFoundExceptionClass.forName()620

HttpsURLConnectionImpl.getInputStream() has thrown an IOException

java.io.IOException
2 frames hidden
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream
618Web pages
IOExceptionHttpsURLConnectionImpl.getInputStream()618

ResourceBundle.getBundleImpl() has thrown a MissingResourceException

java.util.MissingResourceException
1 frames hidden
java.util.ResourceBundle.getBundleImpl
617Web pages
MissingResourceExceptionResourceBundle.getBundleImpl()617

Vector.elementAt() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
java.util.Vector.elementAt
617Web pages
ArrayIndexOutOfBoundsExceptionVector.elementAt()617

Object.wait() has thrown an InterruptedException

java.lang.InterruptedException
java.lang.Object.wait
617Web pages
InterruptedExceptionObject.wait()617

SocketDispatcher.read() has thrown an IOException

java.io.IOException
1 frames hidden
sun.nio.ch.SocketDispatcher.read
616Web pages
IOExceptionSocketDispatcher.read()616

InitialContext.getURLOrDefaultInitCtx() has thrown a NoInitialContextException

javax.naming.NoInitialContextException
2 frames hidden
javax.naming.InitialContext.getURLOrDefaultInitCtx
610Web pages
NoInitialContextExceptionInitialContext.getURLOrDefaultInitCtx()610

ServerSocket.bind() has thrown a BindException

java.net.BindException
2 frames hidden
java.net.ServerSocket.bind
610Web pages
BindExceptionServerSocket.bind()610

InetAddress.lookupHostByName() has thrown a NetworkOnMainThreadException

android.os.NetworkOnMainThreadException
1 frames hidden
java.net.InetAddress.lookupHostByName
609Web pages
NetworkOnMainThreadExceptionInetAddress.lookupHostByName()609

IOUtil.readIntoNativeBuffer() has thrown an IOException

java.io.IOException
2 frames hidden
sun.nio.ch.IOUtil.readIntoNativeBuffer
609Web pages
IOExceptionIOUtil.readIntoNativeBuffer()609

Creating a java.io.File with null path

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

ResourceBundle.getBundle() has thrown a MissingResourceException

java.util.MissingResourceException
2 frames hidden
java.util.ResourceBundle.getBundle
609Web pages
MissingResourceExceptionResourceBundle.getBundle()609

IOUtil.read() has thrown an IOException

java.io.IOException
3 frames hidden
sun.nio.ch.IOUtil.read
603Web pages
IOExceptionIOUtil.read()603

Failed to read socket

java.io.IOException
4 frames hidden
sun.nio.ch.SocketChannelImpl.read
600Web pages
IOExceptionSocketChannelImpl.read()600
Nothing to list here.
Nothing to list here.
Nothing to list here.
Nothing to list here.