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.
Community moderators have prevented the ability to post new answers.
Waht class does your custom implementation extend?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.