Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314855 - Creation of new models fails with exception
Summary: Creation of new models fails with exception
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Cedric Dumoulin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 08:46 EDT by Ansgar Radermacher CLA
Modified: 2010-05-28 11:33 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ansgar Radermacher CLA 2010-05-28 08:46:20 EDT
Build Identifier: Build id: I20100513-1500

The creation of new models fails with an exception. Note that this error is produced with the nightly builds. It is quite new, since I could create new models a couple of days ago (regression?)


java.lang.NullPointerException
	at org.eclipse.papyrus.resource.AbstractBaseModel.unload(AbstractBaseModel.java:192)
	at org.eclipse.papyrus.resource.ModelSet.unload(ModelSet.java:308)
	at org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor.dispose(CoreMultiDiagramEditor.java:573)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:705)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
	at org.eclipse.papyrus.wizards.CreateModelWizard.performFinish(CreateModelWizard.java:156)
...

As a result, the created .di file is empty.

In the sequel, opening the editor fails:

java.lang.NullPointerException
	at org.eclipse.papyrus.sashwindows.di.util.DiUtils.lookupSashWindowsMngr(DiUtils.java:90)
	at org.eclipse.papyrus.sasheditor.contentprovider.di.DiSashModelMngr.lookupSashWindowMngr(DiSashModelMngr.java:222)
	at org.eclipse.papyrus.sasheditor.contentprovider.di.TransactionalDiSashModelMngr.<init>(TransactionalDiSashModelMngr.java:41)
	at org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor.createPageProvider(CoreMultiDiagramEditor.java:289)
	at org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor.init(CoreMultiDiagramEditor.java:467)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2682)
	at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)


Reproducible: Always

Steps to Reproduce:
1. Select "new Papyrus model", follow the steps
2. ... select "create new model" and an arbitrary diagram
 => provokes two exceptions above
Comment 1 Cedric Dumoulin CLA 2010-05-28 10:44:02 EDT
This has been resolved this morning. Can you update your code and try again ?
Comment 2 Cedric Dumoulin CLA 2010-05-28 11:33:53 EDT
Model creation work again.