org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.greenhopper.plugin.link.DefaultLinkProviderManager] for bean with name 'gh-linkProviderManager' defined in URL [bundle://42.0:1/com/atlassian/greenhopper/plugin/link/DefaultLinkProviderManager.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: (com/atlassian/greenhopper/plugin/link/DefaultLinkProviderManager) bad major version at 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 Stack Overflow by ERJAN

This exception occurs when using an older version of java. Mainly when trying to run a jar compiled with a newer Java version in an older Java version. We can avoid this issue by executing the jar in the same version which it was compiled.

Solutions on the web

via Atlassian JIRA by Kris-Mikael Krister, 1 year ago
Error loading class [com.atlassian.greenhopper.plugin.link.DefaultLinkProviderManager] for bean with name 'gh-linkProviderManager' defined in URL [bundle://42.0:1/com/atlassian/greenhopper/plugin/link/DefaultLinkProviderManager.class]: problem with
via Atlassian JIRA by Kris-Mikael Krister, 1 year ago
Error loading class [com.atlassian.greenhopper.plugin.link.DefaultLinkProviderManager] for bean with name 'gh-linkProviderManager' defined in URL [bundle://42.0:1/com/atlassian/greenhopper/plugin/link/DefaultLinkProviderManager.class]: problem with
via Ecosystem JIRA by Ryan Talusan, 1 year ago
Error loading class [com.atlassian.stash.upm.UpmPermissionService] for bean with name 'upmPermissionService' defined in URL [bundle://48.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested
via nabble.com by Unknown author, 2 years ago
Error loading class [org.apache.activemq.camel.component.ActiveMQComponent] for bean with name 'mainamq' defined in URL [bundle://200.0:0/META-INF/spring/camel-context.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org.apache.activemq.camel.component.ActiveMQComponent not found from bundle [Enpoint Routing Rules (endpoint-route)]
via spring.io by Unknown author, 2 years ago
Error loading class [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean] for bean with name 'validator' defined in URL [bundleentry://71.fwk21745231/META-INF/spring/module-context.xml]: problem with class file or dependent class
via Oracle Community by 228ace7a-2a67-4a7b-8c41-504f222f441d, 11 months ago
Cannot find class [com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext] for bean with name 'JdbcC artridgeOne' defined in null; nested exception is java.lang.ClassNotFoundException: com.oracle.cep.cartridge.jdbc.JdbcCartridgeContext not found from bundle [sa mple]
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.atlassian.greenhopper.plugin.link.DefaultLinkProviderManager] for bean with name 'gh-linkProviderManager' defined in URL [bundle://42.0:1/com/atlassian/greenhopper/plugin/link/DefaultLinkProviderManager.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: (com/atlassian/greenhopper/plugin/link/DefaultLinkProviderManager) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:258)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1872)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:674)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1543)
at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:678)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:703)
at java.lang.Thread.run(Thread.java:811)

Users with the same issue

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

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