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

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

Comments Closed
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,307 views 2 7
Join discussion

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