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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

410 views 79 11
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