Bug 454585 - [sirius] Unable to load resource /Scrabble/NewOCLFile.ocl
Summary: [sirius] Unable to load resource /Scrabble/NewOCLFile.ocl
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-12-09 09:54 EST by EPP Error Reports CLA
Modified: 2014-12-29 07:58 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 EPP Error Reports CLA 2014-12-09 09:54:55 EST
The following error was reported via the automated error reporting:


    code:                   0
    plugin:                 org.eclipse.sirius_2.0.0.201410241344
    message:                Unable to load resource /Scrabble/NewOCLFile.ocl
    fingerprint:            67cd9b08
    exception class:        java.lang.NullPointerException
    exception message:      -
    number of children:     0
    
    java.lang.NullPointerException: null
    at org.eclipse.sirius.business.api.resource.LoadEMFResource.run(LoadEMFResource.java:69)
    at org.eclipse.sirius.ui.tools.api.views.modelexplorerview.resourcelistener.DefaultModelingProjectResourceListener.isLoadableModel(DefaultModelingProjectResourceListener.java:183)
    at org.eclipse.sirius.ui.tools.api.views.modelexplorerview.resourcelistener.ResourceDeltaVisitor.visitFileWithOpenedRepresentationsFile(ResourceDeltaVisitor.java:229)
    at org.eclipse.sirius.ui.tools.api.views.modelexplorerview.resourcelistener.ResourceDeltaVisitor.visitFile(ResourceDeltaVisitor.java:183)
    at org.eclipse.sirius.ui.tools.api.views.modelexplorerview.resourcelistener.ResourceDeltaVisitor.visit(ResourceDeltaVisitor.java:88)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
    at org.eclipse.sirius.ui.tools.api.views.modelexplorerview.resourcelistener.DefaultModelingProjectResourceListener.resourceChanged(DefaultModelingProjectResourceListener.java:81)
    at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:295)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:287)
    at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:151)
    at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:376)
    at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1498)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2322)
    at org.eclipse.ui.ide.undo.AbstractWorkspaceOperation.execute(AbstractWorkspaceOperation.java:196)
    at org.eclipse.ocl.examples.xtext.base.ui.wizards.AbstractFileNewWizardPage$1.run(AbstractFileNewWizardPage.java:112)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
   


General Information:

    reported-by:      
    anonymous-id:     d16887d1-03be-4312-af1b-e93f8850fdf1
    eclipse-build-id: 4.5.0.I20141029-2000
    eclipse-product:  org.eclipse.epp.package.modeling.product
    operating system: MacOSX 10.9.5 (x86_64) - cocoa
    jre-version:      1.8.0_05-b13

The following plug-ins were present on the execution stack (*):
    1. org.eclipse.core.resources_3.9.100.v20141009-1601
    2. org.eclipse.core.runtime_3.10.0.v20140724-1132
    3. org.eclipse.jface_3.11.0.v20141013-0842
    4. org.eclipse.ocl.examples.xtext.base.ui_3.4.100.v20141108-1747
    5. org.eclipse.ocl.examples.xtext.base_3.5.0.v20141108-1747
    6. org.eclipse.ocl.examples_3.4.100.v20140713-1723
    7. org.eclipse.ocl_3.5.0.v20140725-2247
    8. org.eclipse.sirius_2.0.0.201410241344
    9. org.eclipse.sirius.ui_2.0.0.201410241344
    10. org.eclipse.ui.ide_3.10.100.v20141024-1629
    11. org.eclipse.ui_3.107.0.v20141010-0853

Please note that:
* Messages, stacktraces, and nested status objects may be shortened.
* Bug fields like status, resolution, and whiteboard are sent
  back to reporters.
* The list of present bundles and their respective versions was
  calculated by package naming heuristics. This may or may not reflect reality.
  
Please visit http://goo.gl/MWFSff for further details. 


Thank you for your assistance.
Your friendly error-reports-inbox.
Comment 1 EPP Error Reports CLA 2014-12-09 09:54:56 EST
I've looked up the (to date) top-3 most similar bug groups and listed the 
closest bug of each group below. This report may or may not be duplicate of
those (low or similar scores for all entries may indicate that this hasn't
been reported yet):

>     1. Bug 452001: [sirius,gmf] HIDDEN – 1    
>     2. Bug 449973: [sirius] The resource tree is locked for modifications. – 0.6    


If this report actually is a duplicate of those, please mark it as such. This
information helps me to improve the recommendations further for the next issue.

Thank you for your assistance.
Your friendly error-reports-inbox.
Comment 2 Ed Willink CLA 2014-12-09 10:23:32 EST
NPE is clearly in Sirius.

Why the file is missing is unclear.

Might be the usual lack of platform level project synchronization.

Might be bad Sirius timing with respect to a dialog.
Comment 3 Florian Barbin CLA 2014-12-19 06:08:36 EST
We reproduced this issue with a JUnit test. This issue seems to happen when adding a new model (loaded with errors) within a modeling project.