Installing Add-on Gets stuck and throws Unsupported major.minor version 52.0

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When installing and add-on, it gets stuck using the UI.

The following appears in the atlassian-bitbucket.log:

2015-12-08 08:50:39,489 ERROR [ThreadPoolAsyncTaskExecutor::Thread 32] Adam @27RGFBx530x321784x0 1f0e1cf 172.29.139.22 "POST /rest/plugins/1.0/ HTTP/1.1" c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 'com.palantir.stash.stashbot'
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.palantir.stash.stashbot.outputhandler.CommandOutputHandlerFactory] for bean with name 'commandOutputHandlerFactory' defined in URL [bundle://99.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/palantir/stash/stashbot/outputhandler/CommandOutputHandlerFactory : Unsupported major.minor version 52.0
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144) ~[spring-beans-4.1.4.RELEASE.jar:4.1.4.RELEASE]
	...
Caused by: java.lang.UnsupportedClassVersionError: com/palantir/stash/stashbot/outputhandler/CommandOutputHandlerFactory : Unsupported major.minor version 52.0
	at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_65]
	...
2015-12-08 08:50:39,493 ERROR [ThreadPoolAsyncTaskExecutor::Thread 32] Adam @27RGFBx530x321784x0 1f0e1cf 172.29.139.22 "POST /rest/plugins/1.0/ HTTP/1.1" o.s.o.e.i.a.ContextLoaderListener Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.palantir.stash.stashbot, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.palantir.stash.stashbot.outputhandler.CommandOutputHandlerFactory] for bean with name 'commandOutputHandlerFactory' defined in URL [bundle://99.0:0/META-INF/spring/atlassian-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: com/palantir/stash/stashbot/outputhandler/CommandOutputHandlerFactory : Unsupported major.minor version 52.0
	...
Caused by: java.lang.UnsupportedClassVersionError: com/palantir/stash/stashbot/outputhandler/CommandOutputHandlerFactory : Unsupported major.minor version 52.0
	...

Diagnosis

Diagnostic Steps

  • As described on the Stashbot - versions website (com.palantir.stash.stashbot on the stack trace above),  the add-on requires you to be running on Java 8.

Cause

Unsupported major.minor version 52.0 
  • This means that you're trying to run a code that was compiled in Java 8 on a Java 7 JRE.

Resolution

Last modified on Apr 6, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.