»»

java.lang errorsJava Runtime

Top patterns

  1. Unable to convert String to numbers as the provided String is not comprised of real numbers

    Please ensure that the input String is of numeric type.

  2. Class version incompatible with current JRE version
    No solution
  3. Start or end index provided to substring method outside the range of String indices

    Ensure that the start and end indices for the substring are within range of the String's start and end indices

Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Unable to convert String to numbers as the provided String is not comprised of real numbers

java.lang.NumberFormatException
java.lang.NumberFormatException.forInputString
4364Web pages
1Solution
NumberFormatExceptionNumberFormatException.forInputString4364

Class version incompatible with current JRE version

java.lang.UnsupportedClassVersionError
java.lang.ClassLoader.defineClass1
3059Web pages
UnsupportedClassVersionErrorClassLoader.defineClass13059

Start or end index provided to substring method outside the range of String indices

java.lang.StringIndexOutOfBoundsException
java.lang.String.substring
2369Web pages
1Solution
StringIndexOutOfBoundsExceptionString.substring2369

Unable to find library file in java library path

java.lang.UnsatisfiedLinkError
java.lang.ClassLoader.loadLibrary
2334Web pages
UnsatisfiedLinkErrorClassLoader.loadLibrary2334

Incompatible dependency version or class not found in classpath

java.lang.NoClassDefFoundError
java.lang.ClassLoader.defineClass1
2269Web pages
1Solution
NoClassDefFoundErrorClassLoader.defineClass12269

JNI unable to load native library

java.lang.UnsatisfiedLinkError
java.lang.ClassLoader$NativeLibrary.load
2256Web pages
1Solution
UnsatisfiedLinkErrorClassLoader$NativeLibrary.load2256

JNI unable to find native library

java.lang.UnsatisfiedLinkError
java.lang.Runtime.loadLibrary
1399Web pages
UnsatisfiedLinkErrorRuntime.loadLibrary1399

The index provided to String's charAt() method is either greater or equal to the size of the String or less than 0

java.lang.StringIndexOutOfBoundsException
java.lang.String.charAt
1286Web pages
1Solution
StringIndexOutOfBoundsExceptionString.charAt1286

Class not found in classpath, for the class referenced in Class.forName() method

java.lang.NoClassDefFoundError
java.lang.Class.forName0
1179Web pages
NoClassDefFoundErrorClass.forName01179

ProcessBuilder/Runtime unable to create process

java.io.IOException
1 frames hidden
java.lang.ProcessImpl.<init>
960Web pages
IOExceptionProcessImpl.<init>960

ProcessImpl.start() has thrown an IOException

java.io.IOException
2 frames hidden
java.lang.ProcessImpl.start
884Web pages
IOExceptionProcessImpl.start884

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

java.lang.ClassFormatError
java.lang.ClassLoader.defineClass1
878Web pages
ClassFormatErrorClassLoader.defineClass1878

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

java.lang.NoClassDefFoundError
java.lang.Class.getDeclaredConstructors0
867Web pages
NoClassDefFoundErrorClass.getDeclaredConstructors0867

Class.getConstructor0() has thrown a NoSuchMethodException

java.lang.NoSuchMethodException
java.lang.Class.getConstructor0
795Web pages
1Solution
NoSuchMethodExceptionClass.getConstructor0795

Unable to load the provided class through reflection

java.lang.NoClassDefFoundError
java.lang.Class.getDeclaredMethods0
688Web pages
1Solution
NoClassDefFoundErrorClass.getDeclaredMethods0688

Conflict between library/dependency versions

java.lang.IncompatibleClassChangeError
java.lang.ClassLoader.defineClass1
687Web pages
IncompatibleClassChangeErrorClassLoader.defineClass1687

Unable to retrieve method from class using reflection

java.lang.NoSuchMethodException
java.lang.Class.getMethod
669Web pages
1Solution
NoSuchMethodExceptionClass.getMethod669

No matching ENUM found for the given string

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

Class version not compatible with JRE

java.lang.UnsupportedClassVersionError
java.lang.ClassLoader.defineClass0
644Web pages
UnsupportedClassVersionErrorClassLoader.defineClass0644

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
642Web pages
ArrayIndexOutOfBoundsExceptionSystem.arraycopy642

Thread.start0() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.lang.Thread.start0
621Web pages
OutOfMemoryErrorThread.start0621

Object.wait() has thrown an InterruptedException

java.lang.InterruptedException
java.lang.Object.wait
610Web pages
InterruptedExceptionObject.wait610

ProcessBuilder.start() has thrown an IOException

java.io.IOException
java.lang.ProcessBuilder.start
541Web pages
IOExceptionProcessBuilder.start541

ClassLoader.defineClass1() has thrown a VerifyError

java.lang.VerifyError
java.lang.ClassLoader.defineClass1
479Web pages
VerifyErrorClassLoader.defineClass1479

Trying to convert String which is either empty/null or doesn't contain numeric values exclusively

