Any Idea why i get this "is loadable from OSGi but no enabled plugins could autowire an instance" error.

I am writint a service which extends AbstractService class.The purpose of this service is to send emails..

but when i try to add this service i get this error..

" Exception loading class: [Class ' loadable from OSGi but no enabled plugins could autowire an instance" .

In my constructor-

public ArchiveEmailSenderService(ProjectManager projectManager, IssueManager issueManager, IssueIndexManager issueIndexManager, Locale locale, WebResourceManager resourceManager,
I18nHelper.BeanFactory beanFactory,ProjectStatistics projectStatistics) {
this.projectManager = projectManager;
this.searchProvider = ComponentManager.getInstance().getSearchProvider();
this.issueManager = issueManager;
this.issueIndexManager = issueIndexManager;
this.locale = locale;
this.resourceManager = resourceManager;
this.applicationProperties = ComponentAccessor.getApplicationProperties();
this.beanFactory = beanFactory;


ProjectStatistics projectStatistics - is my own class which i have used to inject via component module.(Pico injection..)

1 answer

1 accepted

This widget could not be displayed.

This usually happens if the ProjectStatistics has a constructor which cannot be used.

Make sure ProjectStatistics is declared as a bean (component) in your atlassian-plugin.xml and that its constructor is usable.

Yes i have used in atlassian-plugin.xml and it was working fine until i added addional parameters in the constructor..

component key="archiveProject_component" class="com.mail.ProjectStatisticsImpl"
        <description>Provides project statistics.</description>

I also blocked/commented this component import code and tried but i still get the same error..

There you go. Some of the added parameters are not good (who inject your Locale ? is the usual Locale or another service? also not sure about the I18nHelper.BeanFactory) .

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 2 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

13 views 0 2
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