com.atlassian.activeobjects.internal.ActiveObjectsInitException: Active Objects failed to initalize for bundle com.atlassian.fecru.plugin.commithook.fecru-webhooks-plugin

Atlassian JIRA | Gustavo Refosco [Atlassian] | 1 year ago
  1. 0

    h3. Summary FishEye/Crucible sends notification email reporting that the smart commits cannot be performed with the following content: {noformat} FishEye could not execute the smart commit because of an unexpected error: Active Objects failed to initalize for bundle com.atlassian.fecru.plugin.commithook.fecru-webhooks-plugin Please manually perform the required action within Crucible. {noformat} This problem is caused by the web hook related tables not being available in the database. The tables in question are: * {{AO_8219D4_COMMIT_HOOK_CONFIG}} * {{AO_A0B856_WEB_HOOK_LISTENER_AO}} * {{AO_B434B9_WEB_HOOK}} These tables have not been created as part of the migration to an Oracle database. The following sequences are present - notice the latest two being related to these tables - which seems to be preventing the tables from being created: {noformat} SEQUENCE NUMBER INFO -------------------------------------------------------------------------------- Owner: CRUCIBLE Sequence Name: AO_2913F5_COMMENT_ISSUE_ID_SEQ Calculated Last Number: 21 Increment by: 1 Min Value: 1 Max Value: 9999999999999999999999999999 Cycle Flag: NO CYCLE Cache Size: CACHE 20 Order Flag: NO ORDER Owner: CRUCIBLE Sequence Name: AO_38321B_CUSTOM_CO518521787 Calculated Last Number: 21 Increment by: 1 Min Value: 1 Max Value: 9999999999999999999999999999 Cycle Flag: NO CYCLE Cache Size: CACHE 20 Order Flag: NO ORDER Owner: CRUCIBLE Sequence Name: AO_A0B856_WEB_HOOK_625253910 Calculated Last Number: 21 Increment by: 1 Min Value: 1 Max Value: 9999999999999999999999999999 Cycle Flag: NO CYCLE Cache Size: CACHE 20 Order Flag: NO ORDER Owner: CRUCIBLE Sequence Name: AO_B434B9_WEB_HOOK_ID_SEQ Calculated Last Number: 21 Increment by: 1 Min Value: 1 Max Value: 9999999999999999999999999999 Cycle Flag: NO CYCLE Cache Size: CACHE 20 Order Flag: NO ORDER {noformat} h3. Environment * Oracle database. h3. Steps to Reproduce # The problem has not been reproduced yet. The causes mentioned in the summay may be leading to this condition. h3. Expected Results The smart commit feature works as expected, and no error message is reported in the log files. h3. Actual Results The below exception is thrown in the {{atlassian-fisheye-YYYY-MM-DD.log}} file: {noformat} ERROR [CommitNotifier1 ] com.atlassian.fecru.plugin.commithook.internal.DefaultCommitHookManager DefaultCommitHookManager-handleCommit - Error processing commit hook Web Hooks Processor com.atlassian.activeobjects.internal.ActiveObjectsInitException: Active Objects failed to initalize for bundle com.atlassian.fecru.plugin.commithook.fecru-webhooks-plugin at com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory$5.apply(ActiveObjectsServiceFactory.java:207) ... Caused by: com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library: Database: - name:Oracle ... java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing object at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.migrate(EntityManagedActiveObjects.java:52) Caused by: java.sql.SQLSyntaxErrorException: ORA-00955: name is already used by an existing object {noformat} h3. Notes The smart commit feature does not need to be enabled for this problem to occur. h3. Workaround (!) Always back up your database before performing any modification to the database. If possible, try your modifications on a test server. # Stop FishEye/Crucible # Drop the {{AO_A0B856_WEB_HOOK_625253910}} and {{AO_B434B9_WEB_HOOK_ID_SEQ}} sequences # Start FishEye/Crucible

    Atlassian JIRA | 1 year ago | Gustavo Refosco [Atlassian]
    com.atlassian.activeobjects.internal.ActiveObjectsInitException: Active Objects failed to initalize for bundle com.atlassian.fecru.plugin.commithook.fecru-webhooks-plugin
  2. 0

    Workbox Notification Shows Error Message When Clicked - Atlassian Documentation

    atlassian.com | 6 months ago
    com.atlassian.activeobjects.internal.ActiveObjectsInitException: Active Objects failed to initalize for bundle com.atlassian.mywork.confluence-host-plugin
  3. 0

    h3. Summary Upgrading the HipChat for JIRA plugin to version 7.8.1 throws the error below: {code}2016-06-01 11:54:30,717 http-nio-8717-exec-9 ERROR admin 714x223x2 1ciuqrw 10.60.6.247 /rest/hipchat/integrations/1.0/configuration/status [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: bundle [com.atlassian.labs.hipchat.hipchat-for-jira-plugin] com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.atlassian.labs.hipchat.hipchat-for-jira-plugin] at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:95) at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:86) at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:42) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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: com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library: Database: - name:Oracle - version:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options - minor version:2 Driver: - name:Oracle JDBC driver - version:12.1.0.1.0 java.sql.SQLException: ORA-01408: such column list already indexed at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.migrate(EntityManagedActiveObjects.java:47) at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory$1.doInTransaction(AbstractActiveObjectsFactory.java:77) at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory$1.doInTransaction(AbstractActiveObjectsFactory.java:72) at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25) at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:34) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) at com.sun.proxy.$Proxy340.doInTransaction(Unknown Source) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136) at com.sun.proxy.$Proxy340.doInTransaction(Unknown Source) at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21) ... 2 filtered at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) at com.sun.proxy.$Proxy937.execute(Unknown Source) at com.atlassian.activeobjects.internal.AbstractActiveObjectsFactory.create(AbstractActiveObjectsFactory.java:72) at com.atlassian.activeobjects.internal.DelegatingActiveObjectsFactory.create(DelegatingActiveObjectsFactory.java:32) at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects$1$1$1.call(TenantAwareActiveObjects.java:91) ... 6 more Caused by: java.sql.SQLException: ORA-01408: such column list already indexed at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399) at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1017) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:655) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:566) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:45) at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:933) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1075) at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1640) at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1603) at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:308) at org.apache.commons.dbcp2.DelegatingStatement.executeUpdate(DelegatingStatement.java:234) at org.apache.commons.dbcp2.DelegatingStatement.executeUpdate(DelegatingStatement.java:234) at net.java.ao.DatabaseProvider.executeUpdate(DatabaseProvider.java:2246) at net.java.ao.DatabaseProvider.executeUpdateForAction(DatabaseProvider.java:2302) at net.java.ao.DatabaseProvider.executeUpdatesForActions(DatabaseProvider.java:2274) at net.java.ao.schema.SchemaGenerator.migrate(SchemaGenerator.java:91) at net.java.ao.EntityManager.migrate(EntityManager.java:128) at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.migrate(EntityManagedActiveObjects.java:45) ... 44 more {code} h3. Environment JIRA 7.1.7 HipChat for JIRA Plugin 7.8.1 Oracle 11g/12g database h3. Steps to Reproduce This problem can be reproduced in a fresh JIRA install # Install JIRA 7.1.7 # Upgrade HipChat for JIRA plugin from 7.3.3 (bundled with JIRA 7.1.7) to the latest version in UPM (7.8.1) # Issue still persist after trying to uninstall and reinstall the plugin h3. Expected Results java.sql.SQLException: ORA-01408 should not be thrown after plugin upgrade h3. Actual Results java.sql.SQLException: ORA-01408 is thrown after plugin upgrade h3.Workaround N/A Disable plugin if HipChat Integration is not needed

    Atlassian JIRA | 6 months ago | Chai Tzu Hau [Atlassian]
    com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.atlassian.labs.hipchat.hipchat-for-jira-plugin]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 12#126733654

    GitHub | 1 year ago | straav
    com.atlassian.activeobjects.internal.ActiveObjectsInitException: bundle [com.allenta.jira.plugins.gitlab.gitlab-listener]
  6. 0

    {code} 2013-12-16 10:38:48,591 ERROR [AtlassianEvent::CustomizableThreadFactory-1] [atlassian.event.internal.AsynchronousAbleEventDispatcher] run There was an exception thrown trying to dispatch event 'com.atlassian.confluence.plugins.createcontent.listeners.PluginEnabledListener$AsyncPluginEnabledEvent@16959693' from the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.confluence.plugins.createcontent.listeners.PluginEnabledListener.onAsyncBlueprintCreateEvent(com.atlassian.confluence.plugins.createcontent.listeners.PluginEnabledListener$AsyncPluginEnabledEvent), listener=com.atlassian.confluence.plugins.createcontent.listeners.PluginEnabledListener@6c7aeaf4}'. -- referer: http://localhost:8081/plugins/servlet/upm/manage/all | url: /rest/plugins/1.0/ | userName: admin java.lang.RuntimeException: ActiveObjects was called before initialization had complete. Not waiting for an ActiveObjectsConfiguration to become available. To avoid this error and wait for initialization to be complete, call ActiveObjects.moduleMetaData().awaitInitialization() from outside of a transaction. Do NOT call awaitInitialization from within the thread responsible for publishing OSGi services, this can block service publication and cause AO to time out whilst waiting for the configuration to be published. at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) Caused by: com.atlassian.activeobjects.internal.ActiveObjectsInitException: ActiveObjects was called before initialization had complete. Not waiting for an ActiveObjectsConfiguration to become available. To avoid this error and wait for initialization to be complete, call ActiveObjects.moduleMetaData().awaitInitialization() from outside of a transaction. Do NOT call awaitInitialization from within the thread responsible for publishing OSGi services, this can block service publication and cause AO to time out whilst waiting for the configuration to be published. at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.getPromisedAO(DelegatingActiveObjects.java:84) at com.atlassian.activeobjects.osgi.DelegatingActiveObjects.flushAll(DelegatingActiveObjects.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy1928.flushAll(Unknown Source) at com.atlassian.confluence.plugins.createcontent.listeners.PluginEnabledListener.onAsyncBlueprintCreateEvent(PluginEnabledListener.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) ... 4 more {code}

    Atlassian JIRA | 3 years ago | Xavier Sanchez [Atlassian]
    java.lang.RuntimeException: ActiveObjects was called before initialization had complete. Not waiting for an ActiveObjectsConfiguration to become available. To avoid this error and wait for initialization to be complete, call ActiveObjects.moduleMetaData().awaitInitialization() from outside of a transaction. Do NOT call awaitInitialization from within the thread responsible for publishing OSGi services, this can block service publication and cause AO to time out whilst waiting for the configuration to be published.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.activeobjects.internal.ActiveObjectsInitException

      Active Objects failed to initalize for bundle com.atlassian.fecru.plugin.commithook.fecru-webhooks-plugin

      at com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory$5.apply()
    2. com.atlassian.activeobjects
      ActiveObjectsServiceFactory$5.apply
      1. com.atlassian.activeobjects.osgi.ActiveObjectsServiceFactory$5.apply(ActiveObjectsServiceFactory.java:207)
      1 frame