Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Model Corrupted(When I reopen a Papyrus model, I got an error message!)
Model Corrupted [message #636734] Tue, 02 November 2010 15:29 Go to next message
Mohamed Mussa is currently offline Mohamed MussaFriend
Messages: 43
Registered: August 2010
Location: Canada
Member
model corrupted

Hi,
Several times when I open a Papyrus project and try to view the model I get nothing, and receive the following message:

"Could not open the editor: errors in model"

I am using Eclipse built: 20100917-0705, and Papyrus 0.7.0.v201007251735.

Thanks in advance.

details:
org.eclipse.papyrus.resource.ModelMultiException: Problems encountered while loading one of the models.
----- exceptions : ----------
org.eclipse.papyrus.resource.uml.UmlModel : Path must include project and resource name: /UML
-----------------------------


at org.eclipse.papyrus.resource.ModelSet.loadModels(ModelSet.ja va:273)

at org.eclipse.papyrus.core.editor.CoreMultiDiagramEditor.init( CoreMultiDiagramEditor.java:501)

at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798)

at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:647)

at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:465)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)

at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 3)

at org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)

at org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)

at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)

at org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)

at org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1254)

at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1207)

at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 06)

at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)

at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )

at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)

at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )

at org.eclipse.ui.internal.EditorSashContainer.addEditor(Editor SashContainer.java:63)

at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:225)

at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:213)

at org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:778)

at org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:677)

at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:638)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2860)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2768)

at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2760)

at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2711)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2707)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2691)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.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.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:365)

at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInE ditor(EditorUtility.java:168)

at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:22 9)

at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:20 8)

at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchR un(SelectionDispatchAction.java:274)

at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(Selec tionDispatchAction.java:250)

at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(Open AndExpand.java:49)

at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.jav a:221)

at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(Commo nNavigatorManager.java:185)

at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener. open(OpenAndLinkWithEditorHelper.java:48)

at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:845)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)

at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)

at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)

at org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:843)

at org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1131)

at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewe r.java:462)

at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1235)

at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:264)

at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:258)

at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:298)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:4066)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3657)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2640)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:24 38)

at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)

at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:664)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)

at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:115)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 619)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)

at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /UML

at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)

at org.eclipse.core.internal.resources.Workspace.newResource(Wo rkspace.java:1801)

at org.eclipse.core.internal.resources.Container.getFile(Contai ner.java:207)

at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl$WorkbenchHelper.createPlatformResourceInputStream(Pla tformResourceURIHandlerImpl.java:201)

at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandl erImpl.createInputStream(PlatformResourceURIHandlerImpl.java :452)

at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm pl.createInputStream(ExtensibleURIConverterImpl.java:301)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2534)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2422)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1299)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1468)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XML Handler.java:1019)

at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMI Handler.java:87)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:1001)

at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHa ndler.java:712)

at org.eclipse.emf.ecore.xmi.impl.XMIHandler.startElement(XMIHa ndler.java:169)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .startElement(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocume ntParser.emptyElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanStartElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl$FragmentContentDriver.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown Source)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSA XParser.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl. java:181)

at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLRes ourceImpl.java:180)

at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494)

at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282)

at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:255)

at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:270)

at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)

at org.eclipse.papyrus.resource.AbstractBaseModel.loadModel(Abs tractBaseModel.java:158)

at org.eclipse.papyrus.resource.ModelSet.loadModels(ModelSet.ja va:268)

... 78 more

Re: Model Corrupted [message #636892 is a reply to message #636734] Wed, 03 November 2010 09:14 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 142
Registered: July 2009
Senior Member
The error log seems very peculiar,
What is your use case, have you rename a file, move?

because it seems that the path is becomed unknown

Patrick
Re: Model Corrupted [message #636980 is a reply to message #636892] Wed, 03 November 2010 16:14 Go to previous messageGo to next message
Mohamed Mussa is currently offline Mohamed MussaFriend
Messages: 43
Registered: August 2010
Location: Canada
Member
Hi,

Nothing of that.

I have just draw three diagrams and closed the project, after awhile, I reopened it.

Re: Model Corrupted [message #637101 is a reply to message #636980] Thu, 04 November 2010 08:39 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 142
Registered: July 2009
Senior Member
Have you created a directory called UML?
Patrick
Member of the Papyrus Team
Re: Model Corrupted [message #637453 is a reply to message #637101] Fri, 05 November 2010 14:57 Go to previous message
Mohamed Mussa is currently offline Mohamed MussaFriend
Messages: 43
Registered: August 2010
Location: Canada
Member
No, I have no sub-directories in my project.
Previous Topic:additional properties of UML elements
Next Topic:Modify palette at runtime
Goto Forum:
  


Current Time: Sun Nov 23 09:56:53 GMT 2014

Powered by FUDForum. Page generated in 0.01894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software