After upgrading from Bamboo 6.9.3 -> 7.0.3 our maven 3 builds crashes when building.
Our build is very simple:
1) checkout source code (works fine)
2) run maven using JAVA 11 for goals clean package
3) collect artificates using an ant pattern
When bamboo is to execute the mvn clean package we get the following stacktrace in the log:
error 22-Apr-2020 08:01:54 Error occurred while running Task 'build Swedbank XPOOL application(2)' of type com.atlassian.bamboo.plugins.maven:task.builder.mvn3. error 22-Apr-2020 08:01:54 com.atlassian.bamboo.task.TaskException: Failed to execute task error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:104) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:256) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:116) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:184) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:156) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:130) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:124) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:108) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) error 22-Apr-2020 08:01:54 at java.lang.Thread.run(Thread.java:748) error 22-Apr-2020 08:01:54 Caused by: com.google.common.util.concurrent.UncheckedExecutionException: com.thoughtworks.xstream.converters.ConversionException: error 22-Apr-2020 08:01:54 ---- Debugging information ---- error 22-Apr-2020 08:01:54 cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException error 22-Apr-2020 08:01:54 cause-message : org.apache.commons.logging.LogFactory$Log4jLog error 22-Apr-2020 08:01:54 class : org.apache.commons.configuration.XMLConfiguration$XMLFileConfigurationDelegate error 22-Apr-2020 08:01:54 required-type : org.apache.commons.configuration.XMLConfiguration$XMLFileConfigurationDelegate error 22-Apr-2020 08:01:54 converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter error 22-Apr-2020 08:01:54 path : /com.atlassian.bamboo.ww2.actions.build.admin.create.CustomizedXMLConfiguration/delegate/log error 22-Apr-2020 08:01:54 line number : 63 error 22-Apr-2020 08:01:54 class[1] : com.atlassian.bamboo.ww2.actions.build.admin.create.CustomizedXMLConfiguration error 22-Apr-2020 08:01:54 required-type[1] : com.atlassian.bamboo.ww2.actions.build.admin.create.CustomizedXMLConfiguration error 22-Apr-2020 08:01:54 version : not available error 22-Apr-2020 08:01:54 ------------------------------- error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2050) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache.get(LocalCache.java:3952) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4958) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4964) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.BambooCachingBandanaPersister.retrieve(BambooCachingBandanaPersister.java:36) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.DefaultBandanaPersister.retrieve(DefaultBandanaPersister.java:43) error 22-Apr-2020 08:01:54 at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32) error 22-Apr-2020 08:01:54 at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.BambooBandanaManager.getValue(BambooBandanaManager.java:28) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.capability.DefaultCapabilityConfigurationManager.getConfiguration(DefaultCapabilityConfigurationManager.java:26) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) error 22-Apr-2020 08:01:54 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) error 22-Apr-2020 08:01:54 at java.lang.reflect.Method.invoke(Method.java:498) error 22-Apr-2020 08:01:54 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) error 22-Apr-2020 08:01:54 at com.sun.proxy.$Proxy334.getConfiguration(Unknown Source) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) error 22-Apr-2020 08:01:54 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) error 22-Apr-2020 08:01:54 at java.lang.reflect.Method.invoke(Method.java:498) error 22-Apr-2020 08:01:54 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131) error 22-Apr-2020 08:01:54 at com.sun.proxy.$Proxy334.getConfiguration(Unknown Source) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.plugins.maven.decorator.AbstractIsolatedLocalRepositoryCommandDecorator.decorate(AbstractIsolatedLocalRepositoryCommandDecorator.java:65) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.process.ProcessContextImpl.decorateProcessCommand(ProcessContextImpl.java:128) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.process.ProcessServiceImpl.createExternalProcess(ProcessServiceImpl.java:156) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:203) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:218) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) error 22-Apr-2020 08:01:54 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) error 22-Apr-2020 08:01:54 at java.lang.reflect.Method.invoke(Method.java:498) error 22-Apr-2020 08:01:54 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) error 22-Apr-2020 08:01:54 at com.sun.proxy.$Proxy403.executeExternalProcess(Unknown Source) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) error 22-Apr-2020 08:01:54 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) error 22-Apr-2020 08:01:54 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) error 22-Apr-2020 08:01:54 at java.lang.reflect.Method.invoke(Method.java:498) error 22-Apr-2020 08:01:54 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131) error 22-Apr-2020 08:01:54 at com.sun.proxy.$Proxy403.executeExternalProcess(Unknown Source) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.plugins.maven.task.Maven3BuildTask.execute(Maven3BuildTask.java:72) error 22-Apr-2020 08:01:54 ... 16 more error 22-Apr-2020 08:01:54 Caused by: com.thoughtworks.xstream.converters.ConversionException: error 22-Apr-2020 08:01:54 ---- Debugging information ---- error 22-Apr-2020 08:01:54 cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException error 22-Apr-2020 08:01:54 cause-message : org.apache.commons.logging.LogFactory$Log4jLog error 22-Apr-2020 08:01:54 class : org.apache.commons.configuration.XMLConfiguration$XMLFileConfigurationDelegate error 22-Apr-2020 08:01:54 required-type : org.apache.commons.configuration.XMLConfiguration$XMLFileConfigurationDelegate error 22-Apr-2020 08:01:54 converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter error 22-Apr-2020 08:01:54 path : /com.atlassian.bamboo.ww2.actions.build.admin.create.CustomizedXMLConfiguration/delegate/log error 22-Apr-2020 08:01:54 line number : 63 error 22-Apr-2020 08:01:54 class[1] : com.atlassian.bamboo.ww2.actions.build.admin.create.CustomizedXMLConfiguration error 22-Apr-2020 08:01:54 required-type[1] : com.atlassian.bamboo.ww2.actions.build.admin.create.CustomizedXMLConfiguration error 22-Apr-2020 08:01:54 version : not available error 22-Apr-2020 08:01:54 ------------------------------- error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:77) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:499) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:425) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:277) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1487) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1467) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1338) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1329) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.persister.xstream.DefaultXStreamManager.fromXML(DefaultXStreamManager.java:72) error 22-Apr-2020 08:01:54 at sun.reflect.GeneratedMethodAccessor365.invoke(Unknown Source) error 22-Apr-2020 08:01:54 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) error 22-Apr-2020 08:01:54 at java.lang.reflect.Method.invoke(Method.java:498) error 22-Apr-2020 08:01:54 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) error 22-Apr-2020 08:01:54 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) error 22-Apr-2020 08:01:54 at com.sun.proxy.$Proxy146.fromXML(Unknown Source) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.BandanaPersisterImpl.getObjectFromValue(BandanaPersisterImpl.java:76) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.BandanaPersisterImpl.retrieve(BandanaPersisterImpl.java:31) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.BambooCachingBandanaPersister$1.load(BambooCachingBandanaPersister.java:28) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.bandana.BambooCachingBandanaPersister$1.load(BambooCachingBandanaPersister.java:25) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3528) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2277) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154) error 22-Apr-2020 08:01:54 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044) error 22-Apr-2020 08:01:54 ... 56 more error 22-Apr-2020 08:01:54 Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: org.apache.commons.logging.LogFactory$Log4jLog error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.atlassian.bamboo.serialization.xstream.PluginsAwareMapper.realClass(PluginsAwareMapper.java:90) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:420) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:277) error 22-Apr-2020 08:01:54 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) error 22-Apr-2020 08:01:54 ... 86 more
if we change the build to use a script and run the command mvn clean package it works, but not from the mvn3 plugin. This worked like a charm before the upgrade, no changes to the configuration has been made to our knowledge.
We. can leave with the workaround we have using scripts for a short period of time, but it would be a huge problem if we hade to change all our builds.
Best regards
Lasse
Hi,
Try to look at your Maven executable that is used by Maven 3.x task. Check you are using the one you are expecting.
I have sometimes used another Maven executables by mistake. This can generate some strange errors.
Regards
Lasse Langhorn
The problem is not the maven executable, it remained the same (if you mean that the mvn pointed out in overview?). The problem started when we upgraded version and it is be working before the upgrade (even 5 minutes before)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yeah, I noticed the script execution. The Maven 3x task is one of the most used task in Bamboo so it must not fail. I understand your concern.
I think you should create an issue in the Atlassian Bamboo project: https://jira.atlassian.com/projects/BAM/
Explain your problem in detail.
BTW: Have Bamboo been restarted after the upgrade?
Regards
Lasse Langhorn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! Thanks, as the number of build tasks are increasing it would be really nice to not have to maintain the script on all places so please do let us know when you've made progress on this. All the best and enjoy the rest of the weekend
Lasse
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI @lha121 ,
It was identified that we get this issue when you have "Local repository isolation" box enabled for one of the Maven executables that you have configured in Bamboo. This appears to have happened as a result of platform upgrade done in 7.0.
We have a workaround in place. Please follow the below steps to fix this issue soon after you upgrade Bamboo to 7.0.4:
SELECT * FROM BANDANA WHERE BANDANA_KEY LIKE 'com.atlassian.bamboo.capability.DefaultCapabilityConfigurationManager:%' and serialized_data like '%org.apache.commons.logging.LogAdapter$Slf4jLocationAwareLog%'
DELETE FROM BANDANA WHERE BANDANA_KEY LIKE 'com.atlassian.bamboo.capability.DefaultCapabilityConfigurationManager:%' and serialized_data like '%Log4jLog%';
SELECT * FROM BANDANA WHERE BANDANA_KEY LIKE 'com.atlassian.bamboo.capability.DefaultCapabilityConfigurationManager:%' and serialized_data like '%org.apache.commons.logging.LogAdapter$Slf4jLocationAwareLog%'
Hope that helps. Please update us on the outcome.
Cheers,
Jey
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.