Plugin with custom service via SAL scheduler blocks other services

Hi all,

I had successfully developed plugin, it worked great on test enviroment. After installing on production enviroment i have troubles.

Symptoms:
- services works a little, than everyrhing stops
- mail queue not flushing automatically, no services works
- ServiceTrigger in Administration -> System ->Troubleshooting -> Scheduler shows past date
- no errors in logs after problem occurs

Here's my atlassian-plugin.xml

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

<atlassian-plugin key="${project.groupId}.${project.artifactId}" 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}"/>
  </plugin-info>
<component-import key="Bus_pluginScheduler">
    <description>SAL Scheduler</description>
    <interface>com.atlassian.sal.api.scheduling.PluginScheduler</interface>
  </component-import>
  <component key="BusS_heduler" class="croc.jira.service.SystemSensorShedulerImpl" system="true" public="true">
    <description>The plugin component that schedules the SystemSensor.</description>
    <interface>com.atlassian.sal.api.lifecycle.LifecycleAware</interface>
    <interface>croc.jira.service.SystemSensorSheduler</interface>
  </component>
<ao key="croc-activity">
    <description>The module configuring the Active Objects service used by this plugin</description>
    <entity>croc.jira.aodb.CROC_ACTIVITY</entity>
  </ao> 
  <component key="projectsentity-service" name="Projects table service" class="croc.jira.aodb.ProjectsEntityServiceImpl"/>
  <component key="bus-tx-processor" name="Transactional Annotation Processor" class="com.atlassian.activeobjects.external.TransactionalAnnotationProcessor">
    <decription>Processes @Transactional annotations.</decription>
  </component>
  <component-import key="bus-ao" name="Active Objects service" interface="com.atlassian.activeobjects.external.ActiveObjects">
    <description>Component to access Active Objects functionality from the plugin</description>
  </component-import>
<customfield-type name="ProjectsCf" i18n-name-key="Activity from bus" key="ProjectsCf" class="croc.jira.customfield.ProjectsCf">
<description key="Addsfieldfithsynchronisation">The activite field</description>
    <resource name="view" type="velocity" location="/templates/viewBusProjects.vm"/>
    <resource name="edit" type="velocity" location="/templates/editBusProjects.vm"/>
  </customfield-type>
  <customfield-searcher key="proj-activity-searcher" name="Searcher" class="com.atlassian.jira.issue.customfields.searchers.TextSearcher">
    <description key="xxxxxxxx">Search for ProjectCf using a free text search.</description>
    <resource name="search" type="velocity" location="/templates/search-basictext.vm"/>
    <valid-customfield-type package="croc.jira.ActivityImport" key="ProjectsCf"/>
  </customfield-searcher>
<resource type="i18n" name="i18n" location="croc.jira.ActivityImport"/>
<rest name="get Matching Projects" i18n-name-key="get-matching-projects.name" key="get-matching-projects" path="/getmatchingprojects" version="1.0">
    <description key="get-matching-projects.description">The get Matching Projects Plugin</description>
  </rest>
</atlassian-plugin>


1 answer

1 accepted

Service had endless method

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you