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

UnsatisfiableDependenciesException for web-panel

grundic
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.
December 20, 2011

Hello, everyone! I've encountered strange problem.

I'm developing new web-panel, here is it's descriptor:

<web-panel key="feature-goal-link-panel" location="atl.jira.view.issue.left.context" weight="400">
        <context-provider class="ru.mail.jira.plugins.fg.panel.ViewLinksIssueMultiContextProvider">
            <param name="ctxProvider-1">com.atlassian.jira.plugin.webfragment.contextproviders.I18nContextProvider</param>
            <param name="ctxProvider-2">com.atlassian.jira.plugin.webfragment.contextproviders.BaseUrlContextProvider</param>
            <param name="ctxProvider-3">ru.mail.jira.plugins.fg.panel.LabelLinkBlockContextProvider</param>
            <param name="ctxProvider-4">com.atlassian.jira.plugin.webfragment.contextproviders.XsrfTokenContextProvider</param>
        </context-provider>
        <resource name="view" type="velocity" location="/ru/mail/jira/plugins/fg/templates/panel/feature-goal-panel.vm"/>

        <!--<condition class="com.atlassian.jira.plugin.webfragment.conditions.LinkingEnabledCondition"/>-->
        <label key="common.concepts.issuelinks"/>
    </web-panel>

Context provider #3 is my custom context provider. Inside it's constructor I'm trying to inject several values. When I injecting, for example, JiraAuthenticationContext - it's ok. But when I try to inject ApplicationProperties or PluginSettingsFactory or my custom interface I got an exception (http://pastebin.com/qX37QA8n).

So, I tryed a lot of options, but today I found, that if I remove BaseUrlContextProvider (context provider #2) - everything is fine. I don't need this context much (I can add it in mine), but maybe someone know why this happened?

By the way, both ApplicationProperties and PluginSettingsFactory have component imports in my atlassian-plugin.xml:

<component-import key="pluginSettingsFactory">
	<interface>com.atlassian.sal.api.pluginsettings.PluginSettingsFactory</interface>
</component-import>

<component-import key="applicationProperties">
	<interface>com.atlassian.sal.api.ApplicationProperties</interface>
</component-import>

Also, hope, that this post can help someone.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 2, 2012

Waht class does your custom implementation extend?

TAGS
AUG Leaders

Atlassian Community Events