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. ClassPathResource.getInputStream() has thrown a FileNotFoundException

    Use this method to gain access to the ApplicationContext:

    @Autowired
    private ApplicationContext applicationContext;
    

    Check the source of this solution for more info

  3. Assert.state() has thrown an IllegalStateException

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


DescriptionException TypeEntry MethodWeb pages

Assert.notNull() has thrown an IllegalArgumentException

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

ClassPathResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.ClassPathResource.getInputStream
356Web pages
1Solution
FileNotFoundExceptionClassPathResource.getInputStream356

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

ClassReader.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.asm.ClassReader.<init>
96Web pages
IllegalArgumentExceptionClassReader.<init>96

ClassReader.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.asm.ClassReader.<init>
96Web pages
IllegalArgumentExceptionClassReader.<init>96

ClassReader.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
2 frames hidden
org.springframework.asm.ClassReader.<init>
95Web pages
IllegalArgumentExceptionClassReader.<init>95

ClassPathResource.getURL() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.ClassPathResource.getURL
91Web pages
FileNotFoundExceptionClassPathResource.getURL91

ResourceUtils.getFile() has thrown a FileNotFoundException

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

GenericConversionService.handleConverterNotFound() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound
72Web pages
ConverterNotFoundExceptionGenericConversionService.handleConverterNotFound72

SimpleMetadataReader.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReader.<init>
70Web pages
IllegalArgumentExceptionSimpleMetadataReader.<init>70

GenericConversionService.convert() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
1 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
68Web pages
ConverterNotFoundExceptionGenericConversionService.convert68

AbstractPropertyResolver.resolveRequiredPlaceholders() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders
67Web pages
IllegalArgumentExceptionAbstractPropertyResolver.resolveRequiredPlaceholders67

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

SimpleMetadataReader.<init>() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReader.<init>
50Web pages
FileNotFoundExceptionSimpleMetadataReader.<init>50

SimpleMetadataReaderFactory.getMetadataReader() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader
50Web pages
FileNotFoundExceptionSimpleMetadataReaderFactory.getMetadataReader50

CachingMetadataReaderFactory.getMetadataReader() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader
48Web pages
IllegalArgumentExceptionCachingMetadataReaderFactory.getMetadataReader48

AbstractFileResolvingResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.core.io.AbstractFileResolvingResource.getFile
43Web pages
FileNotFoundExceptionAbstractFileResolvingResource.getFile43

GenericConversionService.convert() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
2 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
40Web pages
ConverterNotFoundExceptionGenericConversionService.convert40

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

SimpleMetadataReaderFactory.getMetadataReader() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
6 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader
37Web pages
IllegalArgumentExceptionSimpleMetadataReaderFactory.getMetadataReader37

Assert.notNull() has thrown an IllegalArgumentException

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

SimpleMetadataReaderFactory.getMetadataReader() has thrown a FileNotFoundException

java.io.FileNotFoundException
4 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader
31Web pages
FileNotFoundExceptionSimpleMetadataReaderFactory.getMetadataReader31

ClassUtils.forName() has thrown a ClassNotFoundException

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

PropertiesLoaderSupport.loadProperties() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties
29Web pages
FileNotFoundExceptionPropertiesLoaderSupport.loadProperties29

PropertiesLoaderSupport.mergeProperties() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties
29Web pages
FileNotFoundExceptionPropertiesLoaderSupport.mergeProperties29

StandardAnnotationMetadata.getAnnotatedMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
7 frames hidden
org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods
29Web pages
NoClassDefFoundErrorStandardAnnotationMetadata.getAnnotatedMethods29

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

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

StandardAnnotationMetadata.getAnnotatedMethods() has thrown an IllegalStateException

java.lang.ClassNotFoundException
8 frames hidden
org.springframework.core.type.StandardAnnotationMetadata.getAnnotatedMethods
27Web pages
IllegalStateExceptionStandardAnnotationMetadata.getAnnotatedMethods27

UrlResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.core.io.UrlResource.getFile
26Web pages
FileNotFoundExceptionUrlResource.getFile26

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

AbstractFileResolvingResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.core.io.AbstractFileResolvingResource.getFile
23Web pages
FileNotFoundExceptionAbstractFileResolvingResource.getFile23

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

PathMatchingResourcePatternResolver.doFindPathMatchingFileResources() has thrown a FileNotFoundException

java.io.FileNotFoundException
3 frames hidden
org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources
22Web pages
FileNotFoundExceptionPathMatchingResourcePatternResolver.doFindPathMatchingFileResources22

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

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

UrlResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
5 frames hidden
org.springframework.core.io.UrlResource.getInputStream
21Web pages
FileNotFoundExceptionUrlResource.getInputStream21

FileSystemResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.core.io.FileSystemResource.getInputStream
20Web pages
FileNotFoundExceptionFileSystemResource.getInputStream20

