ClassUtils.forName() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
Javadoc
Thrown when the Java Virtual Machine attempts to read a class file and determines that the major and minor version numbers in the file are not supported. @since 1.2
at org.apache.catalina.loader.WebappClassLoader.findClassInternal
at org.apache.catalina.loader.WebappClassLoader.findClass
at org.apache.catalina.loader.WebappClassLoader.loadClass
at org.apache.catalina.loader.WebappClassLoader.loadClass
at org.springframework.util.ClassUtils.forName
(source)
4 frames hidden

Typical Exception Messages

  1. Error loading class [com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter] for bean with name 'CsrfPreventionFilter' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/denimgroup/threadfix/webapp/filter/CsrfPreventionFilter : Unsupported major.minor version 51.0 (unable to load class com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter)
  2. Error creating bean with name 'clinicManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\springapp\WEB-INF\classes\com\gym\service\ClinicManager.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.hibernate.SessionFactory]: : Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource); nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource)
  3. Error loading class [se.kth.example-project.services.SurveyService] for bean with name 'surveyService' defined in file [/proj/webdocs/test-project/root/example-project/WEB-INF/classes/se/kth/example-project/services/SurveyService.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: se/kth/example-project/services/SurveyService : Unsupported major.minor version 52.0 (unable to load class se.kth.example-project.services.SurveyService)
  4. Error loading class [jp.sample.jaxrs.service.HelloResource] for bean with name 'helloResource' defined in file [C:\Users\omiz12032\workspace3\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jax-rs\WEB-INF\classes\jp\sample\jaxrs\service\HelloResource.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: jp/sample/jaxrs/service/HelloResource : Unsupported major.minor version 52.0 (unable to load class jp.sample.jaxrs.service.HelloResource)
  5. Unexpected exception parsing XML document from file [/var/lib/tomcat7/webapps/uv/WEB-INF/classes/META-INF/applicationContext.xml]; nested exception is java.lang.UnsupportedClassVersionError: org/synyx/urlaubsverwaltung/core/application/dao/CommentDAO : Unsupported major.minor version 52.0 (unable to load class org.synyx.urlaubsverwaltung.core.application.dao.CommentDAO)
  6. org/irods/jargon/rest/commands/ServiceFunctionFactoryImpl : Unsupported major.minor version 52.0 (unable to load class org.irods.jargon.rest.commands.ServiceFunctionFactoryImpl)
  7. org/apache/tomcat/jdbc/pool/DataSource : Unsupported major.minor version 51.0 (unable to load class org.apache.tomcat.jdbc.pool.DataSource)
  8. Error creating bean with name 'org.apache.cxf.resource.ResourceManager' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.unitedcoders.demo.PersonServiceImpl] for bean with name 'personServ' defined in class path resource [application-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.unitedcoders.demo.PersonServiceImpl)
  9. Error loading class [com.parashift.onlyoffice.CallBack] for bean with name 'webscript.onlyoffice.callback.post' defined in URL [jar:file:/opt/alfresco-5.0.c/tomcat/webapps/alfresco/WEB-INF/lib/onlyoffice-alfresco-repo-1.0.2.jar!/com/parashift/onlyoffice/CallBack.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/parashift/onlyoffice/CallBack : Unsupported major.minor version 52.0 (unable to load class com.parashift.onlyoffice.CallBack)
  10. Error loading class [com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl] for bean with name 'categoryDao' defined in URL [jar:file:/C:/Programs/workspace/workspace-netb/sm-shop/target/sm-shop-2.0.2-SNAPSHOT/WEB-INF/lib/sm-core-2.0.2-SNAPSHOT.jar!/com/salesmanager/core/business/catalog/category/dao/CategoryDaoImpl.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/salesmanager/core/business/catalog/category/dao/CategoryDaoImpl : Unsupported major.minor version 51.0 (unable to load class com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl)

Origin

WebappClassLoader.loadClass() has thrown an UnsupportedClassVersionError

java.lang.UnsupportedClassVersionError
3 frames hidden
org.apache.catalina.loader.WebappClassLoader.loadClass
108Web pages

Similar

Specific cases

External results for this pattern (16)

  1. Unknown authorvia coderanch.com4 months ago
    Error creating bean with name 'clinicManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\springapp\WEB-INF\classes\com\gym\service\ClinicManager.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.hibernate.SessionFactory]: : Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource); nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource)
    Show stack trace
  2. Unknown authorvia appspot.com4 months ago
    Error creating bean with name 'org.apache.cxf.resource.ResourceManager' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.unitedcoders.demo.PersonServiceImpl] for bean with name 'personServ' defined in class path resource [application-context.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class com.unitedcoders.demo.PersonServiceImpl)
    Show stack trace
  3. ElMerenderovia GitHub4 months ago
    org/irods/jargon/rest/commands/ServiceFunctionFactoryImpl : Unsupported major.minor version 52.0 (unable to load class org.irods.jargon.rest.commands.ServiceFunctionFactoryImpl)
    Show stack trace
  4. kevinkleistvia GitHub4 months ago
    Unexpected exception parsing XML document from file [/var/lib/tomcat7/webapps/uv/WEB-INF/classes/META-INF/applicationContext.xml]; nested exception is java.lang.UnsupportedClassVersionError: org/synyx/urlaubsverwaltung/core/application/dao/CommentDAO : Unsupported major.minor version 52.0 (unable to load class org.synyx.urlaubsverwaltung.core.application.dao.CommentDAO)
    Show stack trace
  5. michael-conwayvia GitHub5 months ago
    org/irods/jargon/rest/commands/ServiceFunctionFactoryImpl : Unsupported major.minor version 52.0 (unable to load class org.irods.jargon.rest.commands.ServiceFunctionFactoryImpl)
    Show stack trace
  6. KurenaiShikivia Google Groups1 year ago
    com/example/connector/HelloWorldConnectorType : Unsupported major.minor version 51.0 (unable to load class com.example.connector.HelloWorldConnectorType)
    Show stack trace
  7. dubimavia GitHub1 year ago
    org/libresonic/player/spring/AdditionalPropertySourceConfigurer : Unsupported major.minor version 52.0 (unable to load class org.libresonic.player.spring.AdditionalPropertySourceConfigurer)
    Show stack trace
  8. karen mansukhanivia Coderanch1 year ago
    Error creating bean with name 'clinicManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\springapp\WEB-INF\classes\com\gym\service\ClinicManager.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.hibernate.SessionFactory]: : Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource); nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.dbcp.BasicDataSource)
    Show stack trace
  9. Unknown authorvia Google Groups1 year ago
    com/denimgroup/threadfix/webapp/filter/CsrfPreventionFilter : Unsupported major.minor version 51.0 (unable to load class com.denimgroup.threadfix.webapp.filter.CsrfPreventionFilter)
    Show stack trace
  10. Unknown authorvia Google Groups1 year ago
    Error loading class [com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl] for bean with name 'categoryDao' defined in URL [jar:file:/C:/Programs/workspace/workspace-netb/sm-shop/target/sm-shop-2.0.2-SNAPSHOT/WEB-INF/lib/sm-core-2.0.2-SNAPSHOT.jar!/com/salesmanager/core/business/catalog/category/dao/CategoryDaoImpl.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/salesmanager/core/business/catalog/category/dao/CategoryDaoImpl : Unsupported major.minor version 51.0 (unable to load class com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl)
    Show stack trace