Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

'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

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
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

251 views 4 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you