LocalVariableTableParameterNameDiscoverer.getParameterNames() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
4 frames hidden
org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames
19Web pages
IllegalArgumentExceptionLocalVariableTableParameterNameDiscoverer.getParameterNames19

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
Package nameClass namePatterns foundSolution coverageSummary coverage
org.springframework.utilReflectionUtils77
org.springframework.utilClassUtils56
org.springframework.utilAssert26
org.springframework.core.convert.supportGenericConversionService24
org.springframework.asmClassReader22
org.springframework.core.type.classreadingCachingMetadataReaderFactory16
org.springframework.core.type.classreadingSimpleMetadataReaderFactory15
org.springframework.cglib.proxyEnhancer14
org.springframework.core.typeStandardAnnotationMetadata13
org.springframework.core.annotationAnnotatedElementUtils13
org.springframework.core.io.supportPropertiesLoaderSupport11
org.springframework.core.convert.supportConversionUtils11
org.springframework.core.ioUrlResource10
org.springframework.core.annotationAnnotationUtils9
org.springframework.core.io.supportPathMatchingResourcePatternResolver8
org.springframework.core.ioClassPathResource8
org.springframework.core.convert.supportDefaultConversionService8
org.springframework.core.type.classreadingSimpleMetadataReader7
org.springframework.core.envAbstractEnvironment7
org.springframework.core.envStandardEnvironment6
org.springframework.utilFileCopyUtils6
org.springframework.cglib.proxyMethodProxy6
org.springframework.core.ioAbstractResource6
org.springframework.coreConfigurableObjectInputStream5
org.springframework.cglib.coreDefaultGeneratorStrategy5
org.springframework.coreGenericTypeResolver5
org.springframework.core.type.classreadingRecursiveAnnotationAttributesVisitor5
org.springframework.core.serializer.supportSerializingConverter5
org.springframework.coreCollectionFactory5
org.springframework.core.io.supportPropertiesLoaderUtils5
org.springframework.utilMethodInvoker4
org.springframework.coreLocalVariableTableParameterNameDiscoverer4
org.springframework.core.io.supportResourcePropertySource4
org.springframework.core.type.filterAbstractTypeHierarchyTraversingFilter4
org.springframework.core.io.supportEncodedResource4
org.springframework.core.ioAbstractFileResolvingResource4
org.springframework.utilPropertyPlaceholderHelper4
org.springframework.core.envAbstractPropertyResolver4
org.springframework.core.envPropertySourcesPropertyResolver3
org.springframework.utilObjectUtils3
org.springframework.utilStreamUtils3
org.springframework.utilNumberUtils3
org.springframework.utilResourceUtils3
org.springframework.core.ioFileSystemResource3
org.springframework.coreBridgeMethodResolver3
org.springframework.utilLog4jConfigurer3
org.springframework.core.io.supportSpringFactoriesLoader3
org.springframework.coreResolvableType3
org.springframework.utilCachingMapDecorator2
org.springframework.corePrioritizedParameterNameDiscoverer2
Package nameClass nameMethod namePatterns foundSolution coverage
org.springframework.utilClassUtilsforName38
org.springframework.utilReflectionUtilsdoWithMethods34
org.springframework.core.convert.supportGenericConversionServiceconvert19
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReader16
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReader15
org.springframework.utilReflectionUtilsgetDeclaredMethods13
org.springframework.core.convert.supportConversionUtilsinvokeConverter11
org.springframework.asmClassReaderaccept10
org.springframework.utilReflectionUtilsinvokeMethod10
org.springframework.core.io.supportPropertiesLoaderSupportmergeProperties9
org.springframework.utilClassUtilsresolveClassName8
org.springframework.core.ioUrlResourcegetInputStream7
org.springframework.core.type.classreadingSimpleMetadataReader<init>7
org.springframework.utilAssertnotNull6
org.springframework.cglib.proxyMethodProxyinvoke6
org.springframework.core.typeStandardAnnotationMetadatagetAnnotatedMethods6
org.springframework.core.io.supportPathMatchingResourcePatternResolvergetResources6
org.springframework.core.typeStandardAnnotationMetadatahasAnnotatedMethods5
org.springframework.core.type.classreadingRecursiveAnnotationAttributesVisitorvisitEnd5
org.springframework.cglib.coreDefaultGeneratorStrategygenerate5
org.springframework.asmClassReader<init>5
org.springframework.core.annotationAnnotationUtilsfindAnnotation5
org.springframework.utilFileCopyUtilscopy5
org.springframework.core.serializer.supportSerializingConverterconvert5
org.springframework.core.envStandardEnvironment<init>5
org.springframework.cglib.proxyEnhancercreateHelper4
org.springframework.utilReflectionUtilsdoWithLocalFields4
org.springframework.coreLocalVariableTableParameterNameDiscoverergetParameterNames4
org.springframework.coreConfigurableObjectInputStream<init>4
org.springframework.core.envAbstractEnvironmentgetProperty4
org.springframework.cglib.proxyEnhancercreateClass4
org.springframework.core.ioClassPathResourcegetInputStream4
org.springframework.core.io.supportResourcePropertySource<init>4
org.springframework.utilReflectionUtilsgetUniqueDeclaredMethods4
org.springframework.core.convert.supportDefaultConversionServiceaddDefaultConverters4
org.springframework.core.type.filterAbstractTypeHierarchyTraversingFiltermatch4
org.springframework.core.annotationAnnotatedElementUtilsprocess4
org.springframework.coreGenericTypeResolvergetTypeVariableMap3
org.springframework.utilAssertisTrue3
org.springframework.core.annotationAnnotatedElementUtilsdoProcess3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSet3
org.springframework.utilAssertstate3
org.springframework.utilAssertisInstanceOf3
org.springframework.utilMethodInvokerinvoke3
org.springframework.utilObjectUtilsnullSafeHashCode3
org.springframework.core.convert.supportDefaultConversionService<init>3
org.springframework.core.io.supportPropertiesLoaderUtilsfillProperties3
org.springframework.coreBridgeMethodResolverfindBridgedMethod3
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholders3
org.springframework.utilLog4jConfigurerinitLogging3
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.springframework.utilReflectionUtilsdoWithMethodsNoClassDefFoundError23
org.springframework.utilClassUtilsforNameClassNotFoundException19
org.springframework.utilReflectionUtilsgetDeclaredMethodsNoClassDefFoundError11
org.springframework.core.convert.supportGenericConversionServiceconvertConversionFailedException9
org.springframework.utilClassUtilsforNameNoClassDefFoundError9
org.springframework.core.io.supportPropertiesLoaderSupportmergePropertiesFileNotFoundException7
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReaderClassNotFoundException5
org.springframework.core.io.supportPathMatchingResourcePatternResolvergetResourcesFileNotFoundException5
org.springframework.core.convert.supportGenericConversionServiceconvertConverterNotFoundException5
org.springframework.utilReflectionUtilsdoWithMethodsIllegalStateException5
org.springframework.utilReflectionUtilsdoWithLocalFieldsNoClassDefFoundError4
org.springframework.core.envStandardEnvironment<init>NoSuchMethodError4
org.springframework.core.convert.supportConversionUtilsinvokeConverterConverterNotFoundException4
org.springframework.cglib.coreDefaultGeneratorStrategygenerateIllegalArgumentException4
org.springframework.core.io.supportResourcePropertySource<init>FileNotFoundException4
org.springframework.asmClassReaderacceptArrayIndexOutOfBoundsException4
org.springframework.utilClassUtilsresolveClassNameIllegalArgumentException4
org.springframework.core.type.classreadingRecursiveAnnotationAttributesVisitorvisitEndClassNotFoundException4
org.springframework.core.serializer.supportSerializingConverterconvertSerializationFailedException4
org.springframework.core.convert.supportConversionUtilsinvokeConverterIllegalArgumentException4
org.springframework.core.typeStandardAnnotationMetadatahasAnnotatedMethodsNoClassDefFoundError4
org.springframework.core.typeStandardAnnotationMetadatagetAnnotatedMethodsNoClassDefFoundError4
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReaderClassNotFoundException4
org.springframework.asmClassReaderacceptClassNotFoundException4
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReaderArrayIndexOutOfBoundsException3
org.springframework.utilReflectionUtilsgetUniqueDeclaredMethodsNoClassDefFoundError3
org.springframework.utilAssertisInstanceOfIllegalArgumentException3
org.springframework.core.ioUrlResourcegetInputStreamUnknownHostException3
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReaderFileNotFoundException3
org.springframework.utilAssertnotNullIllegalArgumentException3
org.springframework.asmClassReader<init>IllegalArgumentException3
org.springframework.core.io.supportPropertiesLoaderUtilsfillPropertiesFileNotFoundException3
org.springframework.core.type.classreadingSimpleMetadataReader<init>IllegalArgumentException3
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReaderIncompatibleClassChangeError3
org.springframework.utilClassUtilsforNameUnsupportedClassVersionError3
org.springframework.utilNumberUtilsparseNumberNumberFormatException3
org.springframework.core.convert.supportGenericConversionServiceconvertIllegalArgumentException3
org.springframework.core.envAbstractEnvironmentgetPropertyIllegalArgumentException3
org.springframework.core.annotationAnnotatedElementUtilsprocessIllegalStateException3
org.springframework.utilClassUtilsresolveClassNameClassNotFoundException3
org.springframework.coreLocalVariableTableParameterNameDiscoverergetParameterNamesIncompatibleClassChangeError3
org.springframework.core.ioUrlResourcegetInputStreamFileNotFoundException3
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReaderNestedIOException3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSetIllegalStateException3
org.springframework.core.ioAbstractFileResolvingResourcelastModifiedFileNotFoundException2
org.springframework.utilReflectionUtilsinvokeMethodIllegalStateException2
org.springframework.core.annotationAnnotatedElementUtilsdoProcessArrayStoreException2
org.springframework.core.annotationAnnotationUtilsfindAnnotationIllegalArgumentException2
org.springframework.utilClassUtilsforNameLinkageError2
org.springframework.asmClassReader<init>ArrayIndexOutOfBoundsException2