java.lang.NoClassDefFoundError: com/atlassian/jira/event/type/EventType

sukkeong
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 16, 2017

After recent restart of JIRA and redeployment of plugin, an exception was raised

Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/event/type/EventType

The reporteed line:

return eventType.getId() == EventType.ISSUE_ASSIGNED_IDOn the class that was not modified. Previously, there has not been any issue. In fact, behaviour of plugin does not appear to be affected. (However, did not test on partner JIRA that is has a differnt language locale)

When I removed the code, and recompiled and redeployed. The same exception is thrown.

Later, running atlas-clean and atlas-package and restarting JIRA again, the exception was thrown again, but on the empty line of the removed code.

Checked my dependencies. 

    <dependency>
      <groupId>com.atlassian.jira</groupId>
      <artifactId>jira-api</artifactId>
      <version>${jira.version}</version>
      <scope>provided</scope>
    </dependency>
    <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
    <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
    <dependency>
      <groupId>com.atlassian.jira</groupId>
      <artifactId>jira-core</artifactId>
      <version>${jira.version}</version>
      <scope>provided</scope>
    </dependency>

What is going on? This has not occured before today.

How is this to be resolved?

 

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Thomas Schlegel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 16, 2017