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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via GitHub by Athou

You're using an older version of java with classes compiled for java7

,
via Google Groups by Marcus Haebler

Update "latest" to Java 8 on DockerHub.

Solutions on the web

via Stack Overflow by Vineet
, 1 year ago
JVMCFRE003 bad major version; class=javax/annotation/ManagedBean, offset=6
via Coderanch by murali jackson, 4 months ago
JVMCFRE003 bad major version; class=com/fasterxml/jackson/databind/ObjectMapper, offset=6
via Stack Overflow by robmax
, 6 months ago
JVMCFRE003 bad major version; class=org/openqa/selenium/Capabilities, offset=6
via ibm.com by Unknown author, 7 months ago
via Google Groups by Abdelhamid, 2 years ago
isd/bcp/carthago/server/ BCPServiceImpl (Unsupported major.minor version 49.0)
via Google Groups by Abdelhamid, 2 years ago
isd/bcp/carthago/server/ BCPServiceImpl (Unsupported major.minor version 49.0)
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=javax/annotation/ManagedBean, offset=6
at java.lang.ClassLoader.defineClass(ClassLoader.java:275)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:529)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:440)
at java.net.URLClassLoader.access$300(URLClassLoader.java:68)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1027)
at java.security.AccessController.doPrivileged(AccessController.java:284)
at java.net.URLClassLoader.findClass(URLClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.registerDefaultFilters(ClassPathScanningCandidateComponentProvider.java:243)
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.(ClassPathScanningCandidateComponentProvider.java:116)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.(ClassPathBeanDefinitionScanner.java:136)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.(ClassPathBeanDefinitionScanner.java:111)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.(ClassPathBeanDefinitionScanner.java:83)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1345)
at org.springframework.boot.SpringApplication.createApplicationContext(SpringApplication.java:595)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:310)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
at com.td.diamond.cmt.feed.generator.config.DiamondFeedGeneratorConfig.main(DiamondFeedGeneratorConfig.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 week ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.