java.lang.NumberFormatException
java.lang.Integer.invalidInt
444Web pages
1Solution
NumberFormatExceptionInteger.invalidInt444

Class.getDeclaredField() has thrown a NoSuchFieldException

java.lang.NoSuchFieldException
java.lang.Class.getDeclaredField
428Web pages
1Solution
NoSuchFieldExceptionClass.getDeclaredField428

Class.forName0() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
java.lang.Class.forName0
396Web pages
ClassNotFoundExceptionClass.forName0396

Class.newInstance0() has thrown an InstantiationException

java.lang.InstantiationException
java.lang.Class.newInstance0
387Web pages
InstantiationExceptionClass.newInstance0387

Thread.dumpStack() has thrown an Exception

java.lang.Exception
java.lang.Thread.dumpStack
384Web pages
ExceptionThread.dumpStack384

ClassLoader.defineClass1() has thrown a LinkageError

java.lang.LinkageError
java.lang.ClassLoader.defineClass1
378Web pages
LinkageErrorClassLoader.defineClass1378

ClassLoader.checkCerts() has thrown a SecurityException

java.lang.SecurityException
java.lang.ClassLoader.checkCerts
350Web pages
SecurityExceptionClassLoader.checkCerts350

ClassLoader.defineClass1() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.lang.ClassLoader.defineClass1
348Web pages
OutOfMemoryErrorClassLoader.defineClass1348

Thread.sleep() has thrown an InterruptedException

java.lang.InterruptedException
java.lang.Thread.sleep
341Web pages
InterruptedExceptionThread.sleep341

UNIXProcess.<init>() has thrown an IOException

java.io.IOException
java.lang.UNIXProcess.<init>
338Web pages
IOExceptionUNIXProcess.<init>338

Class.classForName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
java.lang.Class.classForName
290Web pages
ClassNotFoundExceptionClass.classForName290

Class.cast() has thrown a ClassCastException

java.lang.ClassCastException
java.lang.Class.cast
289Web pages
ClassCastExceptionClass.cast289

ClassLoader.findClass() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
java.lang.ClassLoader.findClass
269Web pages
ClassNotFoundExceptionClassLoader.findClass269

Class.getDeclaredConstructors0() has thrown a VerifyError

java.lang.VerifyError
java.lang.Class.getDeclaredConstructors0
263Web pages
VerifyErrorClass.getDeclaredConstructors0263

ClassLoader.defineClass0() has thrown a ClassFormatError

java.lang.ClassFormatError
java.lang.ClassLoader.defineClass0
260Web pages
ClassFormatErrorClassLoader.defineClass0260

Class.getConstructorOrMethod() has thrown a NoSuchMethodException

java.lang.NoSuchMethodException
java.lang.Class.getConstructorOrMethod
242Web pages
NoSuchMethodExceptionClass.getConstructorOrMethod242

Runtime.loadLibrary0() has thrown an UnsatisfiedLinkError

java.lang.UnsatisfiedLinkError
java.lang.Runtime.loadLibrary0
240Web pages
UnsatisfiedLinkErrorRuntime.loadLibrary0240

Class.newInstanceImpl() has thrown an InstantiationException

java.lang.InstantiationException
java.lang.Class.newInstanceImpl
222Web pages
InstantiationExceptionClass.newInstanceImpl222

Long.parseLong() has thrown a NumberFormatException

java.lang.NumberFormatException
java.lang.Long.parseLong
217Web pages
NumberFormatExceptionLong.parseLong217

Class.getDeclaredMethod() has thrown a NoSuchMethodException

java.lang.NoSuchMethodException
java.lang.Class.getDeclaredMethod
211Web pages
NoSuchMethodExceptionClass.getDeclaredMethod211

Class.isAssignableFrom() has thrown a NullPointerException

java.lang.NullPointerException
java.lang.Class.isAssignableFrom
209Web pages
NullPointerExceptionClass.isAssignableFrom209

Class.forName0() has thrown a VerifyError

java.lang.VerifyError
java.lang.Class.forName0
203Web pages
VerifyErrorClass.forName0203

AbstractStringBuilder.enlargeBuffer() has thrown an OutOfMemoryError

java.lang.OutOfMemoryError
java.lang.AbstractStringBuilder.enlargeBuffer
196Web pages
OutOfMemoryErrorAbstractStringBuilder.enlargeBuffer196

Class.getDeclaredMethods0() has thrown a VerifyError

java.lang.VerifyError
java.lang.Class.getDeclaredMethods0
195Web pages
VerifyErrorClass.getDeclaredMethods0195

String.<init>() has thrown a NullPointerException

java.lang.NullPointerException
java.lang.String.<init>
189Web pages
NullPointerExceptionString.<init>189

Class.getDeclaredFields0() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
java.lang.Class.getDeclaredFields0
185Web pages
NoClassDefFoundErrorClass.getDeclaredFields0185
Nothing to list here.
Nothing to list here.
Nothing to list here.