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
473Web pages
IllegalArgumentExceptionAssert.notNull473

Assert.state() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.util.Assert.state
200Web pages
1Solution
IllegalStateExceptionAssert.state200

Assert.isTrue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isTrue
151Web pages
1Solution
IllegalArgumentExceptionAssert.isTrue151

PropertyPlaceholderHelper.parseStringValue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.PropertyPlaceholderHelper.parseStringValue
118Web pages
IllegalArgumentExceptionPropertyPlaceholderHelper.parseStringValue118

ResourceUtils.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.util.ResourceUtils.getFile
67Web pages
FileNotFoundExceptionResourceUtils.getFile67

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
54Web pages
IllegalArgumentExceptionAssert.notEmpty54

Assert.isInstanceOf() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isInstanceOf
39Web pages
IllegalArgumentExceptionAssert.isInstanceOf39

Assert.hasLength() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.hasLength
19Web pages
IllegalArgumentExceptionAssert.hasLength19

Assert.isNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isNull
15Web pages
IllegalArgumentExceptionAssert.isNull15

Assert.isAssignable() has thrown an IllegalArgumentException

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

ClassUtils.<clinit>() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
org.springframework.util.ClassUtils.<clinit>
8Web pages
NoClassDefFoundErrorClassUtils.<clinit>8

ClassUtils.resolveClassName() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.ClassUtils.resolveClassName
7Web pages
IllegalArgumentExceptionClassUtils.resolveClassName7

ReflectionUtils.makeAccessible() has thrown a NullPointerException

java.lang.NullPointerException
org.springframework.util.ReflectionUtils.makeAccessible
6Web pages
NullPointerExceptionReflectionUtils.makeAccessible6

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
org.springframework.util.ReflectionUtils.getDeclaredMethods
6Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods6

ClassUtils.getMethod() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.util.ClassUtils.getMethod
5Web pages
IllegalStateExceptionClassUtils.getMethod5

ReflectionUtils.doWithMethods() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
4Web pages
IllegalStateExceptionReflectionUtils.doWithMethods4

ReflectionUtils.handleReflectionException() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.util.ReflectionUtils.handleReflectionException
3Web pages
IllegalStateExceptionReflectionUtils.handleReflectionException3

ResourceUtils.getURL() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.util.ResourceUtils.getURL
3Web pages
FileNotFoundExceptionResourceUtils.getURL3

ObjectUtils.nullSafeHashCode() has thrown a StackOverflowError

java.lang.StackOverflowError
org.springframework.util.ObjectUtils.nullSafeHashCode
2Web pages
StackOverflowErrorObjectUtils.nullSafeHashCode2

ReflectionUtils.rethrowRuntimeException() has thrown an UndeclaredThrowableException

java.lang.reflect.UndeclaredThrowableException
org.springframework.util.ReflectionUtils.rethrowRuntimeException
2Web pages
UndeclaredThrowableExceptionReflectionUtils.rethrowRuntimeException2

ClassUtils.getMostSpecificMethod() has thrown a NegativeArraySizeException

java.lang.NegativeArraySizeException
5 frames hidden
org.springframework.util.ClassUtils.getMostSpecificMethod
2Web pages
NegativeArraySizeExceptionClassUtils.getMostSpecificMethod2

ReflectionUtils.invokeMethod() has thrown a NullPointerException

java.lang.NullPointerException
org.springframework.util.ReflectionUtils.invokeMethod
2Web pages
NullPointerExceptionReflectionUtils.invokeMethod2

Assert.notNull() has thrown an InvalidDataAccessApiUsageException

org.springframework.dao.InvalidDataAccessApiUsageException
org.springframework.util.Assert.notNull
1Web pages
InvalidDataAccessApiUsageExceptionAssert.notNull1

Assert.isInstanceOf() has thrown an IllegalArgumentException

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

ClassUtils.forName() has thrown a JdbcAuditTrailManager

com.github.inspektr.audit.support.JdbcAuditTrailManager
4 frames hidden
org.springframework.util.ClassUtils.forName
1Web pages
JdbcAuditTrailManagerClassUtils.forName1

