Active Objects failed to initalize

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

The following appears in the Bamboo logs when trying to use a plugin

2015-06-18 01:22:54,176 ERROR [http-bio-8443-exec-2] [ExceptionMappingInterceptor] Active Objects failed to initalize for bundle <plugin key>
com.atlassian.activeobjects.internal.ActiveObjectsInitException: Active Objects failed to initalize for bundle <plugin key>
	at com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory$5.apply(ActiveObjectsServiceFactory.java:207)
	at com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory$5.apply(ActiveObjectsServiceFactory.java:187)
	at com.atlassian.util.concurrent.Promises$Of$2.apply(Promises.java:259)
	at com.atlassian.util.concurrent.Promises$Of$2.apply(Promises.java:256)
	at com.atlassian.util.concurrent.Promises$2.onFailure(Promises.java:162)
	at com.google.common.util.concurrent.Futures$7.run(Futures.java:1100)
	at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
	at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:161)
	at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134)
	at com.google.common.util.concurrent.JdkFutureAdapters$ListenableFutureAdapter$1.run(JdkFutureAdapters.java:152)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: com.atlassian.activeobjects.osgi.NoServicesFoundException: Was expecting one service reference for interface <com.atlassian.activeobjects.config.ActiveObjectsConfiguration> and filter <(com.atlassian.plugin.key=com.wittified.bamboo.tech-insights)>. Got null ! You should check whether an ActiveObjectsPluginException was thrown at startup. It will give you more information about potential errors in the <ao> module in your atlassian-plugin.xml.
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.atlassian.act

Problem known to occur with the following plugin:

  • com.wittified.bamboo.tech-insights

Cause

MySQL database tables are using MyISAM storage engine rather than InnoDB. Use the following SQL query to check the table storage engine:

SELECT TABLE,NAMEENGINE
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA='<schema name>';

Resolution

Convert all the database tables to use InnoDB storage engine:

  1. Use the following SQL query to generate a list of queries to convert every table that is using MyISAM storage engine

    SELECT  CONCAT('ALTER TABLE `', table_name, '` ENGINE=InnoDB;') AS sql_statements
    FROM    information_schema.tables AS tb
    WHERE   table_schema = '<schema name>'
    AND     `ENGINE` = 'MyISAM'
    AND     `TABLE_TYPE` = 'BASE TABLE'
    ORDER BY table_name DESC;
  2. Run all the query generated by the output of Step 1
Last modified on Apr 6, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.