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

ClassPathResource.getInputStream() has thrown a FileNotFoundException

java.io.FileNotFoundException
org.springframework.core.io.ClassPathResource.getInputStream
348Web pages
1Solution
FileNotFoundExceptionClassPathResource.getInputStream348

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

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

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

AnnotationAttributes.doGet() has thrown an IllegalArgumentException

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

SerializingConverter.convert() has thrown a SerializationFailedException

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

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
Package nameClass namePatterns foundSolution coverageSummary coverage
org.springframework.utilReflectionUtils50
org.springframework.utilClassUtils46
org.springframework.cglib.proxyMethodProxy40
org.springframework.utilAssert22
org.springframework.core.convert.supportGenericConversionService18
org.springframework.core.type.classreadingSimpleMetadataReaderFactory14
org.springframework.cglib.proxyEnhancer13
org.springframework.asmClassReader13
org.springframework.core.annotationAnnotatedElementUtils11
org.springframework.core.io.supportPropertiesLoaderSupport10
org.springframework.core.type.classreadingCachingMetadataReaderFactory10
org.springframework.core.convert.supportConversionUtils8
org.springframework.core.ioUrlResource8
org.springframework.core.ioClassPathResource8
org.springframework.core.annotationAnnotationUtils8
org.springframework.core.typeStandardAnnotationMetadata7
org.springframework.core.io.supportPathMatchingResourcePatternResolver7
org.springframework.core.envAbstractEnvironment6
org.springframework.core.ioAbstractResource6
org.springframework.core.envStandardEnvironment6
org.springframework.core.convert.supportDefaultConversionService5
org.springframework.coreConfigurableObjectInputStream5
org.springframework.cglib.coreDefaultGeneratorStrategy4
org.springframework.core.io.supportResourcePropertySource4
org.springframework.core.ioAbstractFileResolvingResource4
org.springframework.utilPropertyPlaceholderHelper4
org.springframework.core.type.classreadingRecursiveAnnotationAttributesVisitor4
org.springframework.core.type.classreadingSimpleMetadataReader4
org.springframework.coreCollectionFactory4
org.springframework.core.io.supportEncodedResource4
org.springframework.core.envAbstractPropertyResolver4
org.springframework.core.io.supportPropertiesLoaderUtils4
org.springframework.coreLocalVariableTableParameterNameDiscoverer4
org.springframework.utilResourceUtils3
org.springframework.utilLog4jConfigurer3
org.springframework.coreGenericTypeResolver3
org.springframework.utilStreamUtils3
org.springframework.utilNumberUtils3
org.springframework.utilFileCopyUtils3
org.springframework.utilObjectUtils3
org.springframework.core.serializer.supportSerializingConverter3
org.springframework.corePrioritizedParameterNameDiscoverer2
org.springframework.core.convert.supportObjectToObjectConverter2
org.springframework.coreBridgeMethodResolver2
org.springframework.coreResolvableType2
org.springframework.core.ioFileSystemResource2
org.springframework.core.type.filterAbstractTypeHierarchyTraversingFilter2
org.springframework.core.envPropertySourcesPropertyResolver2
org.springframework.utilSystemPropertyUtils1
org.springframework.core.convertTypeDescriptor1
Package nameClass nameMethod namePatterns foundSolution coverage
org.springframework.cglib.proxyMethodProxyinvoke37
org.springframework.utilClassUtilsforName31
org.springframework.utilReflectionUtilsdoWithMethods19
org.springframework.core.convert.supportGenericConversionServiceconvert14
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReader14
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReader10
org.springframework.core.io.supportPropertiesLoaderSupportmergeProperties9
org.springframework.utilReflectionUtilsinvokeMethod8
org.springframework.utilReflectionUtilsgetDeclaredMethods8
org.springframework.core.convert.supportConversionUtilsinvokeConverter8
org.springframework.utilClassUtilsresolveClassName7
org.springframework.core.annotationAnnotationUtilsfindAnnotation5
org.springframework.core.envStandardEnvironment<init>5
org.springframework.core.ioUrlResourcegetInputStream5
org.springframework.core.io.supportPathMatchingResourcePatternResolvergetResources5
org.springframework.asmClassReader<init>5
org.springframework.utilReflectionUtilsdoWithLocalFields4
org.springframework.cglib.coreDefaultGeneratorStrategygenerate4
org.springframework.core.ioClassPathResourcegetInputStream4
org.springframework.core.type.classreadingRecursiveAnnotationAttributesVisitorvisitEnd4
org.springframework.utilAssertnotNull4
org.springframework.core.io.supportResourcePropertySource<init>4
org.springframework.core.type.classreadingSimpleMetadataReader<init>4
org.springframework.coreLocalVariableTableParameterNameDiscoverergetParameterNames4
org.springframework.coreConfigurableObjectInputStream<init>4
org.springframework.asmClassReaderaccept4
org.springframework.cglib.proxyEnhancercreateClass3
org.springframework.utilAssertstate3
org.springframework.utilNumberUtilsparseNumber3
org.springframework.utilLog4jConfigurerinitLogging3
org.springframework.utilAssertisTrue3
org.springframework.core.serializer.supportSerializingConverterconvert3
org.springframework.core.typeStandardAnnotationMetadatahasAnnotatedMethods3
org.springframework.core.io.supportPropertiesLoaderUtilsfillProperties3
org.springframework.core.envAbstractEnvironmentgetProperty3
org.springframework.utilAssertisInstanceOf3
org.springframework.cglib.proxyEnhancercreateHelper3
org.springframework.utilObjectUtilsnullSafeHashCode3
org.springframework.cglib.proxyEnhancercreate3
org.springframework.core.annotationAnnotatedElementUtilsdoProcess3
org.springframework.cglib.proxyMethodProxyinvokeSuper3
org.springframework.core.annotationAnnotatedElementUtilsprocess3
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholders3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSet3
org.springframework.coreResolvableTypeas2
org.springframework.core.ioAbstractFileResolvingResourcelastModified2
org.springframework.core.typeStandardAnnotationMetadatagetAnnotatedMethods2
org.springframework.core.type.filterAbstractTypeHierarchyTraversingFiltermatch2
org.springframework.core.envAbstractPropertyResolverresolveRequiredPlaceholders2
org.springframework.cglib.proxyEnhancergenerateClass2
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.springframework.utilClassUtilsforNameClassNotFoundException17
org.springframework.utilReflectionUtilsdoWithMethodsNoClassDefFoundError12
org.springframework.cglib.proxyMethodProxyinvokeSQLSyntaxErrorException10
org.springframework.core.io.supportPropertiesLoaderSupportmergePropertiesFileNotFoundException7
org.springframework.core.convert.supportGenericConversionServiceconvertConversionFailedException7
org.springframework.utilReflectionUtilsgetDeclaredMethodsNoClassDefFoundError6
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReaderClassNotFoundException5
org.springframework.cglib.proxyMethodProxyinvokeException5
org.springframework.utilReflectionUtilsdoWithLocalFieldsNoClassDefFoundError4
org.springframework.core.envStandardEnvironment<init>NoSuchMethodError4
org.springframework.cglib.coreDefaultGeneratorStrategygenerateIllegalArgumentException4
org.springframework.core.io.supportResourcePropertySource<init>FileNotFoundException4
org.springframework.core.type.classreadingRecursiveAnnotationAttributesVisitorvisitEndClassNotFoundException4
org.springframework.core.io.supportPathMatchingResourcePatternResolvergetResourcesFileNotFoundException4
org.springframework.core.convert.supportGenericConversionServiceconvertConverterNotFoundException4
org.springframework.utilClassUtilsforNameNoClassDefFoundError4
org.springframework.cglib.proxyMethodProxyinvokeSQLIntegrityConstraintViolationException4
org.springframework.utilAssertisInstanceOfIllegalArgumentException3
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReaderFileNotFoundException3
org.springframework.utilAssertnotNullIllegalArgumentException3
org.springframework.asmClassReader<init>IllegalArgumentException3
org.springframework.core.convert.supportConversionUtilsinvokeConverterConverterNotFoundException3
org.springframework.core.io.supportPropertiesLoaderUtilsfillPropertiesFileNotFoundException3
org.springframework.utilClassUtilsforNameUnsupportedClassVersionError3
org.springframework.utilNumberUtilsparseNumberNumberFormatException3
org.springframework.core.convert.supportGenericConversionServiceconvertIllegalArgumentException3
org.springframework.utilClassUtilsresolveClassNameIllegalArgumentException3
org.springframework.utilClassUtilsresolveClassNameClassNotFoundException3
org.springframework.coreLocalVariableTableParameterNameDiscoverergetParameterNamesIncompatibleClassChangeError3
org.springframework.core.type.classreadingSimpleMetadataReaderFactorygetMetadataReaderNestedIOException3
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReaderClassNotFoundException3
org.springframework.utilReflectionUtilsdoWithMethodsIllegalStateException3
org.springframework.utilClassUtilsgetAllInterfacesForClassAsSetIllegalStateException3
org.springframework.core.type.classreadingCachingMetadataReaderFactorygetMetadataReaderArrayIndexOutOfBoundsException2
org.springframework.core.ioAbstractFileResolvingResourcelastModifiedFileNotFoundException2
org.springframework.utilReflectionUtilsinvokeMethodIllegalStateException2
org.springframework.core.annotationAnnotatedElementUtilsdoProcessArrayStoreException2
org.springframework.core.annotationAnnotationUtilsfindAnnotationIllegalArgumentException2
org.springframework.utilClassUtilsforNameLinkageError2
org.springframework.core.ioUrlResourcegetInputStreamUnknownHostException2
org.springframework.asmClassReader<init>ArrayIndexOutOfBoundsException2
org.springframework.cglib.proxyEnhancergenerateClassIllegalArgumentException2
org.springframework.core.annotationAnnotationUtilsfindAnnotationAccessControlException2
org.springframework.utilAsserthasTextIllegalArgumentException2
org.springframework.utilPropertyPlaceholderHelperreplacePlaceholdersIllegalArgumentException2
org.springframework.cglib.proxyEnhancercreateIllegalArgumentException2
org.springframework.core.envAbstractPropertyResolverresolveRequiredPlaceholdersIllegalArgumentException2
org.springframework.utilResourceUtilsgetFileFileNotFoundException2
org.springframework.core.type.classreadingSimpleMetadataReader<init>ClassNotFoundException2
org.springframework.cglib.proxyEnhancercreateClassIllegalArgumentException2