Spring Core errors

Everything you need beyond the Java language to create enterprise applications in a wide range of scenarios and architectures

https://github.com/spring-projects/spring-framework
Solution coverage:
Summary coverage:

Top patterns

  1. Assert.notNull() has thrown an IllegalArgumentException
    No solution
  2. Assert.state() has thrown an IllegalStateException

    You need to set the type property in your bean XML file. <property name="targetType" value="some value" />

  3. Assert.isTrue() has thrown an IllegalArgumentException

    If you are trying to get a specific page of results, try first defining that page.

    Check the source of this solution for more info


DescriptionException TypeEntry MethodWeb pages

Assert.notNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.notNull
506Web pages
IllegalArgumentExceptionAssert.notNull506

Assert.state() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.util.Assert.state
207Web pages
1Solution
IllegalStateExceptionAssert.state207

Assert.isTrue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isTrue
164Web pages
1Solution
IllegalArgumentExceptionAssert.isTrue164

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
org.springframework.util.ClassUtils.forName
152Web pages
ClassNotFoundExceptionClassUtils.forName152

PropertyPlaceholderHelper.parseStringValue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.PropertyPlaceholderHelper.parseStringValue
112Web pages
IllegalArgumentExceptionPropertyPlaceholderHelper.parseStringValue112

PropertyPlaceholderHelper.replacePlaceholders() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders
103Web pages
IllegalArgumentExceptionPropertyPlaceholderHelper.replacePlaceholders103

ResourceUtils.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.util.ResourceUtils.getFile
72Web pages
FileNotFoundExceptionResourceUtils.getFile72

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
7 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
60Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods60

Assert.hasText() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.hasText
59Web pages
IllegalArgumentExceptionAssert.hasText59

Assert.notEmpty() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.notEmpty
51Web pages
IllegalArgumentExceptionAssert.notEmpty51

Assert.isInstanceOf() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isInstanceOf
50Web pages
IllegalArgumentExceptionAssert.isInstanceOf50

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
6 frames hidden
org.springframework.util.ClassUtils.forName
38Web pages
ClassNotFoundExceptionClassUtils.forName38

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
9 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
38Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods38

Assert.notNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.util.Assert.notNull
35Web pages
IllegalArgumentExceptionAssert.notNull35

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
org.springframework.util.ClassUtils.forName
31Web pages
ClassNotFoundExceptionClassUtils.forName31

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
3 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
28Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods28

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
org.springframework.util.ClassUtils.forName
24Web pages
ClassNotFoundExceptionClassUtils.forName24

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
4 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
23Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods23

Assert.hasLength() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.hasLength
23Web pages
IllegalArgumentExceptionAssert.hasLength23

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
5 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
22Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods22

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
5 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
21Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods21

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
6 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
19Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods19

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
5 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
19Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods19

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
7 frames hidden
org.springframework.util.ClassUtils.forName
19Web pages
ClassNotFoundExceptionClassUtils.forName19

NumberUtils.parseNumber() has thrown a NumberFormatException

java.lang.NumberFormatException
3 frames hidden
org.springframework.util.NumberUtils.parseNumber
19Web pages
NumberFormatExceptionNumberUtils.parseNumber19

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
6 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
18Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods18

Assert.isNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isNull
18Web pages
IllegalArgumentExceptionAssert.isNull18

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
7 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
18Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods18

ReflectionUtils.invokeMethod() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
4 frames hidden
org.springframework.util.ReflectionUtils.invokeMethod
17Web pages
IllegalArgumentExceptionReflectionUtils.invokeMethod17

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
7 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
17Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods17

ReflectionUtils.getDeclaredMethods() has thrown an IllegalStateException

java.lang.ClassNotFoundException
8 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
16Web pages
IllegalStateExceptionReflectionUtils.getDeclaredMethods16

ClassUtils.forName() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
4 frames hidden
org.springframework.util.ClassUtils.forName
16Web pages
UnsupportedClassVersionErrorClassUtils.forName16

ReflectionUtils.doWithMethods() has thrown an IllegalStateException

java.lang.ClassNotFoundException
10 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
15Web pages
IllegalStateExceptionReflectionUtils.doWithMethods15

ReflectionUtils.doWithMethods() has thrown an IllegalStateException

java.lang.ClassNotFoundException
9 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
15Web pages
IllegalStateExceptionReflectionUtils.doWithMethods15

MethodInvoker.prepare() has thrown a NoSuchMethodException

java.lang.NoSuchMethodException
1 frames hidden
org.springframework.util.MethodInvoker.prepare
14Web pages
NoSuchMethodExceptionMethodInvoker.prepare14

