Can't get the "enforce author hook" Stash plugin enabled

Hi,

The plugin isn't enabled when I start Stash, and these are the relevant lines from the logs (unfortunately they don't make much sense to me). Any ideas?

2013-03-18 14:11:04,099 ERROR [Spring executor 7] c.a.plugin.osgi.factory.OsgiPlugin Unable to start the Spring context for plugin com.risingoak.stash.plug
ins.stash-enforce-author-hook
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rejectedResponsePrinter' defined in URL [bundle://63.0:0/META-INF/sp
ring/atlassian-plugins-components.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/atlassian/stash/setting/Settings

...

2013-03-18 14:11:04,102 ERROR [Spring executor 7] o.s.o.e.i.a.ContextLoaderListener Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.risingoak.stash.plugins.stash-enforce-author-hook, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rejectedResponsePrinter' defined in URL [bundle://63.0:0/META-INF/sp
ring/atlassian-plugins-components.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: com/atlassian/stash/setting/Settings

...

Caused by: java.lang.ClassNotFoundException: com.atlassian.stash.setting.Settings
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772) ~[org.apache.felix.framework-3.0.2.jar:na]
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73) ~[org.apache.felix.framework-3.0.2.jar:na]
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690) ~[org.apache.felix.framework-3.0.2.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[na:1.7.0_07]
... 34 common frames omitted

I would very much appreciate your help in getting this plugin to work. Thanks.

1 answer

1 accepted

This widget could not be displayed.

Hi Max,

Assuming there isn't actually something broken with the plugin, are you definitely running Stash 2.2? The Settings class didn't exist before then.

Cheers,

Charles

Hi Charles,

I think this is the case indeed - I'm running 2.1.2. Thanks for the clue! I'm upgrading Stash now. Let's see if this helps.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

150 views 16 7
Join discussion

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