Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Thread.run() has thrown a BeanDefinitionStoreException
    Java Runtime
    1
    0
    0
  2. Spring version conflict with Java 8
    Spring Context
    17
    1
    1

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [C:\Users\ebeband\Documents\workspace-sts-3.5.1.RELEASE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\lmr_monitoring_status\WEB-INF\classes\se\kth\pyramidstatus\webservices\rest\CategoryController.class]; nested exception is java.lang.IllegalArgumentException
    at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:281)
    at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242)
    at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:84)
    at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
29 frames hidden

Solution

rahsan1 month ago

The error is likely because you are using an older version of Spring framework with Java 8 or newer. Please upgrade to at least Spring 4 to resolve the issue.

External results for this pattern (10)

  1. Ranvia Stack Overflow4 months ago
    Failed to read candidate component class: URL [zip:C:/Oracle/Middleware/user_projects/domains/supplier_net/servers/AdminServer/tmp/_WL_user/_appsdir_supplier-net_ear/9bdb97/war/WEB-INF/lib/_wl_cls_gen.jar!/com/fritolay/suppliernet/ecr/web/controller/TransportationController.class]; nested exception is java.lang.ArrayIndexOutOfBoundsException: 51
    Show stack trace
  2. Unknown authorvia liferay.com4 months ago
    Failed to read candidate component class: file [C:\liferay-portal-6.2-ee-sp14\tomcat-7.0.62\webapps\MyTest-portlet\WEB-INF\classes\de\mycompany\academy\liferay\UserPermissionChecker.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [C:\liferay-portal-6.2-ee-sp14\tomcat-7.0.62\webapps\MyTest-portlet\WEB-INF\classes\de\mycompany\academy\liferay\UserPermissionChecker.class]; nested exception is java.lang.IllegalArgumentException
    Show stack trace
  3. Unknown authorvia openmrs.org4 months ago
    Failed to read candidate component class: URL [jar:file:/C:/Users/FSHD/Documents/OpenMRS_231/openmrs-standalone-2.3.1/openmrs-standalone.jar!/org/openmrs/standalone/MainFrame.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: class path resource [javax/swing/JFrame.class]; nested exception is java.lang.IllegalArgumentException
    Show stack trace
  4. Keli Hlodverssonvia Spring JIRA4 months ago
    Failed to read candidate component class: file […]; nested exception is java.lang.IllegalStateException: Could not obtain annotation attribute values
    Show stack trace
  5. newtonvia Stack Overflow4 months ago
    I/O failure during classpath scanning; nested exception is java.io.FileNotFoundException: JAR entry net/interttimes/ not found in D:\Workspaces\MyEclipse 8.x\formicary-client2\lib\formicary-remote.jar
    Show stack trace
  6. Failed to read candidate component class: URL [jar:file:/C:/Users/Gaurav/AppData/Local/Temp/jetty-0.0.0.0-8081-pumpkinservice-1.0-SNAPSH OT.war-_pumpkinsafari-any-/webapp/WEB-INF/lib/pumpkinstore-1.0-SNAPSHOT.jar!/com/pumpkinsafari/store/model/Customer.class]; nested exception is java.lang.NoClassDefFoundError: Lorg/hibernate/cache/acc ess/AccessType;
    Show stack trace
  7. Unknown authorvia techforumnetwork.com4 months ago
    Failed to read candidate component class: file [C:\workspace-sts\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SpringDataJpa\WEB-INF\classes\com\springdata\repositories\CustomerRepository.class]; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
    Show stack trace
  8. cpu2007via Stack Overflow4 months ago
    Failed to read candidate component class: file [C:\workspace-sts\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SpringDataJpa\WEB-INF\classes\com\springdata\repositories\CustomerRepository.class]; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
    Show stack trace
  9. Unknown authorvia baidu.com4 months ago
    Failed to read candidate component class: file [E:\sqlServer(test)\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\shop\WEB-INF\classes\com\bo\shopOrderBo.class]; nested exception is java.lang.IllegalArgumentException
    Show stack trace
  10. Unknown authorvia justinmiranda.com4 months ago
    I/O failure during classpath scanning; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/test/context /support/AbstractTestExecutionListener.class] cannot be opened because it does not exist
    Show stack trace