1. Explore
  2. »
  3. Spring Core

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" />

Error patternsPackagesClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Assert.notNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.notNull
471Web pages
IllegalArgumentExceptionAssert.notNull()471

ClassPathResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.ClassPathResource.getInputStream
347Web pages
1Solution
FileNotFoundExceptionClassPathResource.getInputStream()347

Assert.state() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.util.Assert.state
202Web pages
1Solution
IllegalStateExceptionAssert.state()202

Assert.isTrue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isTrue
153Web pages
1Solution
IllegalArgumentExceptionAssert.isTrue()153

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
2 frames hidden
org.springframework.util.ClassUtils.forName
150Web pages
ClassNotFoundExceptionClassUtils.forName()150

PropertyPlaceholderHelper.parseStringValue() has thrown an IllegalArgumentException

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

PropertyPlaceholderHelper.replacePlaceholders() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders
110Web pages
IllegalArgumentExceptionPropertyPlaceholderHelper.replacePlaceholders()110

ClassReader.<init>() has thrown an IllegalArgumentException

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

ClassReader.<init>() has thrown an IllegalArgumentException

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

ClassPathResource.getURL() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.ClassPathResource.getURL
88Web pages
FileNotFoundExceptionClassPathResource.getURL()88

AbstractPropertyResolver.resolveRequiredPlaceholders() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders
71Web pages
IllegalArgumentExceptionAbstractPropertyResolver.resolveRequiredPlaceholders()71

SimpleMetadataReader.<init>() has thrown an IllegalArgumentException

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

ResourceUtils.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.util.ResourceUtils.getFile
64Web pages
FileNotFoundExceptionResourceUtils.getFile()64

GenericConversionService.handleConverterNotFound() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound
63Web pages
ConverterNotFoundExceptionGenericConversionService.handleConverterNotFound()63

Assert.hasText() has thrown an IllegalArgumentException

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

GenericConversionService.convert() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
1 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
59Web pages
ConverterNotFoundExceptionGenericConversionService.convert()59

Assert.notEmpty() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.notEmpty
55Web pages
IllegalArgumentExceptionAssert.notEmpty()55

SimpleMetadataReaderFactory.getMetadataReader() has thrown a FileNotFoundException

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

CachingMetadataReaderFactory.getMetadataReader() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
5 frames hidden
org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader
47Web pages
IllegalArgumentExceptionCachingMetadataReaderFactory.getMetadataReader()47

AbstractFileResolvingResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.core.io.AbstractFileResolvingResource.getFile
39Web pages
FileNotFoundExceptionAbstractFileResolvingResource.getFile()39

Assert.isInstanceOf() has thrown an IllegalArgumentException

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

SimpleMetadataReaderFactory.getMetadataReader() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
6 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader
36Web pages
IllegalArgumentExceptionSimpleMetadataReaderFactory.getMetadataReader()36

GenericConversionService.convert() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
2 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
34Web pages
ConverterNotFoundExceptionGenericConversionService.convert()34

SimpleMetadataReaderFactory.getMetadataReader() has thrown a FileNotFoundException

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

ClassUtils.forName() has thrown a ClassNotFoundException

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

Assert.notNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
1 frames hidden
org.springframework.util.Assert.notNull
30Web pages
IllegalArgumentExceptionAssert.notNull()30

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
7 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
30Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods()30

PropertiesLoaderSupport.mergeProperties() has thrown a FileNotFoundException

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

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
9 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
29Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods()29

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
4 frames hidden
org.springframework.util.ClassUtils.forName
28Web pages
ClassNotFoundExceptionClassUtils.forName()28

ClassUtils.forName() has thrown a ClassNotFoundException

java.lang.ClassNotFoundException
6 frames hidden
org.springframework.util.ClassUtils.forName
28Web pages
ClassNotFoundExceptionClassUtils.forName()28

StandardAnnotationMetadata.getAnnotatedMethods() has thrown an IllegalStateException

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

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
3 frames hidden
org.springframework.util.ReflectionUtils.getDeclaredMethods
26Web pages
NoClassDefFoundErrorReflectionUtils.getDeclaredMethods()26

AbstractFileResolvingResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
1 frames hidden
org.springframework.core.io.AbstractFileResolvingResource.getFile
24Web pages
FileNotFoundExceptionAbstractFileResolvingResource.getFile()24

UrlResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.core.io.UrlResource.getFile
21Web pages
FileNotFoundExceptionUrlResource.getFile()21

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
4 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
21Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods()21

Assert.hasLength() has thrown an IllegalArgumentException

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

NumberUtils.parseNumber() has thrown a NumberFormatException

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

ClassUtils.forName() has thrown a ClassNotFoundException

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

ReflectionUtils.doWithMethods() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
5 frames hidden
org.springframework.util.ReflectionUtils.doWithMethods
19Web pages
NoClassDefFoundErrorReflectionUtils.doWithMethods()19

PathMatchingResourcePatternResolver.doFindPathMatchingFileResources() has thrown a FileNotFoundException

java.io.FileNotFoundException
3 frames hidden
org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingFileResources
18Web pages
FileNotFoundExceptionPathMatchingResourcePatternResolver.doFindPathMatchingFileResources()18

GenericConversionService.convert() has thrown a ConversionFailedException

org.springframework.core.convert.ConversionFailedException
1 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
17Web pages
ConversionFailedExceptionGenericConversionService.convert()17

SimpleMetadataReaderFactory.getMetadataReader() has thrown a FileNotFoundException

java.io.FileNotFoundException
5 frames hidden
org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader
17Web pages
FileNotFoundExceptionSimpleMetadataReaderFactory.getMetadataReader()17

FileSystemResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
2 frames hidden
org.springframework.core.io.FileSystemResource.getInputStream
17Web pages
FileNotFoundExceptionFileSystemResource.getInputStream()17

UrlResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
5 frames hidden
org.springframework.core.io.UrlResource.getInputStream
17Web pages
FileNotFoundExceptionUrlResource.getInputStream()17

ClassPathResource.getInputStream() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
org.springframework.core.io.ClassPathResource.getInputStream
16Web pages
BeanDefinitionStoreExceptionClassPathResource.getInputStream()16

DefaultConversionService.addScalarConverters() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
org.springframework.core.convert.support.DefaultConversionService.addScalarConverters
16Web pages
NoSuchMethodErrorDefaultConversionService.addScalarConverters()16

Assert.isNull() has thrown an IllegalArgumentException

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

ClassUtils.forName() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
4 frames hidden
org.springframework.util.ClassUtils.forName
15Web pages
UnsupportedClassVersionErrorClassUtils.forName()15

StandardAnnotationMetadata.hasAnnotatedMethods() has thrown a NoClassDefFoundError

java.lang.ClassNotFoundException
5 frames hidden
org.springframework.core.type.StandardAnnotationMetadata.hasAnnotatedMethods
15Web pages
NoClassDefFoundErrorStandardAnnotationMetadata.hasAnnotatedMethods()15
Nothing to list here.
Nothing to list here.
Nothing to list here.
Nothing to list here.