Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,456,258
Community Members
 
Community Events
176
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:

SOLUTION

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!

 

0 comments

Comment

Log in or Sign up to comment