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

OSGi doesn't load new version

Luca Andreatta
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.
Jul 23, 2019

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