Plugin with custom service via SAL scheduler blocks other services

Andrey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 20, 2013

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

0 votes
Answer accepted
Andrey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 21, 2013

Service had endless method

Suggest an answer

Log in or Sign up to answer