Assert.isInstanceOf() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.util.Assert.isInstanceOf
14Web pages
IllegalArgumentExceptionAssert.isInstanceOf14

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
12 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
14Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods14

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
org.springframework.util.ClassUtils.forName
14Web pages
ClassNotFoundExceptionClassUtils.forName14

Assert.isAssignable() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isAssignable
13Web pages
IllegalArgumentExceptionAssert.isAssignable13

ReflectionUtils.getUniqueDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
6 frames hidden
org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods
12Web pages
NoClassDefFoundErrorReflectionUtils.getUniqueDeclaredMethods12

ReflectionUtils.getUniqueDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
13 frames hidden
org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods
11Web pages
NoClassDefFoundErrorReflectionUtils.getUniqueDeclaredMethods11

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
5 frames hidden
org.springframework.util.ClassUtils.forName
11Web pages
ClassNotFoundExceptionClassUtils.forName11

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
3 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
10Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods10

ClassUtils.resolveClassName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
org.springframework.util.ClassUtils.resolveClassName
10Web pages
ClassNotFoundExceptionClassUtils.resolveClassName10

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
4 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
9Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods9

Assert.isTrue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.util.Assert.isTrue
9Web pages
IllegalArgumentExceptionAssert.isTrue9

ClassUtils.resolveClassName() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.ClassUtils.resolveClassName
9Web pages
IllegalArgumentExceptionClassUtils.resolveClassName9

ClassUtils.resolveClassName() has thrown an IllegalArgumentException

java.lang.ClassNotFoundException
4 frames hidden
org.springframework.util.ClassUtils.resolveClassName
9Web pages
IllegalArgumentExceptionClassUtils.resolveClassName9

ClassUtils.forName() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
16 frames hidden
org.springframework.util.ClassUtils.forName
8Web pages
NoClassDefFoundErrorClassUtils.forName8

