ActiveObjects initialization error

Hi

 

I'm trying to use Active Objects in my plugin but I'm getting following error when trying to use it:

invoking ActiveObjects before <ao> configuration module is enabled or plugin is missing an <ao> configuration module.

I'm trying to run the ao code inside a plugin that implements customField on getSingularObjectFromString method.

I have following configuration in atlassian-plugin.xml

 

 

<ao key="ao-module">
<description>The module configuring the Active Objects service used by this plugin</description>
<entity> myClassNameHere</entity>
</ao>

<component-import key="ao"
name="Active Objects components"
interface="com.atlassian.activeobjects.external.ActiveObjects">
<description>Access to the Active Objects service</description>
</component-import>

and pom.xml:

 

 <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-plugin</artifactId>
            <version>${ao.version}</version>
            <scope>provided</scope>
        </dependency>

 

Any help appreciated. Thank you

 

 

 

 

1 answer

This widget could not be displayed.

Try to switch the order in your add-on descriptor:
First your component-import and then your "ao-module".

Let me know If this solve your problem :D
Kind Regards.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Canada

AUG Lunch Roundtable - August 13 - Highlights

Thanks to everyone who came out today for the lunch AUG - we had some great food and discussion (and ice cream sandwiches to fend off the heat!) The welcome and fun fact was great as well, what an aw...

41 views 2 4
View post

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