Bug 233911 - NullPointerException during fetching "Computing" for just created GridProject
Summary: NullPointerException during fetching "Computing" for just created GridProject
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Geclipse (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Nick Tsioutsias CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 234134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-26 04:17 EDT by Mariusz Wojtysiak CLA
Modified: 2014-01-09 16:14 EST (History)
4 users (show)

See Also:


Attachments
Patch for eu.geclipse.info (7.53 KB, patch)
2008-05-27 03:24 EDT, Nick Tsioutsias CLA
aog-ecl: iplog+
Details | Diff
Patch for eu.geclipse.info.ui (5.02 KB, patch)
2008-05-27 03:25 EDT, Nick Tsioutsias CLA
aog-ecl: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Wojtysiak CLA 2008-05-26 04:17:27 EDT
1. Start g-Eclipse with new workspace
2. Create new GridProject
3. In GripProject wizard add new VO
4. Import g-Eclipse VO from repository
5. Import CA certificates
6. Finish creation of grid project
7. In Grid Project view expand geclipse / computing

result: following exception is thrown
java.lang.NullPointerException
at eu.geclipse.glite.info.bdii.BDIIService.fetchComputing(BDIIService.java:160)
at eu.geclipse.core.model.impl.AbstractVirtualOrganization.getComputing(AbstractVirtualOrganization.java:89)
at eu.geclipse.core.internal.model.VoWrapper.getComputing(VoWrapper.java:149)
at eu.geclipse.core.internal.model.VoWrapper$2.getInput(VoWrapper.java:78)
at eu.geclipse.core.internal.model.QueryContainer.getInput(QueryContainer.java:133)
at eu.geclipse.core.internal.model.QueryContainer.query(QueryContainer.java:122)
at eu.geclipse.core.internal.model.QueryContainer.fetchChildren(QueryContainer.java:93)
at eu.geclipse.core.model.impl.AbstractGridContainer$ChildFetcher.run(AbstractGridContainer.java:119)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Ariel Garcia CLA 2008-05-26 05:57:59 EDT
Reassigning to you Nick, this one would be blocker for M6 if it is really always so!
Comment 2 Ariel Garcia CLA 2008-05-26 06:27:27 EDT
Happens for me also. The problem is that no proxy is requested!!
Comment 3 Ariel Garcia CLA 2008-05-26 06:31:51 EDT
Sorry, forget my silly comment please, there should be no need for a proxy, but the problem dialog displayed is wrong, the proposed solutions are:

- check proxy settings
- check auth tokens
- check imported CA certs

all are wrong!

Actually the same happens when querying any of the Services, the exception is in this case:

eu.geclipse.core.model.GridModelException: Failed to fetch children
at eu.geclipse.core.model.impl.AbstractGridContainer.getChildren(AbstractGridContainer.java:235)
at eu.geclipse.ui.providers.FetchChildrenJob.run(FetchChildrenJob.java:55)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
eu.geclipse.core.model.GridModelException[-1900659325]: java.lang.NullPointerException
at eu.geclipse.glite.info.bdii.BDIIService.fetchServices(BDIIService.java:208)
at eu.geclipse.core.model.impl.AbstractVirtualOrganization.getServices(AbstractVirtualOrganization.java:156)
at eu.geclipse.voms.vo.VomsVirtualOrganization.getServices(VomsVirtualOrganization.java:157)
at eu.geclipse.core.internal.model.VoWrapper.getServices(VoWrapper.java:190)
at eu.geclipse.core.internal.model.VoWrapper$4.getInput(VoWrapper.java:101)
at eu.geclipse.core.internal.model.QueryContainer.getInput(QueryContainer.java:133)
at eu.geclipse.core.internal.model.QueryContainer.query(QueryContainer.java:122)
at eu.geclipse.core.internal.model.QueryContainer.getInput(QueryContainer.java:132)
at eu.geclipse.core.internal.model.QueryContainer.query(QueryContainer.java:122)
at eu.geclipse.core.internal.model.QueryContainer.fetchChildren(QueryContainer.java:93)
at eu.geclipse.core.model.impl.AbstractGridContainer$ChildFetcher.run(AbstractGridContainer.java:119)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Comment 4 Ariel Garcia CLA 2008-05-26 06:39:37 EDT
The problem is that 
  this.getStore()
returns null in lines 160, 186 and 208 of BDIIService, so the Glue store is not initialized  at the time the problem happens. So clearly for you Nick ;-)
Comment 5 Nick Tsioutsias CLA 2008-05-26 06:46:35 EDT
I will have a look at it.
Comment 6 Nick Tsioutsias CLA 2008-05-27 03:24:59 EDT
Created attachment 102103 [details]
Patch for eu.geclipse.info
Comment 7 Nick Tsioutsias CLA 2008-05-27 03:25:16 EDT
Created attachment 102104 [details]
Patch for eu.geclipse.info.ui
Comment 8 Harald Gjermundrød CLA 2008-05-27 04:27:31 EDT
Patch applied
Comment 9 Nick Tsioutsias CLA 2008-05-27 04:33:31 EDT
It should be fixed now. Please check it and close it if that is the case
Comment 10 Ariel Garcia CLA 2008-05-27 08:38:17 EDT
*** Bug 234134 has been marked as a duplicate of this bug. ***
Comment 11 Ariel Garcia CLA 2008-05-27 09:06:06 EDT
Works for me now, closing
Comment 12 Ariel Garcia CLA 2009-05-03 10:39:39 EDT
Comment on attachment 102103 [details]
Patch for eu.geclipse.info

Applied by Harald G
Comment 13 Ariel Garcia CLA 2009-05-03 10:39:44 EDT
Comment on attachment 102104 [details]
Patch for eu.geclipse.info.ui

Applied by Harald G