Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358982 - Exception on closed projects
Summary: Exception on closed projects
Status: CLOSED FIXED
Alias: None
Product: Tigerstripe
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 359853 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-26 18:58 EDT by Navid Mehregani CLA
Modified: 2011-12-13 10:41 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Navid Mehregani CLA 2011-09-26 18:58:56 EDT
Build Identifier: 

This exception has been reported by one of our user right after starting a workspace with a closed project.  I believe the code doesn't check to see if the project is open before accessing it.

org.eclipse.core.internal.resources.ResourceException: Resource '/AbstractParentPattern' is not open.
at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:137)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:53)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:110)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
at org.eclipse.tigerstripe.espace.resources.monitor.ResourcesMonitor$1.run(ResourcesMonitor.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
 

Reproducible: Always
Comment 1 Navid Mehregani CLA 2011-09-26 19:16:19 EDT
Another exception as a result of closed projects:

org.eclipse.tigerstripe.workbench.TigerstripeException: Cannot find tigerstripe project descriptor (C:\Data\NewTigerstripe\MibImport\tigerstripe.xml)
                at org.eclipse.tigerstripe.workbench.internal.core.project.AbstractTigerstripeProject.reload(AbstractTigerstripeProject.java:492)
                at org.eclipse.tigerstripe.workbench.internal.api.impl.TigerstripeProjectHandle.getTSProject(TigerstripeProjectHandle.java:143)
                at org.eclipse.tigerstripe.workbench.internal.api.impl.TigerstripeProjectHandle.getArtifactManagerSession(TigerstripeProjectHandle.java:111)
                at org.eclipse.tigerstripe.workbench.internal.BasePlugin$1.runInWorkspace(BasePlugin.java:81)
                at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 Anton Salnik CLA 2011-09-27 06:38:12 EDT
Can't reproduce the second issue. Please provide context and your actions.
Comment 3 Navid Mehregani CLA 2011-09-27 12:00:26 EDT
(In reply to comment #2)
> Can't reproduce the second issue. Please provide context and your actions.

Unfortunately I'm not able to reproduce it consistently.
Comment 4 Anton Salnik CLA 2011-09-28 02:33:20 EDT
Check for open project added to ResourcesMonitor.
Comment 5 Navid Mehregani CLA 2011-10-04 11:26:59 EDT
*** Bug 359853 has been marked as a duplicate of this bug. ***
Comment 6 Chris Hartley CLA 2011-10-06 20:36:01 EDT
To reproduce this :
* close one or more projects in Tigerstripe workspace
* exit TS
* run TS and the message appears on startup
Comment 7 Navid Mehregani CLA 2011-10-07 09:56:06 EDT
(In reply to comment #6)
> To reproduce this :
> * close one or more projects in Tigerstripe workspace
> * exit TS
> * run TS and the message appears on startup

Chris, that will reproduce the first exception, which has already been fixed.  It won't reproduce the second exception.
Comment 8 Navid Mehregani CLA 2011-10-10 02:05:51 EDT
Marking as fixed and verified.  Thanks Anton!
Comment 9 Domenic Alessi CLA 2011-12-13 09:39:34 EST
Hi,

I would like to merge this fix into my Eclipse. In which release was this fixed?    
Thanks,
Dom
Comment 10 Navid Mehregani CLA 2011-12-13 10:09:31 EST
Hi Domenic,

This defect is specific to the Tigerstripe project.  I suspect you're having a different issue unrelated to this defect?!
Comment 11 Domenic Alessi CLA 2011-12-13 10:34:06 EST
Hi Navid,

I see the following in 3.7.0

org.eclipse.core.internal.resources.ResourceException: Resource '/ggsnu' is not open.
        at org.eclipse.core.internal.resources.Project.checkAccessible(Project.java:150)
        at org.eclipse.core.internal.resources.Project.hasNature(Project.java:584)
        at ch.hsr.ifs.cute.gcov.ProjectDecorator.decorate(ProjectDecorator.java:50)
        at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:269)
        at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:81)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:365)
        at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:347)
        at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:370)
        at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:330)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


The errors I see are on closed projects.  If I open the projects, everything is fine.  The minute I start Eclipse with closed projects, I see the issue.  This is just pure Eclipse in this case.
Comment 12 Navid Mehregani CLA 2011-12-13 10:41:47 EST
It looks like your error is coming from plugin ch.hsr.ifs.cute.gcov.  You should open a defect against the project of this plugin.