Plugin Timeout Error

Hello,

I’m attempting to make a custom JIRA plugin, I receive this error:

This add-on failed to enable. Refer to the logs for more information.
After attempting to enable the plugin.

Steps Taken:

1 Create skeleton:

atlas-create-jira-plugin

2 Run plugin

atlas-debug

3 Add Web-item module

atlas-create-jira-plugin-module

25
module name: Link Button
section: system.top.navigation.bar
URL:/secure/CreateIssue!default.jspa
(this is the default value-- have also tried with http://www.google.com

##Parent POM.xml

<?xml version="1.0" encoding="UTF-8"?>

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
  <plugin-info>
    <description>${project.description}</description>
    <version>${project.version}</version>
    <vendor name="${project.organization.name}" url="${project.organization.url}"/>
    <param name="plugin-icon">images/pluginIcon.png</param>
    <param name="plugin-logo">images/pluginLogo.png</param>
  </plugin-info>
  <!-- add our i18n resource -->
  <resource type="i18n" name="i18n" location="pluginTest"/>
  <!-- add our web resources -->
  <web-resource key="pluginTest-resources" name="pluginTest Web Resources">
    <dependency>com.atlassian.auiplugin:ajs</dependency>
    <resource type="download" name="pluginTest.css" location="/css/pluginTest.css"/>
    <resource type="download" name="pluginTest.js" location="/js/pluginTest.js"/>
    <resource type="download" name="images/" location="/images"/>
    <context>pluginTest</context>
  </web-resource>

  <web-item name="Link Button" i18n-name-key="link-button.name" key="link-button" section="system.top.navigation.bar" weight="1000">
    <description key="link-button.description">The Link Button Plugin</description>
    <label key="link-button.label"></label>
    <link linkId="link-button-link">/secure/CreateIssue!default.jspa</link>
      <condition class="com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition"/>
  </web-item>
</atlassian-plugin>

4 Running the following commands (at different times):

atlas-package
atlas clean -U install
atlas clean verify

JIRA runs, but then the plugin is not enabled.
I have made no other modifications to the project.
However, I intend to link Java code which consumes the Confluence/JIRA APIs

I’m using macOS Sierra, with IntelliJ 2017.1.
Its not a networking issue as far as I know- followed these steps behind the corporate proxy & my personal phone hotspot.

Any help is appreciated.

Cheers

##Log File##
After running command

  1. atlas-clean; atlas-run
  2. atlas-package

atlassian-jira.log:

> 2017-04-10 08:48:21,154 QuickReload - Plugin Installer INFO      [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.test.plugin.pluginTest], 0 seconds remaining
> 2017-04-10 08:48:22,165 QuickReload - Plugin Installer INFO      [c.a.plugin.manager.DefaultPluginManager] Disabling com.test.plugin.pluginTest
> 2017-04-10 08:48:22,165 QuickReload - Plugin Installer ERROR      [c.a.p.osgi.factory.OsgiPlugin] Plugin 'com.test.plugin.pluginTest' never resolved service '&applicationProperties' with filter '(&(objectClass=com.atlassian.sal.api.ApplicationProperties)(objectClass=com.atlassian.sal.api.ApplicationProperties))'
> 2017-04-10 08:48:22,167 QuickReload - Plugin Installer DEBUG      [c.a.activeobjects.osgi.ActiveObjectsServiceFactory] onPluginDisabledEvent removing delegate for [com.test.plugin.pluginTest]
> 2017-04-10 08:48:22,186 QuickReload - Plugin Installer ERROR      [c.a.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.test.plugin.pluginTest
> 2017-04-10 08:48:22,191 QuickReload - Plugin Installer INFO      [c.a.l.p.quickreload.install.PluginInstallerMechanic]

Could you tell us what the log files say?
That might give us a better picture of what exactly is happening here.

1 Like