Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Lost Elements(I closed Eclipse, opened again and the elements were gone.)
Lost Elements [message #1857076] Mon, 16 January 2023 11:04 Go to next message
Mauricio Negrin is currently offline Mauricio NegrinFriend
Messages: 7
Registered: December 2022
Junior Member
I need help, the diagrams look like if their elements were deleted.

I tried replacing the .notion and the .uml files in the local history but it throws "No local history available for selected resource".

Had this error one time like two month ago but restarted the proyect, now that i advanced i didn't touch any file as i did two month ago, so i wanted to know... I'm lost?
index.php/fa/42845/0/

The model explorer looks like these, it seems that the elements. dependences, etc were deleted.
index.php/fa/42846/0/

[Updated on: Mon, 16 January 2023 11:05]

Report message to a moderator

Re: Lost Elements [message #1857139 is a reply to message #1857076] Thu, 19 January 2023 11:19 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 470
Registered: March 2011
Location: Paris Saclay, France
Senior Member
It seems that the model explorer only contains referenced elements. Can you check the size of the .uml file?
It's rather unlikely that Eclipse somehow lost the file content, but rather that an exception happened during the last save of the model. Which Eclipse / Papyrus version are using?

HTH
Re: Lost Elements [message #1857185 is a reply to message #1857139] Mon, 23 January 2023 11:39 Go to previous messageGo to next message
Mauricio Negrin is currently offline Mauricio NegrinFriend
Messages: 7
Registered: December 2022
Junior Member
The .uml size is 0 bytes, and as you wrote, the exception happened during the last save of the model.

my current Eclipse/Papyrus version is the following

index.php/fa/42859/0/
index.php/fa/42860/0/
Re: Lost Elements [message #1857240 is a reply to message #1857185] Thu, 26 January 2023 12:56 Go to previous messageGo to next message
Vincent Lorenzo is currently offline Vincent LorenzoFriend
Messages: 261
Registered: June 2010
Location: Paris Saclay, France
Senior Member
Hello Mauricio,
we are sorry for this exception. We don't have solution for you. Do you have the error log please ?

--
Vincent
Re: Lost Elements [message #1857255 is a reply to message #1857240] Thu, 26 January 2023 19:16 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 495
Registered: May 2015
Location: Germany
Senior Member
Hi Vincent,
renaming the existing files by i.e. adding ".backup" as additional
suffix before saving the new model and deleting the backup files after the new models have been successfully written would enable to restore the prior state of the model. In my regard this is preferable over loosing everything.
How much programming effort would that imply?
/Carsten
Re: Lost Elements [message #1857318 is a reply to message #1857240] Mon, 30 January 2023 10:29 Go to previous messageGo to next message
Mauricio Negrin is currently offline Mauricio NegrinFriend
Messages: 7
Registered: December 2022
Junior Member
Hi Vicent,
Sure, here's the error log, it seems that it literaly dissapear, don't worry, i'll build it again. Thank you guys for responding.

!SESSION 2023-01-16 07:29:36.198 -----------------------------------------------
eclipse.buildId=4.26.0.20221201-1200
java.version=19.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=es_UY
Framework arguments: -product org.eclipse.epp.package.modeling.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.modeling.product

!ENTRY org.eclipse.papyrus.infra.emf 4 0 2023-01-16 07:29:48.936
!MESSAGE Failed to scan model resource for parent reference.
!STACK 0
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
Re: Lost Elements [message #1857377 is a reply to message #1857255] Thu, 02 February 2023 13:26 Go to previous message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hi,
The solution is an interesting functionality. After discussion with colleagues, the solution is more complex when papyrus is used in a collaborative mode with CDO for example.
Patrick
Previous Topic:how to import xmi into eclipse papyrus
Next Topic:best ways to learn SysML diagram generation?
Goto Forum:
  


Current Time: Thu Sep 19 12:31:01 GMT 2024

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

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

Back to the top