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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

233 views 1 18
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