Assert.state() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
org.springframework.util.Assert.state
1Web pages
BeanCreationExceptionAssert.state1

Log4jConfigurer.initLogging() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
org.springframework.util.Log4jConfigurer.initLogging
1Web pages
NoClassDefFoundErrorLog4jConfigurer.initLogging1

Assert.isTrue() has thrown an InvalidDataAccessApiUsageException

org.springframework.dao.InvalidDataAccessApiUsageException
org.springframework.util.Assert.isTrue
1Web pages
InvalidDataAccessApiUsageExceptionAssert.isTrue1

ClassUtils.isVisible() has thrown a NullPointerException

java.lang.NullPointerException
org.springframework.util.ClassUtils.isVisible
0Web pages
NullPointerExceptionClassUtils.isVisible0

SerializationUtils.serialize() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.SerializationUtils.serialize
0Web pages
IllegalArgumentExceptionSerializationUtils.serialize0
Package nameClass namePatterns foundSolution coverageSummary coverage
org.springframework.utilReflectionUtils50
org.springframework.utilClassUtils46
org.springframework.utilAssert22
org.springframework.utilPropertyPlaceholderHelper4
org.springframework.utilFileCopyUtils3
org.springframework.utilNumberUtils3
org.springframework.utilStreamUtils3
org.springframework.utilResourceUtils3
org.springframework.utilLog4jConfigurer3
org.springframework.utilObjectUtils3
org.springframework.utilCachingMapDecorator1
org.springframework.utilSystemPropertyUtils1
org.springframework.utilFastByteArrayOutputStream1
org.springframework.utilMethodInvoker1
org.springframework.utilSerializationUtils1
Package nameClass nameMethod namePatterns foundSolution coverage
org.springframework.utilClassUtilsforName31
org.springframework.utilReflectionUtilsdoWithMethods19
org.springframework.utilReflectionUtilsgetDeclaredMethods8
org.springframework.utilReflectionUtilsinvokeMethod8
org.springframework.utilClassUtilsresolveClassName7
org.springframework.utilReflectionUtilsdoWithLocalFields4
org.springframework.utilAssertnotNull4
org.springframework.utilLog4jConfigurerinitLogging3
org.springframework.utilAssertisTrue3
org.springframework.utilAssertisInstanceOf3
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholders3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSet3
org.springframework.utilNumberUtilsparseNumber3
org.springframework.utilAssertstate3
org.springframework.utilObjectUtilsnullSafeHashCode3
org.springframework.utilAsserthasText2
org.springframework.utilStreamUtilscopy2
org.springframework.utilAssertnotEmpty2
org.springframework.utilAssertisAssignable2
org.springframework.utilAsserthasLength2
org.springframework.utilFileCopyUtilscopy2
org.springframework.utilReflectionUtilsgetDeclaredFields2
org.springframework.utilResourceUtilsgetFile2
org.springframework.utilReflectionUtilsmakeAccessible2
org.springframework.utilFileCopyUtilscopyToByteArray1
org.springframework.utilSerializationUtilsserialize1
org.springframework.utilStreamUtilscopyToByteArray1
org.springframework.utilReflectionUtilssetField1
org.springframework.utilPropertyPlaceholderHelperparseStringValue1
org.springframework.utilReflectionUtilsdoWithLocalMethods1
org.springframework.utilSystemPropertyUtilsresolvePlaceholders1
org.springframework.utilMethodInvokerprepare1
org.springframework.utilAssertisNull1
org.springframework.utilReflectionUtilsdoWithFields1
org.springframework.utilCachingMapDecoratorget1
org.springframework.utilClassUtilsgetMostSpecificMethod1
org.springframework.utilReflectionUtilsfindMethod1
org.springframework.utilClassUtils<clinit>1
org.springframework.utilClassUtilsgetShortName1
org.springframework.utilClassUtilsisVisible1
org.springframework.utilReflectionUtilshandleReflectionException1
org.springframework.utilFastByteArrayOutputStreamresize1
org.springframework.utilResourceUtilsgetURL1
org.springframework.utilReflectionUtilsrethrowRuntimeException1
org.springframework.utilClassUtilsgetMethod1
org.springframework.utilReflectionUtilsgetUniqueDeclaredMethods1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.springframework.utilClassUtilsforNameClassNotFoundException17
org.springframework.utilReflectionUtilsdoWithMethodsNoClassDefFoundError12
org.springframework.utilReflectionUtilsgetDeclaredMethodsNoClassDefFoundError6
org.springframework.utilClassUtilsforNameNoClassDefFoundError4
org.springframework.utilReflectionUtilsdoWithLocalFieldsNoClassDefFoundError4
org.springframework.utilClassUtilsforNameUnsupportedClassVersionError3
org.springframework.utilAssertisInstanceOfIllegalArgumentException3
org.springframework.utilReflectionUtilsdoWithMethodsIllegalStateException3
org.springframework.utilClassUtilsresolveClassNameClassNotFoundException3
org.springframework.utilNumberUtilsparseNumberNumberFormatException3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSetIllegalStateException3
org.springframework.utilClassUtilsresolveClassNameIllegalArgumentException3
org.springframework.utilAssertnotNullIllegalArgumentException3
org.springframework.utilAsserthasLengthIllegalArgumentException2
org.springframework.utilObjectUtilsnullSafeHashCodeStackOverflowError2
org.springframework.utilAssertisTrueIllegalArgumentException2
org.springframework.utilAssertisAssignableIllegalArgumentException2
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholdersIllegalArgumentException2
org.springframework.utilAsserthasTextIllegalArgumentException2
org.springframework.utilResourceUtilsgetFileFileNotFoundException2
org.springframework.utilReflectionUtilsinvokeMethodIllegalArgumentException2
org.springframework.utilReflectionUtilsgetDeclaredFieldsNoClassDefFoundError2
org.springframework.utilLog4jConfigurerinitLoggingNoClassDefFoundError2
org.springframework.utilReflectionUtilsinvokeMethodIllegalStateException2
org.springframework.utilAssertstateIllegalStateException2
org.springframework.utilClassUtilsforNameLinkageError2
org.springframework.utilAssertnotEmptyIllegalArgumentException2
org.springframework.utilFileCopyUtilscopyToByteArrayIllegalArgumentException1
org.springframework.utilCachingMapDecoratorgetRuntimeException1
org.springframework.utilFastByteArrayOutputStreamresizeIllegalArgumentException1
org.springframework.utilClassUtilsforNameIllegalArgumentException1
org.springframework.utilPropertyPlaceholderHelperparseStringValueIllegalArgumentException1
org.springframework.utilReflectionUtilsfindMethodIllegalArgumentException1
org.springframework.utilReflectionUtilsinvokeMethodRuntimeException1
org.springframework.utilAssertisNullIllegalArgumentException1
org.springframework.utilClassUtilsforNameLangNamespaceHandler1
org.springframework.utilAssertnotNullInvalidDataAccessApiUsageException1
org.springframework.utilReflectionUtilshandleReflectionExceptionIllegalStateException1
org.springframework.utilReflectionUtilsrethrowRuntimeExceptionUndeclaredThrowableException1
org.springframework.utilReflectionUtilsdoWithMethodsVerifyError1
org.springframework.utilClassUtilsforNameJdbcAuditTrailManager1
org.springframework.utilClassUtilsisVisibleNullPointerException1
org.springframework.utilAssertstateBeanCreationException1
org.springframework.utilReflectionUtilssetFieldIllegalArgumentException1
org.springframework.utilClassUtilsgetMostSpecificMethodNegativeArraySizeException1
org.springframework.utilResourceUtilsgetURLFileNotFoundException1
org.springframework.utilReflectionUtilsmakeAccessibleNullPointerException1
org.springframework.utilClassUtilsforNameSecurityException1
org.springframework.utilMethodInvokerprepareNoSuchMethodException1
org.springframework.utilReflectionUtilsdoWithMethodsClassNotFoundException1