Getting this illegalStateExceptionError for ao in my jira plugin when trying to ao.migrate() or ao.find(), Please let me know if I m missing something.
"plugin [{com.company.jira.plugin}] invoking ActiveObjects before <ao> configuration module is enabled or plugin is missing an <ao> configuration module. Note that scanning of entities from the ao.model package is no longer supported."
added this in pom.xml
<dependency>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>6.1.2</version>
<scope>provided</scope>
</dependency>
added this atlassian.xml
<ao key="my-ao-module">
<description>ActiveObjects plugin</description>
<entity>com.plugin.model.SettingsEntity</entity>
</ao>
entity class
@Preload
public interface SettingsEntity extends Entity {
void setProjectRadio(String projectRadio);
String getProjectRadio();
}
using ao using @ComponentImport to get Active Objects
SettingsEntity[] entit = ao.find(SettingsEntity.class);
What are you trying to resolve by updating this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.