Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

OSGi doesn't load new version

Hi all,

I got an error recently on a custom plugin due to an update of another plugin taken from the marketplace that the first one depends on.

The problem was that Jira continued to give me the same error although I fixed it in the new version that I updated through the Manage add-on page. I was lucky because the error was referring to the constructor of a particular class that I modified, so it was quite clear. What it is not clear, is why it didn't load the new class. I tried to disable/renable, unistall/reinstall, stop/restart Jira and also reindexing it, but nothing works.

I suspect that this is due to OSGi, but I'm not so familiar with it, so I'm here to ask to the community some enlightment!

Well, at the end I find a way to solve it, and this is why this post is a discussion and not a question, so here it is:


This is the steps that let Jira load only the new class:

  1. Uninstall the plugin
  2. Stop Jira
  3. delete all previous version of the plugin (e.g. atlassian-jira/temp/plugin_RANDOM_NUMBERS_PLUGIN_NAME-PLUGIN_VERSION.jar)
  4. Start Jira
  5. Install plugin
  6. Reindex all

By the way, if you are developing some plugin in Jira remember to do it because you can see no progress because of this!




Log in or Sign up to comment

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you