Automation for Jira rules fail with the exception "No serializer found for class"

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

    

Summary

Automation for Jira rules fail, and in the atlassian-jira.log we see an error message like this:

2021-09-13 20:25:07,477-0400 automation-event-serializer:thread-1 ERROR myuser 820x1204x1 ukuha7 192.168.1.11 /secure/WorkflowUIDispatcher.jspa [c.c.jira.transform.IssueBeanTransformer] Error transforming issue with key 'PROJ-100' to automation issuebean.
org.codehaus.jackson.map.JsonMappingException: No serializer found for class com.atlassian.jira.issue.history.ChangeItemBean and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: com.atlassian.jira.rest.v2.issue.IssueBean["fields"]->java.util.HashMap["customfield_12409"]->java.util.ArrayList[0])
	at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
	at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)

Cause

There are two most likely causes:

  1. The referred class belongs to a custom plugin, and it doesn't have a serializer. In this example, it's a native class in Jira: com.atlassian.jira.issue.history.ChangeItemBean
  2. The custom field in the reference chain is a scripted custom field and it's failing. In this case, it's the customfield_12409

Solution

The solutions are, respectively:

  1. Engage the plugin vendor;
  2. Fix the scripting in the custom field. To get more information about this custom field, use the REST API or check the customfield table in the database.

If that doesn't fix the issue, please engage Atlassian Support.

Last modified on Sep 15, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.