Community
Participate
Working Groups
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.
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.
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.
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.