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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

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
TAGS

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