ClassUtils.forName() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
9 frames hidden
org.springframework.util.ClassUtils.forName
8Web pages
NoClassDefFoundErrorClassUtils.forName8
Package nameClass namePatterns foundSolution coverageSummary coverage
org.springframework.utilReflectionUtils77
org.springframework.utilClassUtils56
org.springframework.utilAssert26
org.springframework.utilFileCopyUtils6
org.springframework.utilMethodInvoker4
org.springframework.utilPropertyPlaceholderHelper4
org.springframework.utilStreamUtils3
org.springframework.utilObjectUtils3
org.springframework.utilNumberUtils3
org.springframework.utilResourceUtils3
org.springframework.utilLog4jConfigurer3
org.springframework.utilCachingMapDecorator2
org.springframework.utilAntPathMatcher1
org.springframework.utilFastByteArrayOutputStream1
org.springframework.utilSystemPropertyUtils1
org.springframework.utilSerializationUtils1
Package nameClass nameMethod namePatterns foundSolution coverage
org.springframework.utilClassUtilsforName38
org.springframework.utilReflectionUtilsdoWithMethods34
org.springframework.utilReflectionUtilsgetDeclaredMethods13
org.springframework.utilReflectionUtilsinvokeMethod10
org.springframework.utilClassUtilsresolveClassName8
org.springframework.utilAssertnotNull6
org.springframework.utilFileCopyUtilscopy5
org.springframework.utilReflectionUtilsdoWithLocalFields4
org.springframework.utilReflectionUtilsgetUniqueDeclaredMethods4
org.springframework.utilObjectUtilsnullSafeHashCode3
org.springframework.utilMethodInvokerinvoke3
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholders3
org.springframework.utilAssertisInstanceOf3
org.springframework.utilNumberUtilsparseNumber3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSet3
org.springframework.utilLog4jConfigurerinitLogging3
org.springframework.utilAssertstate3
org.springframework.utilAssertisTrue3
org.springframework.utilAsserthasText2
org.springframework.utilReflectionUtilsdoWithFields2
org.springframework.utilAsserthasLength2
org.springframework.utilCachingMapDecoratorget2
org.springframework.utilResourceUtilsgetFile2
org.springframework.utilReflectionUtilsdoWithLocalMethods2
org.springframework.utilStreamUtilscopy2
org.springframework.utilReflectionUtilsgetDeclaredFields2
org.springframework.utilAssertnotEmpty2
org.springframework.utilAssertisNull2
org.springframework.utilAssertisAssignable2
org.springframework.utilReflectionUtilsmakeAccessible2
org.springframework.utilPropertyPlaceholderHelperparseStringValue1
org.springframework.utilReflectionUtilsfindMethod1
org.springframework.utilClassUtilsgetMostSpecificMethod1
org.springframework.utilClassUtilsisVisible1
org.springframework.utilAssertnoNullElements1
org.springframework.utilMethodInvokerprepare1
org.springframework.utilReflectionUtilsrethrowRuntimeException1
org.springframework.utilClassUtilsgetShortName1
org.springframework.utilResourceUtilsgetURL1
org.springframework.utilReflectionUtilshandleReflectionException1
org.springframework.utilSerializationUtilsserialize1
org.springframework.utilAntPathMatcherextractUriTemplateVariables1
org.springframework.utilReflectionUtilssetField1
org.springframework.utilClassUtilsconvertClassNameToResourcePath1
org.springframework.utilClassUtils<clinit>1
org.springframework.utilClassUtilsgetMethod1
org.springframework.utilStreamUtilscopyToByteArray1
org.springframework.utilSystemPropertyUtilsresolvePlaceholders1
org.springframework.utilClassUtilsgetAllInterfaces1
org.springframework.utilFileCopyUtilscopyToByteArray1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.springframework.utilReflectionUtilsdoWithMethodsNoClassDefFoundError23
org.springframework.utilClassUtilsforNameClassNotFoundException19
org.springframework.utilReflectionUtilsgetDeclaredMethodsNoClassDefFoundError11
org.springframework.utilClassUtilsforNameNoClassDefFoundError9
org.springframework.utilReflectionUtilsdoWithMethodsIllegalStateException5
org.springframework.utilReflectionUtilsdoWithLocalFieldsNoClassDefFoundError4
org.springframework.utilClassUtilsresolveClassNameIllegalArgumentException4
org.springframework.utilReflectionUtilsgetUniqueDeclaredMethodsNoClassDefFoundError3
org.springframework.utilAssertisInstanceOfIllegalArgumentException3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSetIllegalStateException3
org.springframework.utilAssertnotNullIllegalArgumentException3
org.springframework.utilClassUtilsforNameUnsupportedClassVersionError3
org.springframework.utilNumberUtilsparseNumberNumberFormatException3
org.springframework.utilClassUtilsresolveClassNameClassNotFoundException3
org.springframework.utilReflectionUtilsinvokeMethodIllegalStateException2
org.springframework.utilClassUtilsforNameLinkageError2
org.springframework.utilReflectionUtilsinvokeMethodPSQLException2
org.springframework.utilAssertisNullIllegalArgumentException2
org.springframework.utilReflectionUtilsdoWithMethodsClassNotFoundException2
org.springframework.utilAsserthasTextIllegalArgumentException2
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholdersIllegalArgumentException2
org.springframework.utilMethodInvokerinvokeNoClassDefFoundError2
org.springframework.utilResourceUtilsgetFileFileNotFoundException2
org.springframework.utilLog4jConfigurerinitLoggingNoClassDefFoundError2
org.springframework.utilReflectionUtilsdoWithMethodsVerifyError2
org.springframework.utilAsserthasLengthIllegalArgumentException2
org.springframework.utilAssertnotEmptyIllegalArgumentException2
org.springframework.utilAssertisTrueIllegalArgumentException2
org.springframework.utilReflectionUtilsgetDeclaredFieldsNoClassDefFoundError2
org.springframework.utilAssertisAssignableIllegalArgumentException2
org.springframework.utilObjectUtilsnullSafeHashCodeStackOverflowError2
org.springframework.utilReflectionUtilsinvokeMethodIllegalArgumentException2
org.springframework.utilAssertstateIllegalStateException2
org.springframework.utilFileCopyUtilscopyIOException1
org.springframework.utilPropertyPlaceholderHelperparseStringValueIllegalArgumentException1
org.springframework.utilClassUtilsresolveClassNameNoClassDefFoundError1
org.springframework.utilFileCopyUtilscopyIllegalArgumentException1
org.springframework.utilReflectionUtilsinvokeMethodHibernateException1
org.springframework.utilReflectionUtilsgetDeclaredMethodsIllegalStateException1
org.springframework.utilReflectionUtilsgetDeclaredMethodsVerifyError1
org.springframework.utilMethodInvokerprepareNoSuchMethodException1
org.springframework.utilReflectionUtilsdoWithLocalMethodsIllegalStateException1
org.springframework.utilMethodInvokerinvokeArrayIndexOutOfBoundsException1
org.springframework.utilReflectionUtilsmakeAccessibleNullPointerException1
org.springframework.utilReflectionUtilsdoWithMethodsUnsupportedClassVersionError1
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholdersStackOverflowError1
org.springframework.utilClassUtilsforNameJdbcAuditTrailManager1
org.springframework.utilClassUtilsforNameIllegalStateException1
org.springframework.utilResourceUtilsgetURLFileNotFoundException1
org.springframework.utilAssertnotNullBeanCreationException1