| Summary: | unable to refresh config for Gerrit 2.7 => NPE in GerritReviewRemoteFactory.updateModel | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Tomasz Zarna <tomasz.zarna> |
| Component: | Mylyn | Assignee: | Tomasz Zarna <tomasz.zarna> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | milesparker, sam.davis |
| Version: | unspecified | ||
| Target Milestone: | 2.0.2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | 412872 | ||
| Bug Blocks: | 410597 | ||
|
Description
Tomasz Zarna
It looks like the stack trace is only a result of the failed call (and a null check maybe missing somewhere in there). Do you think you could capture the stack trace for the No such service method error? I'm curious which remote call is actually failing. The NPE is actually the same as bug 410597: [regression] NPE when querying and configuration is not cached. It's getProjectAdminService(..).visibleProjectDetails(..) : Thread [ModalContext] (Suspended (exception GerritException)) JSonSupport.parseJsonResponse(String, Type) line: 207 GerritService.invoke(Object, Method, Object[]) line: 116 $Proxy4.visibleProjectDetails(AsyncCallback) line: not available GerritClient$25.execute(IProgressMonitor) line: 958 GerritConnector$1(GerritClient).executeOnce(IProgressMonitor, Operation<T>) line: 1049 GerritConnector$1(GerritClient).execute(IProgressMonitor, Operation<T>) line: 1007 GerritConnector$1(GerritClient).getVisibleProjects(IProgressMonitor, GerritConfig) line: 955 GerritConnector$1(GerritClient).refreshConfig(IProgressMonitor) line: 750 GerritConnector.updateRepositoryConfiguration(TaskRepository, IProgressMonitor) line: 274 AbstractRepositoryQueryPage2$3.run(IProgressMonitor) line: 328 ModalContext$ModalContextThread.run() line: 121 After checking why we need the projects in the first place ([1][2]), I think retrieving @ProjectInfo@s [3] should be enough. All we need is project name. [1] org.eclipse.mylyn.internal.gerrit.ui.wizards.ProjectNameContentProposalProvider.getProposals(String, int) [2] org.eclipse.mylyn.internal.gerrit.ui.egit.GerritRepositorySearchPageContentProvider.getProjects(TaskRepository) [3] https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html#list-projects (In reply to comment #3) > I think retrieving @ProjectInfo@s [3] should be enough Let's check that. Fixed in 7c990859bddb22de782e412087f083a2f90234a7 . Reopening so we can consider for inclusion in 3.10. I'm +1 on this. Sam, Miles, do you have any input? +1 +1 Thanks. I have merged the change on the 3.10.x branch. I also back-ported the change for 3.9.2. |