»

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
475Web pages
IllegalArgumentExceptionAssert.notNull475

ClassPathResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.ClassPathResource.getInputStream
349Web pages
1Solution
FileNotFoundExceptionClassPathResource.getInputStream349

Assert.state() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.util.Assert.state
201Web pages
1Solution
IllegalStateExceptionAssert.state201

Assert.isTrue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.Assert.isTrue
152Web pages
1Solution
IllegalArgumentExceptionAssert.isTrue152

PropertyPlaceholderHelper.parseStringValue() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.util.PropertyPlaceholderHelper.parseStringValue
119Web pages
IllegalArgumentExceptionPropertyPlaceholderHelper.parseStringValue119

ClassReader.<init>() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
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
87Web pages
FileNotFoundExceptionClassPathResource.getURL87

ResourceUtils.getFile() has thrown a FileNotFoundException

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

GenericConversionService.handleConverterNotFound() has thrown a ConverterNotFoundException

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

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
55Web pages
IllegalArgumentExceptionAssert.notEmpty55

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

ClassPathResource.getInputStream() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
org.springframework.core.io.ClassPathResource.getInputStream
17Web pages
BeanDefinitionStoreExceptionClassPathResource.getInputStream17

Assert.isNull() has thrown an IllegalArgumentException

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

Enhancer.generateClass() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.cglib.proxy.Enhancer.generateClass
15Web pages
IllegalArgumentExceptionEnhancer.generateClass15

DefaultConversionService.addScalarConverters() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
org.springframework.core.convert.support.DefaultConversionService.addScalarConverters
14Web pages
NoSuchMethodErrorDefaultConversionService.addScalarConverters14

Assert.isAssignable() has thrown an IllegalArgumentException

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

PathMatchingResourcePatternResolver.getResources() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
4 frames hidden
org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources
12Web pages
IllegalArgumentExceptionPathMatchingResourcePatternResolver.getResources12

Enhancer.emitConstructors() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.cglib.proxy.Enhancer.emitConstructors
9Web pages
IllegalArgumentExceptionEnhancer.emitConstructors9

GenericConversionService.convert() has thrown a ConverterNotFoundException

org.springframework.core.convert.ConverterNotFoundException
org.springframework.core.convert.support.GenericConversionService.convert
9Web pages
ConverterNotFoundExceptionGenericConversionService.convert9

ClassReader.accept() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
2 frames hidden
org.springframework.asm.ClassReader.accept
9Web pages
ArrayIndexOutOfBoundsExceptionClassReader.accept9

ClassReader.<init>() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
2 frames hidden
org.springframework.asm.ClassReader.<init>
9Web pages
ArrayIndexOutOfBoundsExceptionClassReader.<init>9

SerializableTypeWrapper$TypeProxyInvocationHandler.invoke() has thrown a NullPointerException

java.lang.NullPointerException
org.springframework.core.SerializableTypeWrapper$TypeProxyInvocationHandler.invoke
8Web pages
NullPointerExceptionSerializableTypeWrapper$TypeProxyInvocationHandler.invoke8

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

ClassReader.readUTF8() has thrown an ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException
org.springframework.asm.ClassReader.readUTF8
6Web pages
ArrayIndexOutOfBoundsExceptionClassReader.readUTF86

ReflectionUtils.makeAccessible() has thrown a NullPointerException

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

GenericConversionService.getRequiredTypeInfo() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
org.springframework.core.convert.support.GenericConversionService.getRequiredTypeInfo
6Web pages
NoSuchMethodErrorGenericConversionService.getRequiredTypeInfo6

ReflectionUtils.getDeclaredMethods() has thrown a NoClassDefFoundError

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

MethodProxy.invoke() has thrown an AtlasBaseException

org.apache.atlas.exception.AtlasBaseException
7 frames hidden
org.springframework.cglib.proxy.MethodProxy.invoke
6Web pages
AtlasBaseExceptionMethodProxy.invoke6

AbstractEnvironment.getRequiredProperty() has thrown an IllegalStateException

java.lang.IllegalStateException
1 frames hidden
org.springframework.core.env.AbstractEnvironment.getRequiredProperty
5Web pages
IllegalStateExceptionAbstractEnvironment.getRequiredProperty5

ClassUtils.getMethod() has thrown an IllegalStateException

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

AbstractResource.getFile() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.AbstractResource.getFile
5Web pages
FileNotFoundExceptionAbstractResource.getFile5

SerializingConverter.convert() has thrown a SerializationFailedException

java.lang.IllegalArgumentException
3 frames hidden
org.springframework.core.serializer.support.SerializingConverter.convert
5Web pages
SerializationFailedExceptionSerializingConverter.convert5

AnnotationAttributes.doGet() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.core.annotation.AnnotationAttributes.doGet
5Web pages
IllegalArgumentExceptionAnnotationAttributes.doGet5

CollectionFactory.createConcurrentMap() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.core.CollectionFactory.createConcurrentMap
5Web pages
IllegalStateExceptionCollectionFactory.createConcurrentMap5

PathMatchingResourcePatternResolver.<clinit>() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
org.springframework.core.io.support.PathMatchingResourcePatternResolver.<clinit>
5Web pages
NoClassDefFoundErrorPathMatchingResourcePatternResolver.<clinit>5

MethodProxy.invoke() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.cglib.proxy.MethodProxy.invoke
4Web pages
IllegalArgumentExceptionMethodProxy.invoke4

StandardReflectionParameterNameDiscoverer.getParameterNames() has thrown a NoSuchMethodError

java.lang.NoSuchMethodError
org.springframework.core.StandardReflectionParameterNameDiscoverer.getParameterNames
4Web pages
NoSuchMethodErrorStandardReflectionParameterNameDiscoverer.getParameterNames4

AbstractResource.lastModified() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.AbstractResource.lastModified
4Web pages
FileNotFoundExceptionAbstractResource.lastModified4

DefaultGeneratorStrategy.generate() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
3 frames hidden
org.springframework.cglib.core.DefaultGeneratorStrategy.generate
4Web pages
IllegalArgumentExceptionDefaultGeneratorStrategy.generate4

ReflectionUtils.doWithMethods() has thrown an IllegalStateException

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

ClassPathResource.getInputStream() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
org.springframework.core.io.ClassPathResource.getInputStream
4Web pages
BeanCreationExceptionClassPathResource.getInputStream4

ResourceUtils.getURL() has thrown a FileNotFoundException

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

AnnotatedElementUtils.process() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.core.annotation.AnnotatedElementUtils.process
3Web pages
IllegalStateExceptionAnnotatedElementUtils.process3

GenericConversionService.convert() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.core.convert.support.GenericConversionService.convert
3Web pages
IllegalArgumentExceptionGenericConversionService.convert3

AbstractClassGenerator.create() has thrown a CodeGenerationException

org.springframework.cglib.core.CodeGenerationException
org.springframework.cglib.core.AbstractClassGenerator.create
3Web pages
CodeGenerationExceptionAbstractClassGenerator.create3

CollectionFactory.<clinit>() has thrown a NoClassDefFoundError

java.lang.NoClassDefFoundError
org.springframework.core.CollectionFactory.<clinit>
3Web pages
NoClassDefFoundErrorCollectionFactory.<clinit>3

BridgeMethodResolver.findBridgedMethod() has thrown an IllegalStateException

java.lang.IllegalStateException
org.springframework.core.BridgeMethodResolver.findBridgedMethod
3Web pages
IllegalStateExceptionBridgeMethodResolver.findBridgedMethod3
Nothing to list here.
Nothing to list here.
Nothing to list here.
Nothing to list here.