Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agile Panel not loading #30

Open
boris-yakimov opened this issue Jan 27, 2016 · 11 comments
Open

Agile Panel not loading #30

boris-yakimov opened this issue Jan 27, 2016 · 11 comments

Comments

@boris-yakimov
Copy link

The Gerrit Reviews panel in JIRA issues shows no reviews although we can see the reviews in Gerrit. It generates an exception in the JIRA logs (error is below).
It used to work in JIRA 6 before we upgraded to Jira7. I even updated to JIRA 7.0.7 when the update became available but did not help.

2016-01-13 09:25:35,268 http-bio-8443-exec-177 ERROR a.legkiy 565x45073x1 1caebki 194.6.233.46 /rest/greenhopper/1.0/xboard/issue/details.json [c.a.g.w.r.issue.thirdpartytabs.ThirdPartyTabModelFactory] Unable to load third party tab for com.meetme.plugins.jira.gerrit-plugin:gerrit-reviews-agile-panel
java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser
at com.atlassian.jira.plugin.webfragment.contextproviders.AbstractJiraContextProvider.getContextMap(AbstractJiraContextProvider.java:20)
at com.atlassian.plugin.web.model.AbstractWebItem.getContextMap(AbstractWebItem.java:30)
at com.atlassian.plugin.web.model.DefaultWebLabel.getDisplayableLabel(DefaultWebLabel.java:55)
at com.atlassian.greenhopper.web.rapid.issue.thirdpartytabs.ThirdPartyTabModelFactory.buildThirdPartyTab(ThirdPartyTabModelFactory.java:84)
at com.atlassian.greenhopper.web.rapid.issue.thirdpartytabs.ThirdPartyTabModelFactory.buildThirdPartyTabs(ThirdPartyTabModelFactory.java:65)
at com.atlassian.greenhopper.web.rapid.issue.thirdpartytabs.ThirdPartyTabModelFactory.createModel(ThirdPartyTabModelFactory.java:52)
at com.atlassian.greenhopper.web.rapid.issue.IssueEntryFactory.buildViewEntry(IssueEntryFactory.java:409)
at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:136)
at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:106)
at com.atlassian.greenhopper.web.util.RestCall.response(RestCall.java:42)
at com.atlassian.greenhopper.web.AbstractResource.createResponse(AbstractResource.java:114)
at com.atlassian.greenhopper.web.AbstractResource.response(AbstractResource.java:94)
at com.atlassian.greenhopper.web.rapid.issue.IssueResource.getPageData(IssueResource.java:105)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:497)
... 19 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)
... 1 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)
... 101 filtered
at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)
... 73 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

@justsomebody42
Copy link

We have the exact same problem...

@Aricg
Copy link

Aricg commented May 12, 2016

Bumping

@wbiller
Copy link

wbiller commented May 25, 2016

I raised this at Atlassian: https://jira.atlassian.com/browse/JRA-60866

@jhansche
Copy link

@burizz I believe the 3.0 release of the plugin fixed this, via a pull request from @p00by (#27)

@jhansche
Copy link

jhansche commented Sep 6, 2016

This was fixed in version 3.0, and the latest version 3.1 includes compatibility with 7.0.0 … 7.2.0

@jhansche jhansche closed this as completed Sep 6, 2016
@Prakashjira
Copy link

Hi jhansche,

I have installed JIRA Gerrit Plugin in our Jira Instance Version:3.2. But we are also have same issue. please see the below error.

2017-07-31 04:59:15,658 http-bio-8443-exec-880 ERROR XXXXXXX 299x171879x1 XXXXX XXX.XXX.XXX.XXX /rest/greenhopper/1.0/xboard/issue/details.json [c.a.g.w.r.issue.thirdpartytabs.ThirdPartyTabModelFactory] Unable to load third party tab for com.meetme.plugins.jira.gerrit-plugin:gerrit-reviews-agile-panel

at java.lang.Thread.run(Thread.java:745)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
... 45 filtered
at net.bull.javamelody.JiraMonitoringFilter.doFilter(JiraMonitoringFilter.java:105)
at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:85)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:201)
... 31 filtered
at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
... 16 filtered
at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70)
... 86 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68)
... 1 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)
... 19 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
... 2 filtered
at com.atlassian.greenhopper.web.rapid.issue.IssueResource.getPageData(IssueResource.java:102)
at com.atlassian.greenhopper.web.AbstractResource.response(AbstractResource.java:91)
at com.atlassian.greenhopper.web.AbstractResource.createResponse(AbstractResource.java:111)
at com.atlassian.greenhopper.web.util.RestCall.response(RestCall.java:42)
at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:103)
at com.atlassian.greenhopper.web.rapid.issue.IssueResource$1.call(IssueResource.java:133)
at com.atlassian.greenhopper.web.rapid.issue.IssueEntryFactory.buildViewEntry(IssueEntryFactory.java:401)
at com.atlassian.greenhopper.web.rapid.issue.thirdpartytabs.ThirdPartyTabModelFactory.createModel(ThirdPartyTabModelFactory.java:52)
at com.atlassian.greenhopper.web.rapid.issue.thirdpartytabs.ThirdPartyTabModelFactory.buildThirdPartyTabs(ThirdPartyTabModelFactory.java:65)
at com.atlassian.greenhopper.web.rapid.issue.thirdpartytabs.ThirdPartyTabModelFactory.buildThirdPartyTab(ThirdPartyTabModelFactory.java:84)
at com.atlassian.plugin.web.model.DefaultWebLabel.getDisplayableLabel(DefaultWebLabel.java:55)
at com.atlassian.plugin.web.model.AbstractWebItem.getContextMap(AbstractWebItem.java:30)
at com.atlassian.jira.plugin.webfragment.contextproviders.AbstractJiraContextProvider.getContextMap(AbstractJiraContextProvider.java:20)
java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser

The solution are expect quickly it will more help to us.

Thanks,
Prakash

@jhansche
Copy link

Looks like this is specific to the Agile tab panel. Will reopen this and close #53

@jhansche jhansche reopened this Jul 31, 2017
@jhansche jhansche changed the title Jira Gerrit plugin not working with Jira 7.0.5, 7.0.7 or 7.0.9 Agile Panel not loading Jul 31, 2017
@jhansche
Copy link

The issue is caused by:

java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser

That panel comes from https://github.com/MeetMe/jira-gerrit-plugin/blob/master/src/main/resources/atlassian-plugin.xml#L227 so the class would have to be com.meetme.plugins.jira.gerrit.webpanel.GerritReviewsIssueAgilePanel

That class was a PR contribution ( #24 ), so I'm not familiar with the code. Perhaps @borgeorgiev has some further insight?

@Prakashjira
Copy link

Hi jhansche and borgeorgiev,

can we any update on this issue?

@RahulSavaikar-TomTom
Copy link

Facing similar issues on JIRA 7.2.8 using any of the mentioned Gerrit Plugin versions, 3.0 or 3.3.

Screenshots:
image
image

Please help!!

@borgeorgiev
Copy link

Can you provide the errors from the atlassian-jira.log file ?
We're using the addon on JIRA 7.3.1 and Gerrit Plugin 3.2 and it works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants