Is there a simple example project for embedding the plugin framework?

I'm struggling to figure out the process for successfully embedding the Atlassian Plugin Framework, and am interested in whether there are any simple example projects out there that use it. It doesn't matter to me if it's an officially-blessed Atlassian project or something a third-party developer has put online -- I'd just love to see some code so I can better understand what I'm missing.

Note that I've followed the Quick Start guide, and have gotten as far as building a plugin container app, as well as a simple plugin to deploy within the app. But I can't get any data shared from the app into the plugin (tons of proxy-based NullPointerExceptions), nor can I figure out how to move from the now-deprecated methods that are mentioned in the Quick Start guide to the new methods that replace them.

Am I up a creek on this?

Thanks a ton, in advance!

1 answer

1 vote
Joseph Clark Atlassian Team Feb 28, 2012

I know a few people have successfully run the plugin framework standalone, but for the life of me I can't find any links to prove it.

As an alternative, you could try looking at the Atlassian RefApp, which is a bare bones implementation of a web app with the plugin framework + some other bits and pieces (like SAL):

Thanks, Joseph -- I'll take a look at that. You linked to the v2.9.1 one -- should I be looking at v2.12.1 instead, though?

Likewise, do you have any good ideas for how to debug plugins in an IDE? As they're loaded from JARs by the plugin container app, they're not exactly debuggable very easily... which is making hunting down the NPEs that I'm experiencing VERY hard. All I know at this point is that it's occurring on line 128 of com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar, in the ContextClassLoaderSettingInvocationHandler.invoke method -- the specific line is:


and I have no real way to figure out which object is throwing the NPE...

Joseph Clark Atlassian Team Feb 29, 2012

Any version of the refapp should be useful. Sorry for not giving you a link to the latest one- I just scrolled to the bottom of the parent directory and picked the highest number I could find. :-)

Debugging the plugin will depend on the host app's support for debugging. The Atlassian products all support a development mode that can start up a standard debugger that IDEs can connect to to debug plugins or the host application itself. (See atlas-debug)

Suggest an answer

Log in or Sign up to answer
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
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

354 views 0 6
Read article

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