What to do with issue "Only artifact items are supported"?

Jiri Zahradka April 2, 2019

Hello,

we have the following error if we click Run Now under Expiry (at Bamboo 6.8.0):

java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: Only artifact items are supported

Do you know what might be the issue?

Full clean is enabled by Complete build & deployment results, build & release artifacts and all logs

Here are full details:

Request information:

  • Request URL: root/admin/runBuildExpiry.action
  • Scheme: https
  • Port: 443
  • URI: /admin/runBuildExpiry.action
  • Context path:
  • Servlet path: /admin/runBuildExpiry.action
  • Path info:
  • Query string:

Stack Trace:

java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: Only artifact items are supported
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.atlassian.bamboo.build.expiry.BuildExpiryAction.run(BuildExpiryAction.java:101)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)
	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)
	at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)
	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)
	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)
	at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
	at ognl.SimpleNode.getValue(SimpleNode.java:258)
	at ognl.Ognl.getValue(Ognl.java:470)
	at ognl.Ognl.getValue(Ognl.java:434)

 

 

1 answer

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2019

Hi @Jiri Zahradka

Can you check if there are any other concerning errors in your logs prior to this one?

Please check the file <Bamboo_Install>/logs/catalina.out (or bamboo-stdout.<DATE>.log in case you use windows). If we can't get better clues from it we will need to open a ticket with our support team to investigate it further with your support zip.

Jiri Zahradka April 5, 2019

Hi @Daniel Santos ,

thanks for the answer. How can I submit the logs to you? I still do not know how to solve the issue.

Thanks,

Jiri

Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2019

Have you found any errors in your logs related to this event?

You need to open the log file and search for the error you shared. You could search for "Only artifact items are supported". What I need is any stack trace prior to this one that might be related to this issue. This thread is public, so you will need to get just the relevant part from your logs.
⚠️Make sure you remove personal data if there is any.



Jiri Zahradka April 6, 2019

Ok, here is it. Please check the code below and let me know how to proceed. Thanks.

Caused by: java.lang.UnsupportedOperationException: Only artifact items are supported
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.getDeploymentVersionItems(DeploymentVersionServiceImpl.java:563)
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.getDeploymentVersion(DeploymentVersionServiceImpl.java:541)
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.lambda$getDeploymentProjectVersionsNoVariables$8(DeploymentVersionServiceImpl.java:588)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.getDeploymentProjectVersionsNoVariables(DeploymentVersionServiceImpl.java:589)
at com.atlassian.bamboo.deployments.expiry.DeploymentExpiryServiceImpl.expireDeploymentProject(DeploymentExpiryServiceImpl.java:214)
at com.atlassian.bamboo.deployments.expiry.DeploymentExpiryServiceImpl.lambda$triggerDeploymentsExpiration$0(DeploymentExpiryServiceImpl.java:112)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
Jiri Zahradka April 6, 2019

Also, the same error from log:

2019-04-05 13:29:23,078 ERROR [ajp-nio-127.0.0.1-8085-exec-1] [FiveOhOh] 500 Exception was thrown.
java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: Only artifact items are supported
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at com.atlassian.bamboo.build.expiry.BuildExpiryAction.run(BuildExpiryAction.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)
at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:470)
at ognl.Ognl.getValue(Ognl.java:434)
at com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:401)
at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:453)
at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:399)
...
...
...
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 9, 2019

Hi @Jiri Zahradka

I was checking the source code of Bamboo and found this error. It is related to deployment internal objects. It is possible that data corruption or manual deletion of items have caused this issue.

I'm opening a support case for this one so we can investigate your data more deeply and work on fixing it. You should receive a notification soon with the support ticket link. Please add a support zip to this request to speed up the investigation process.

As soon the problem is solved, I kindly ask you to share the resolution here if possible.

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events