Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,113
Community Members
 
Community Events
184
Community Groups

'Plugin never resolved service with filter' when the task runs on the remote agent

Hello! I am developing a custom Bamboo plugin. In my class that implements CustomBuildProcessorServer I inject VariableDefinitionManager.

 

private VariableDefinitionManager variableDefinitionManager;

public BuildProcessorServerExport(
@ComponentImport final VariableDefinitionManager variableDefinitionManager) {
this.variableDefinitionManager = variableDefinitionManager;
}

When to start Task on local agent the variable variableDefinitionManager is initialized normally, but when on remote agent I get error

 ERROR [remoteEventRebroadcasterMessageListenerContainer-1] [OsgiPlugin] Plugin  never resolved service '&variableDefinitionManager' with filter '(&(objectClass=com.atlassian.bamboo.variable.VariableDefinitionManager)(objectClass=com.atlassian.bamboo.variable.VariableDefinitionManager))'

my atlassian-plugin.xml

<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>

<taskType name="Prometheus exporter" class="atlas.plugin.promexporter.PrometheusTask"
key="test">
<description>Prometheus exporter test duration </description>
<configuration class="atlas.plugin.promexporter.PrometheusTaskConfigurator" />
<resource type="freemarker" name="edit" location="prometheusTask.ftl" />
</taskType>

<buildProcessorServer key="buildProcessorServerExport"
name="Build Processor Server" class="atlas.plugin.promexporter.BuildProcessorServerExport">
<skipIfFailed>true</skipIfFailed>
</buildProcessorServer>

<!-- Servlets -->
<servlet name="Exporter Servlet" key="bamboo-test-export"
class="io.prometheus.client.exporter.MetricsServlet">
<url-pattern>/test</url-pattern>
</servlet>

<servlet name="Remove Metrics Servlet" key="bamboo-remove-metrics"
class="atlas.plugin.promexporter.RemoveMetricsServlet">
<url-pattern>/test/remove</url-pattern>
</servlet>

</atlassian-plugin>

What can be done in this situation ?

 

Thank you for any info.

1 answer

0 votes
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 13, 2019

Hi @Miroslav Shipilov

The best channel for this type of question is the https://community.developer.atlassian.com/c/bamboo-development

I advise you to raise the same question there.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events