JIRA活动对象异常

JIRA活动对象异常,jira,jira-plugin,jira-rest-api,jira-agile,jira-rest-java-api,Jira,Jira Plugin,Jira Rest Api,Jira Agile,Jira Rest Java Api,我是jira主动对象实现的新手。 我在使用jTrick实现活动对象时发现了错误 无法创建新引用LazyLoadedServletReference{descriptor=com.atlassian.jira.demo.aoDemo:地址列表(用于添加和列出地址的servlet),servletContext=org.apache.catalina.core。ApplicationContextFacade@3a0a701} [INFO][talledLocalContainer]com.atl

我是jira主动对象实现的新手。 我在使用jTrick实现活动对象时发现了错误

无法创建新引用LazyLoadedServletReference{descriptor=com.atlassian.jira.demo.aoDemo:地址列表(用于添加和列出地址的servlet),servletContext=org.apache.catalina.core。ApplicationContextFacade@3a0a701} [INFO][talledLocalContainer]com.atlassian.util.concurrent.LazyReference$InitializationException:java.lang.NullPointerException:Plugin容器访问器为空。Plugin:com.atlassian.jira.demo.aoDemo。模块名称:com.atlassian.jira.demo.Servlet.AddressServlet。“

IAOService.java的代码

public interface IAOService {
public ActiveObjects getActiveObjects();}
IAOServiceImpl的代码

public class IAOServiceImpl implements IAOService {
private final ActiveObjects ao;

public IAOServiceImpl(ActiveObjects ao) {
    System.out.println("Initializing constructor impl");
    System.out.println("IAOServiceImpl constructor found active object ::"+ao);
    this.ao=ao;         
}
public ActiveObjects getActiveObjects() {
    return this.ao;
}}
我将依赖注入servlet构造函数

依赖代码

公共地址servlet(IAOService aoService){
如果(aoService!=null){
this.aoService=aoService;else this.aoService=null;}

我禁用插件中的atlassian插件扫描功能

请帮我解决这个问题

我还提到插件描述符文件中的ao模块

插件描述符代码:

<ao key="ao-module">
<description>Configuration of active object service</description>
<entity>sample.AddressEntity</entity>

活动对象服务的配置
sample.address实体


组件从插件访问活动对象功能
Pom码

<pluginArtifact>
    <groupId>com.atlassian.activeobjects</groupId>
    <artifactId>activeobjects-plugin</artifactId>
    <version>${ao.version}</version>
</pluginArtifact>
<pluginArtifact>
    <groupId>com.atlassian.activeobjects</groupId>
    <artifactId>activeobjects-jira-spi</artifactId>
    <version>${ao.version}</version>
</pluginArtifact>

com.atlassian.activeobjects
activeobjects插件
${ao.version}
com.atlassian.activeobjects
activeobjects jira spi
${ao.version}
Ao.0版本为0.18

异常堆栈

[信息][talledLocalContainer]2016-09-14 11:26:37451 http-nio-2990-exec-2调试管理686x211x11x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.OsgiServiceUtilsImpl]注册服务 net.java.ao.atlassian。AtlassianTableNameConverter@677b0082具有 接口net.java.ao.schema.TableNameConverter和属性 {com.atlassian.plugin.key=com.atlassian.jira.demo.aoDemo}[INFO] [talledLocalContainer]2016-09-14 11:26:37453 http-nio-2990-exec-2 调试管理686x211x11x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.OsgiServiceUtilsImpl]注册服务 com.atlassian.activeobjects.config.internal。DefaultActiveObjectsConfiguration@7e886a2b 带接口 com.atlassian.activeobjects.config.activeobjects配置和 属性{com.atlassian.plugin.key=com.atlassian.jira.demo.aoDemo} [信息][talledLocalContainer]2016-09-14 11:26:37457 http-nio-2990-exec-2调试管理686x211x11x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] onPluginModuleEnabledEvent存储未连接的配置 [com.atlassian.jira.demo.aoDemo][INFO]模块 [talledLocalContainer]2016-09-14 11:26:37463 http-nio-2990-exec-2 调试管理686x211x11x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] OnPlugineEnabledEvent未绑定到 [com.atlassian.jira.demo.aoDemo][INFO][talledLocalContainer] 2016-09-14 11:26:37463 http-nio-2990-exec-2调试管理686x211x1 1x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.TenantAwareActiveObjects]初始化包 [com.atlassian.jira.demo.aoDemo][INFO][talledLocalContainer] 2016-09-14 11:26:37464 http-nio-2990-exec-2调试管理686x211x1 1x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.TenantAwareActiveObjects]捆绑包 [com.atlassian.jira.demo.aoDemo]加载新的AO承诺 JiraTenantImpl{id='system'}[INFO][talledLocalContainer]2016-09-14 11:26:37464 http-nio-2990-exec-2调试管理686x211x11x1imyf 172.17.20.51/rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key[c.a.activeobjects.osgi.tenatawareactiveobjects]setAoConfiguration [com.atlassian.jira.demo.aoDemo][INFO][talledLocalContainer] 2016-09-14 11:26:37464 http-nio-2990-exec-2调试管理686x211x1 1x1imyf 172.17.20.51 /rest/plugins/1.0/com.atlassian.jira.demo.aoDemo-key [c.a.activeobjects.osgi.TenantAwareActiveObjects]捆绑包 [com.atlassian.jira.demo.aoDemo]已获得ActiveObjectsConfiguration[信息] [talledLocalContainer]2016-09-1416:26:37474 活动对象init JiraTenantImpl{id='system'}-0调试管理
[c.a.activeobjects.osgi.TenantAwareActiveObjects]捆绑包 [com.atlassian.jira.demo.aoDemo]创建活动对象[INFO] [talledLocalContainer]2016-09-1416:26:37488 活动对象init JiraTenantImpl{id='system'}-0调试管理
[c.a.activeobjects.osgi.TenantAwareActiveObjects]捆绑包 [com.atlassian.jira.demo.aoDemo]创建了ActiveObjects[INFO] [talledLocalContainer]2016-09-14 11:26:47872 http-nio-2990-exec-9 管理错误686x226x11x1imyf 172.17.20.51 /插件/servlet/addressservlet [c.a.plugin.servlet.DefaultServletModuleManager]无法创建新的 参考 LazyLoadedServletReference{descriptor=com.atlassian.jira.demo.aoDemo:地址列表 (用于添加和列出地址的servlet), servletContext=org.apache.catalina.core。ApplicationContextFacade@3a0a701} [信息][talledLocalContainer] com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException:插件容器访问器为null。 插件:com.atlassian.jira.demo.aoDemo。模块名称: com.atlassian.jira.demo.Servlet.AddressServlet。[信息] [talledLocalContainer]位于 com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) [信息][talledLocalContainer]位于 com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112) [信息][talledLocalContainer]位于 com.atlassian.plugin.servlet.DefaultServletModuleManager.getInstance(DefaultServletModuleManager.java:374) [信息][talledLocalContainer]位于 com.atlassian.plugin.servlet.DefaultServletModuleManager
<pluginArtifact>
    <groupId>com.atlassian.activeobjects</groupId>
    <artifactId>activeobjects-plugin</artifactId>
    <version>${ao.version}</version>
</pluginArtifact>
<pluginArtifact>
    <groupId>com.atlassian.activeobjects</groupId>
    <artifactId>activeobjects-jira-spi</artifactId>
    <version>${ao.version}</version>
</pluginArtifact>