problem saving a diagram after assigning a stereotype [message #1783280] |
Sat, 10 March 2018 11:45  |
Eclipse User |
|
|
|
Very often after assignment of a stereotype to a component I am not able to save the component diagram.
It happens in a first example project that I am preparing.
I can repeat the problem with any new Papyrus project:
I created a very simple profile.
Restart Eclipse - just to be sure the profile is known.
I create a new Papyrus project, add a component diagram put a component on there. Still able to save the diagram.
Now when I try to assign a stereotype to that component, but miss it, because I click only one time instead of double-click, and try to save, I get the message: "Save Failed
Path must include project and resource name: /<the projects name>/"
I googled, saw that this happened before, but did not find any numbered issue, solution, or workaround.
My workaround was, to save the diagram as a picture, restart Eclipse and repeat the changes. Attached you may find the profile and a simple application together with a screenshot of the failure message.
I am using Oxygen 2, updated today, on Debian Jessie (LMDE 2) and Java-9.
Any other idea to cope with this problem?
[Updated on: Sun, 11 March 2018 17:08] by Moderator
|
|
|
|
|
|
Re: problem saving a diagram after assigning a stereotype [message #1849132 is a reply to message #1848675] |
Wed, 05 January 2022 03:28  |
Eclipse User |
|
|
|
I can reproduce getting an exception during saving, even if I get a different error in the log and my testmodel is apparently saved (with Papyrus 6.0 / Eclipse 2021-12). It only happens, If I say "yes" when a dialog pops up that requires write request to additional resources. As the command only makes sense for profiles, it shouldn't appear in the context menu of a normal class diagram.
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource '/tests/bugs/BugSave' already exists.
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$PlatformResourceOutputStream.flush(PlatformResourceURIHandlerImpl.java:143)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$PlatformResourceOutputStream.close(PlatformResourceURIHandlerImpl.java:91)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper$
...
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/tests/bugs/BugSave' already exists.
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:309)
at org.eclipse.core.internal.resources.Resource.checkDoesNotExist(Resource.java:296)
at org.eclipse.core.internal.resources.File.create(File.java:107)
at org.eclipse.core.internal.resources.File.create(File.java:179)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$PlatformResourceOutputStream.flush(PlatformResourceURIHandlerImpl.java:130)
... 78 more
|
|
|
Powered by
FUDForum. Page generated in 0.09487 seconds