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

Stack Overflow | Vineet | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0

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

    Stack Overflow | 8 months ago | Vineet
    java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=javax/annotation/ManagedBean, offset=6
  2. 0
    samebug tip
    Update "latest" to Java 8 on DockerHub.
    via Google Groups by Marcus Haebler
  3. 0
    samebug tip
    You're using an older version of java with classes compiled for java7
    via GitHub by Athou
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    From v1.2 and beyond, ElasticSearch doesn't support Java 6 anymore, consider upgrading to Java 7 or any newer version or getting an older version of ElasticSearch.
  6. 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
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