stashbot plugin

I was trying to install it on stash version 3.5.1 but with no the logs I see this :

org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.palantir.stash.stashbot.outputhandler.Comm
andOutputHandlerFactory] for bean with name 'commandOutputHandlerFactory' defined in URL [bundle://91.0:0/META-INF/spring/atlassian
-plugins-components.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: c
om/palantir/stash/stashbot/outputhandler/CommandOutputHandlerFactory : Unsupported major.minor version 52.0
at ~[spring-2
at ~[AbstractApplicationContext.class:4.1.1.RELEASE]
at java.util.concurrent.ThreadPoolExecutor.runWorker( [na:1.7.0_51]
at [na:1.7.0_51]
... 10 frames trimmed
Caused by: java.lang.UnsupportedClassVersionError: com/palantir/stash/stashbot/outputhandler/CommandOutputHandlerFactory : Unsuppor
ted major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_51]
at org.springframework.util.ClassUtils.forName( ~[spring-2.5.6.SEC03-atlassian-6.jar:4.1.1.RELEASE]
... 4 common frames omitted
2015-03-09 14:09:06,483 WARN [spring-startup] c.a.s.i.p.OsgiBundledPathScanner Cannot scan directory /com/atlassian/oauth/shared/
servlet/ in bundle com.atlassian.oauth.atlassian-oauth-service-provider-plugin as it does not exist
2015-03-09 14:09:11,074 WARN [spring-startup] c.a.s.i.p.StaticPluginPathScanner Cannot scan directory /static/feature/tasks/icons
/ in web static as it does not exist
2015-03-09 14:09:12,399 INFO [spring-startup] c.a.s.internal.scm.PluginScmService Stash is using /usr/bin/git version
2015-03-09 14:09:13,521 INFO [spring-startup] c.a.s.internal.ssh.server.SshServer Starting SSH server on port 7999...
2015-03-09 14:09:13,635 INFO [spring-startup] c.a.s.internal.ssh.server.SshServer Started SSH server successfully.
2015-03-09 14:09:13,756 INFO [spring-startup] c.a.s.i.hazelcast.HazelcastLifecycle Updating Hazelcast instance capabilities
2015-03-09 14:10:20,147 ERROR [http-nio-7990-exec-9] romanog @1PP1FUKx850x120x0 1gl0z5h "PUT /rest/plugins/1.0/
lantir.stash.stashbot-key HTTP/1.1" c.a.p.manager.DefaultPluginManager There was an error loading the descriptor 'Repository Admini
stration Servlet' of plugin 'com.palantir.stash.stashbot'. Disabling.
java.lang.UnsupportedClassVersionError: com/palantir/stash/stashbot/admin/RepoConfigurationServlet : Unsupported major.minor versio
n 52.0



any idea why it failed ?


1 answer

`Unsupported major.minor version 52.0` means the class was compiled with JDK8, but you're running on JRE7 or older. The Stashbot README mentions Stash dropping support for Java 7 with version 3.5, so upgrading should take care of the issue.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

455 views 8 27
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you