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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

問題

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
	...

診断

診断ステップ

  • 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.

原因

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.

ソリューション

最終更新日 2016 年 4 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.