Error executing Confluence CLI command in Bamboo

I am running Bamboo 4.4.0 on Windows with the "CLI Tasks" plugin version 3.1.0. I have successfully tested the scripting from a command prompt to make sure I can connect and that everything works. Here is the script I am attempting to include in my CLI task:

--action run --server http://source.caseintel.com:8090 --user johndoe --password abc123

@DATA

--action addComment --space "CSD" --title "Test Page" --comment "Test Comment - ${bamboo.buildNumber}"

I receive the following messages:

From build log:

simple	10-Feb-2013 17:41:15	Build NETGISSCL-CCLI-JOB1-5 started building on agent Devserver Agent
simple	10-Feb-2013 17:41:15	Build working directory is C:\bamboo-home\xml-data\build-dir\NETGISSCL-CCLI-JOB1
simple	10-Feb-2013 17:41:15	Executing build NETGISSCL-CCLI-JOB1-5
simple	10-Feb-2013 17:41:15	Running pre-build action: Build Number Stamper
simple	10-Feb-2013 17:41:15	Running pre-build action: Clover Grails PreBuild Action
simple	10-Feb-2013 17:41:15	Running pre-build action: VCS Version Collector
simple	10-Feb-2013 17:41:15	Running pre-build action: Repository Isolation Enabler Action
simple	10-Feb-2013 17:41:15	Running pre-build action: Maven Settings Prebuild Action
command	10-Feb-2013 17:41:15	Substituting variable: ${bamboo.buildNumber} with 5
error	10-Feb-2013 17:41:15	Failed to execute the build 'NETGISSCL-CCLI-JOB1-5': Error creating bean with name 'org.swift.bamboo.acli.ConfluenceCliTask': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.swift.bamboo.acli.ConfluenceCliTask]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
simple	10-Feb-2013 17:41:15	Finalising the build...
simple	10-Feb-2013 17:41:15	Stopping timer.
simple	10-Feb-2013 17:41:15	Build NETGISSCL-CCLI-JOB1-5 completed.
simple	10-Feb-2013 17:41:15	Running on server: post build plugin 'NCover Results Collector'
simple	10-Feb-2013 17:41:15	Running on server: post build plugin 'Clover Delta Calculator'
simple	10-Feb-2013 17:41:15	Running on server: post build plugin 'Build Hanging Detection Configuration'
simple	10-Feb-2013 17:41:15	Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple	10-Feb-2013 17:41:15	All post build plugins have finished
simple	10-Feb-2013 17:41:15	Generating build results summary...
simple	10-Feb-2013 17:41:15	Saving build results to disk...
simple	10-Feb-2013 17:41:16	Indexing build results...
simple	10-Feb-2013 17:41:16	Finished building NETGISSCL-CCLI-JOB1-5.

Error:

Failed to execute the build 'NETGISSCL-CCLI-JOB1-5'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.swift.bamboo.acli.ConfluenceCliTask': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.swift.bamboo.acli.ConfluenceCliTask]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.atlassian.plugin.osgi.spring.DefaultSpringContainerAccessor.createBean(DefaultSpringContainerAccessor.java:109)
at com.atlassian.plugin.module.ClassPrefixModuleFactory.createModule(ClassPrefixModuleFactory.java:32)
at com.atlassian.plugin.module.PrefixDelegatingModuleFactory.createModule(PrefixDelegatingModuleFactory.java:99)
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.createModule(AbstractBambooModuleDescriptor.java:26)
at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.getModule(AbstractBambooModuleDescriptor.java:90)
at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:182)
at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:93)
at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:87)
at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.swift.bamboo.acli.ConfluenceCliTask]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
... 24 more
Caused by: java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
at org.swift.bamboo.acli.ConfluenceCliTask.<init>(ConfluenceCliTask.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
... 26 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis.AxisFault
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 32 more

1 answer

1 accepted

I created BCLIP-4 for you. A snapshot (or workaround) is required to address a change made in Bamboo 4.4 and above. See the issue for details.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

365 views 0 6
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