java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=javax/annotation/ManagedBean, offset=6

Stack Overflow | Vineet | 4 months ago
  1. 0

    Will a jar compiled with java 1.6.0_45 run in java 1.6.0 environment?

    Stack Overflow | 4 months ago | Vineet
    java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=javax/annotation/ManagedBean, offset=6
  2. 0

    Unsupported Java major.minor version 51.0 w/ OS X 10.10 Yosemite

    GitHub | 3 years ago | takahiro47
    java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 51.0
  3. 0

    Unsupported major.minor version 52.0

    GitHub | 1 year ago | humandb
    java.lang.UnsupportedClassVersionError: com/typesafe/config/ConfigFactory : Unsupported major.minor version 52.0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tagging text with Stanford POS Tagger in Java Applications | Galal Aly

    galalaly.me | 1 year ago
    java.lang.UnsupportedClassVersionError: edu/stanford/nlp/tagger/maxent/MaxentTagger : Unsupported major.minor version 52.0
  6. 0

    java unit test failure in regression ; major version 51 is newer than 50, the highest major version supported by this compiler.

    GitHub | 2 years ago | gghai
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.marklogic.samplestack.web.security.SamplestackSecurityFilters] for bean with name 'samplestackSecurityFilters' defined in file [/space/builder/builds/macosx-64/HEAD/qa/marklogic-samplestack/appserver/java-spring/build/classes/main/com/marklogic/samplestack/web/security/SamplestackSecurityFilters.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: javax/servlet/Filter : Unsupported major.minor version 51.0

  1. Mark 1 times, last 5 days ago
  2. harshg 4 times, last 3 months ago
  3. muffinmannen 1 times, last 6 months ago
  4. bpbhat77 1 times, last 6 months ago
  5. Akhilesh Patel 2 times, last 1 year ago
57 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsupportedClassVersionError

    JVMCFRE003 bad major version; class=javax/annotation/ManagedBean, offset=6

    at java.lang.ClassLoader.defineClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.defineClass(ClassLoader.java:275)[?:1.6.0]
    2. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)[?:?]
    3. java.net.URLClassLoader.defineClass(URLClassLoader.java:529)[?:1.6.0]
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:440)[?:1.6.0]
    5. java.net.URLClassLoader.access$300(URLClassLoader.java:68)[?:1.6.0]
    6. java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1027)[?:1.6.0]
    7. java.security.AccessController.doPrivileged(AccessController.java:284)[?:?]
    8. java.net.URLClassLoader.findClass(URLClassLoader.java:418)[?:1.6.0]
    9. java.lang.ClassLoader.loadClass(ClassLoader.java:660)[?:1.6.0]
    9 frames
  3. Spring Boot Loader
    LaunchedURLClassLoader.loadClass
    1. org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:89)[DiamondFeedGeneratorCMTTool-1.0.jar:?]
    1 frame
  4. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:626)[?:1.6.0]
    1 frame
  5. Spring Core
    ClassUtils.forName
    1. org.springframework.util.ClassUtils.forName(ClassUtils.java:250)[spring-core-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    1 frame
  6. Spring Context
    AnnotationConfigApplicationContext.<init>
    1. org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.registerDefaultFilters(ClassPathScanningCandidateComponentProvider.java:243)[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    2. org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.<init>(ClassPathScanningCandidateComponentProvider.java:116)[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    3. org.springframework.context.annotation.ClassPathBeanDefinitionScanner.<init>(ClassPathBeanDefinitionScanner.java:136)[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    4. org.springframework.context.annotation.ClassPathBeanDefinitionScanner.<init>(ClassPathBeanDefinitionScanner.java:111)[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    5. org.springframework.context.annotation.ClassPathBeanDefinitionScanner.<init>(ClassPathBeanDefinitionScanner.java:83)[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    6. org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:62)[spring-context-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    6 frames
  7. Java RT
    Class.newInstance
    1. java.lang.J9VMInternals.newInstanceImpl(Native Method)[?:1.6.0]
    2. java.lang.Class.newInstance(Class.java:1345)[?:1.6.0]
    2 frames
  8. Spring Beans
    BeanUtils.instantiate
    1. org.springframework.beans.BeanUtils.instantiate(BeanUtils.java:77)[spring-beans-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
    1 frame
  9. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.createApplicationContext(SpringApplication.java:595)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    2. org.springframework.boot.SpringApplication.run(SpringApplication.java:310)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)[spring-boot-1.4.0.RELEASE.jar!/:1.4.0.RELEASE]
    4 frames
  10. com.td.diamond
    DiamondFeedGeneratorConfig.main
    1. com.td.diamond.cmt.feed.generator.config.DiamondFeedGeneratorConfig.main(DiamondFeedGeneratorConfig.java:44)[classes!/:?]
    1 frame
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.6.0]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)[?:1.6.0]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[?:1.6.0]
    4. java.lang.reflect.Method.invoke(Method.java:600)[?:1.6.0]
    4 frames
  12. Spring Boot Loader
    JarLauncher.main
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)[DiamondFeedGeneratorCMTTool-1.0.jar:?]
    2. org.springframework.boot.loader.Launcher.launch(Launcher.java:87)[DiamondFeedGeneratorCMTTool-1.0.jar:?]
    3. org.springframework.boot.loader.Launcher.launch(Launcher.java:50)[DiamondFeedGeneratorCMTTool-1.0.jar:?]
    4. org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)[DiamondFeedGeneratorCMTTool-1.0.jar:?]
    4 frames