1. Explore
  2. »
  3. Java Runtime

Java Runtime errors

Core environment and runtime library

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

Top patterns

  1. ArrayList$Itr.next() has thrown a ConcurrentModificationException
    No solution
  2. Error using java Reflections, argument mismatch or provided object is not an instance of the expected class

    Check the following:

    • The arguments provided to Class.getMethod() matches the parameters of the method of the object/class you are using reflection on.
    • Ensure that when you are invoking the method using Method.invoke() that you are providing an instance of the class and not the class itself. You can get an instance of a class using Class.newInstance() method.
  3. URLClassLoader$1.run() has thrown an UnsupportedClassVersionError
    No solution
Error patternsPackagesClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

ArrayList$Itr.next() has thrown a ConcurrentModificationException

java.util.ConcurrentModificationException
1 frames hidden
java.util.ArrayList$Itr.next
943Web pages
ConcurrentModificationExceptionArrayList$Itr.next()943

Error using java Reflections, argument mismatch or provided object is not an instance of the expected class

java.lang.IllegalArgumentException
sun.reflect.NativeMethodAccessorImpl.invoke0
936Web pages
1Solution
IllegalArgumentExceptionNativeMethodAccessorImpl.invoke0()936

URLClassLoader$1.run() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
6 frames hidden
java.net.URLClassLoader$1.run
934Web pages
UnsupportedClassVersionErrorURLClassLoader$1.run()934

DelegatingMethodAccessorImpl.invoke() has thrown an InvocationTargetException

java.lang.reflect.InvocationTargetException
2 frames hidden
sun.reflect.DelegatingMethodAccessorImpl.invoke
933Web pages
InvocationTargetExceptionDelegatingMethodAccessorImpl.invoke()933

URL.<init>() has thrown a MalformedURLException

java.net.MalformedURLException
2 frames hidden
java.net.URL.<init>
933Web pages
MalformedURLExceptionURL.<init>()933

URLClassLoader.findClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
8 frames hidden
java.net.URLClassLoader.findClass
931Web pages
UnsupportedClassVersionErrorURLClassLoader.findClass()931

Method.invoke() has thrown an InvocationTargetException

java.lang.reflect.InvocationTargetException
3 frames hidden
java.lang.reflect.Method.invoke
906Web pages
InvocationTargetExceptionMethod.invoke()906

SecureClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
3 frames hidden
java.security.SecureClassLoader.defineClass
904Web pages
UnsupportedClassVersionErrorSecureClassLoader.defineClass()904

NativeMethodAccessorImpl.invoke() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
sun.reflect.NativeMethodAccessorImpl.invoke
897Web pages
IllegalArgumentExceptionNativeMethodAccessorImpl.invoke()897

DelegatingMethodAccessorImpl.invoke() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
2 frames hidden
sun.reflect.DelegatingMethodAccessorImpl.invoke
889Web pages
1Solution
IllegalArgumentExceptionDelegatingMethodAccessorImpl.invoke()889

ObjectOutputStream.defaultWriteFields() has thrown a NotSerializableException

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

Trying to run application as standalone instead of inside a container or application server

java.lang.ClassFormatError
java.lang.ClassLoader.defineClass1
883Web pages
ClassFormatErrorClassLoader.defineClass1()883

ProcessImpl.start() has thrown an IOException

java.io.IOException
2 frames hidden
java.lang.ProcessImpl.start
880Web pages
IOExceptionProcessImpl.start()880

Missing jar file containing class in WEB-INF/lib directory of the project

java.lang.NoClassDefFoundError
java.lang.Class.getDeclaredConstructors0
874Web pages
NoClassDefFoundErrorClass.getDeclaredConstructors0()874

AbstractPlainSocketImpl.doConnect() has thrown a ConnectException

java.net.ConnectException
2 frames hidden
java.net.AbstractPlainSocketImpl.doConnect
871Web pages
ConnectExceptionAbstractPlainSocketImpl.doConnect()871

ProcessBuilder.start() has thrown an IOException

java.io.IOException
3 frames hidden
java.lang.ProcessBuilder.start
869Web pages
1Solution
IOExceptionProcessBuilder.start()869

Method.invoke() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
java.lang.reflect.Method.invoke
869Web pages
IllegalArgumentExceptionMethod.invoke()869

AbstractPlainSocketImpl.connectToAddress() has thrown a ConnectException

java.net.ConnectException
3 frames hidden
java.net.AbstractPlainSocketImpl.connectToAddress
867Web pages
ConnectExceptionAbstractPlainSocketImpl.connectToAddress()867

JComponent.paintToOffscreen() has thrown a ClassCastException

java.lang.ClassCastException
12 frames hidden
javax.swing.JComponent.paintToOffscreen
865Web pages
ClassCastExceptionJComponent.paintToOffscreen()865

AbstractPlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
4 frames hidden
java.net.AbstractPlainSocketImpl.connect
865Web pages
ConnectExceptionAbstractPlainSocketImpl.connect()865

PlainSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
5 frames hidden
java.net.PlainSocketImpl.connect
859Web pages
ConnectExceptionPlainSocketImpl.connect()859

ObjectOutputStream.writeSerialData() has thrown a NotSerializableException

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

URLClassLoader.defineClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
4 frames hidden
java.net.URLClassLoader.defineClass
848Web pages
UnsupportedClassVersionErrorURLClassLoader.defineClass()848

SocksSocketImpl.connect() has thrown a ConnectException

java.net.ConnectException
6 frames hidden
java.net.SocksSocketImpl.connect
845Web pages
ConnectExceptionSocksSocketImpl.connect()845

ObjectOutputStream.writeOrdinaryObject() has thrown a NotSerializableException

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

URLClassLoader.access$000() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
5 frames hidden
java.net.URLClassLoader.access$000
842Web pages
UnsupportedClassVersionErrorURLClassLoader.access$000()842

Socket.connect() has thrown a ConnectException

java.net.ConnectException
7 frames hidden
java.net.Socket.connect
842Web pages
1Solution
ConnectExceptionSocket.connect()842

URLClassLoader$1.run() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
6 frames hidden
java.net.URLClassLoader$1.run
840Web pages
UnsupportedClassVersionErrorURLClassLoader$1.run()840

URLClassLoader.findClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
8 frames hidden
java.net.URLClassLoader.findClass
837Web pages
UnsupportedClassVersionErrorURLClassLoader.findClass()837

ObjectOutputStream.writeObject0() has thrown a NotSerializableException

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

Class.forName0() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
7 frames hidden
java.lang.Class.forName0
824Web pages
ClassNotFoundExceptionClass.forName0()824

Failed to load a class specified by the class name as a string

java.lang.ClassNotFoundException
8 frames hidden
java.lang.Class.forName
819Web pages
1Solution
ClassNotFoundExceptionClass.forName()819

Class.privateGetDeclaredConstructors() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
1 frames hidden
java.lang.Class.privateGetDeclaredConstructors
817Web pages
NoClassDefFoundErrorClass.privateGetDeclaredConstructors()817

Socket.<init>() has thrown a ConnectException

java.net.ConnectException
7 frames hidden
java.net.Socket.<init>
811Web pages
ConnectExceptionSocket.<init>()811

Socket.<init>() has thrown a ConnectException

java.net.ConnectException
8 frames hidden
java.net.Socket.<init>
807Web pages
ConnectExceptionSocket.<init>()807

URLClassLoader.access$100() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
4 frames hidden
java.net.URLClassLoader.access$100
802Web pages
NoClassDefFoundErrorURLClassLoader.access$100()802

Provided String does not consist of real numbers

java.lang.NumberFormatException
sun.misc.FloatingDecimal.readJavaFormatString
798Web pages
NumberFormatExceptionFloatingDecimal.readJavaFormatString()798

URI parsing failed due to un-encoded url string

java.net.URISyntaxException
java.net.URI$Parser.fail
797Web pages
1Solution
URISyntaxExceptionURI$Parser.fail()797

Class.getConstructor0() has thrown a NoSuchMethodException

java.lang.NoSuchMethodException
java.lang.Class.getConstructor0
793Web pages
1Solution
NoSuchMethodExceptionClass.getConstructor0()793

URLClassLoader.defineClass() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
3 frames hidden
java.net.URLClassLoader.defineClass
784Web pages
NoClassDefFoundErrorURLClassLoader.defineClass()784

Runtime.load0() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
3 frames hidden
java.lang.Runtime.load0
784Web pages
UnsatisfiedLinkErrorRuntime.load0()784

URLClassLoader$1.run() has thrown a NoClassDefFoundError

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

Connection trying to bind to an address already in use

java.net.BindException
sun.nio.ch.Net.bind0
778Web pages
BindExceptionNet.bind0()778

ClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
9 frames hidden
java.lang.ClassLoader.loadClass
776Web pages
UnsupportedClassVersionErrorClassLoader.loadClass()776

System.load() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
4 frames hidden
java.lang.System.load
775Web pages
UnsatisfiedLinkErrorSystem.load()775

Net.bind() has thrown a BindException

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

Unable to start native process (on unix)

java.io.IOException
4 frames hidden
java.lang.ProcessBuilder.start
750Web pages
IOExceptionProcessBuilder.start()750

ZipFile.<init>() has thrown a ZipException

java.util.zip.ZipException
2 frames hidden
java.util.zip.ZipFile.<init>
747Web pages
ZipExceptionZipFile.<init>()747

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
Nothing to list here.
Nothing to list here.
Nothing to list here.
Nothing to list here.