Skip to main content



      Home
Home » Eclipse Projects » Sirius » Sirius change from version 4.1.1 to 5.1.0
Sirius change from version 4.1.1 to 5.1.0 [message #1776301] Wed, 15 November 2017 03:30 Go to next message
Eclipse UserFriend
Hi,

I have a question about migrating from Sirius 4 to Sirius 5.

I made the Sirius change from version 4.1.1 to 5.1.0.

When I want to open a diagram, it's OK.
If you make any changes in odesign (VSM) and then diagram can not be opened and displayed an exception:

Caused by: org.eclipse.sirius.business.api.migration.DescriptionResourceVersionMismatchException: The viewpoint specification model (platform:/plugin/com.ge.eufo.processDesigner.design/description/processDesigner.odesign) can not be loaded because it comes from a more recent Sirius release.
VSM version is: 12.0.0.2017041100
Last Sirius migration version is: 12.0.0.201704030900
	at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.checkResourceErrors(DAnalysisSessionImpl.java:1220)
	at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.open(DAnalysisSessionImpl.java:1186)
	at org.eclipse.sirius.business.api.session.DefaultLocalSessionCreationOperation.execute(DefaultLocalSessionCreationOperation.java:71)
	at com.ge.eufo.ui.sirius.editor.input.GraphicalProcessEditorInputTranformer.createSession(GraphicalProcessEditorInputTranformer.java:290)
	at com.ge.eufo.ui.sirius.editor.input.GraphicalProcessEditorInputTranformer.access$0(GraphicalProcessEditorInputTranformer.java:286)
	at com.ge.eufo.ui.sirius.editor.input.GraphicalProcessEditorInputTranformer$1.run(GraphicalProcessEditorInputTranformer.java:170)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Root exception:
org.eclipse.sirius.business.api.migration.DescriptionResourceVersionMismatchException: The viewpoint specification model (platform:/plugin/com.ge.eufo.processDesigner.design/description/processDesigner.odesign) can not be loaded because it comes from a more recent Sirius release.
VSM version is: 12.0.0.2017041100
Last Sirius migration version is: 12.0.0.201704030900
	at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.checkResourceErrors(DAnalysisSessionImpl.java:1220)
	at org.eclipse.sirius.business.internal.session.danalysis.DAnalysisSessionImpl.open(DAnalysisSessionImpl.java:1186)
	at org.eclipse.sirius.business.api.session.DefaultLocalSessionCreationOperation.execute(DefaultLocalSessionCreationOperation.java:71)
	at com.ge.eufo.ui.sirius.editor.input.GraphicalProcessEditorInputTranformer.createSession(GraphicalProcessEditorInputTranformer.java:290)
	at com.ge.eufo.ui.sirius.editor.input.GraphicalProcessEditorInputTranformer.access$0(GraphicalProcessEditorInputTranformer.java:286)
	at com.ge.eufo.ui.sirius.editor.input.GraphicalProcessEditorInputTranformer$1.run(GraphicalProcessEditorInputTranformer.java:170)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)


What is wrong?

Thanks for every advice.

Martin
Re: Sirius change from version 4.1.1 to 5.1.0 [message #1776309 is a reply to message #1776301] Wed, 15 November 2017 04:08 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

In the exception, the diagram points to a viewpoint in your plugin. Are you sure that it is the version of your VSM that has been migrated to Sirius 5.1.0? Isn't it a version that was already installed in Sirius 4.1.1 and unmigrated so far?

Regards,
Steve
Re: Sirius change from version 4.1.1 to 5.1.0 [message #1776314 is a reply to message #1776309] Wed, 15 November 2017 04:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I think you do not have the same plug-ins installed in the environnement where you do the migration of the VSM and in the environnement where you try to use the VSM. The migration participant with the version "12.0.0.2017041100" is contributed by the plug-in "org.eclipse.sirius.table". Have you it, in the environement where you try ro open the diagram?

Regards,
Laurent
Re: Sirius change from version 4.1.1 to 5.1.0 [message #1776315 is a reply to message #1776309] Wed, 15 November 2017 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

odesing version was created in version 4.1.1 and I have not been migrated.

Odesign contains at the beginning:

<description:Group xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:description="http://www.eclipse.org/sirius/description/1.1.0" xmlns:description_1="http://www.eclipse.org/sirius/diagram/description/1.1.0" xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0" xmlns:style="http://www.eclipse.org/sirius/diagram/description/style/1.1.0" xmlns:tool="http://www.eclipse.org/sirius/description/tool/1.1.0" xmlns:tool_1="http://www.eclipse.org/sirius/diagram/description/tool/1.1.0" xmlns:validation="http://www.eclipse.org/sirius/description/validation/1.1.0" name="process" version="11.1.1.201610211630">


Do I have to migrate odesign?

Thanks.

Martin
Re: Sirius change from version 4.1.1 to 5.1.0 [message #1776322 is a reply to message #1776315] Wed, 15 November 2017 05:45 Go to previous messageGo to next message
Eclipse UserFriend
Yes, the migration between two successive major versions N and M involves the following steps:
- Import the modeler's sources (made with version N) in the workspace of the target Obeo Designer (version M).
- Open the modeler's VSM files (the odesign files) and save them back (you will need to make some change in the file to make it saveable; anything will do). This will automatically migrate the VSM data into the format of version M. Note: once this is done, you should never try to open the migrated VSM with version N (or earlier) of the software. Doing so is unsupported and may lead to unexpected behavior.
- In the MANIFEST.MF file(s) of your modeler, update the version range for the dependencies to Sirius plug-ins so that the minimum version corresponds to the version in Obeo Designer M. This will guarantee your modeler (whose VSM is now incompatible with earlier versions of Sirius) can not be installed in environments which would not be able to use it correctly.
- If your modeler contains Java code which uses the Sirius APIs, make sure to read the release notes for the corresponding Sirius version. They contain important information on changes you may need to perform on your code to continue to work.

Regards,
Steve
Re: Sirius change from version 4.1.1 to 5.1.0 [message #1776401 is a reply to message #1776322] Thu, 16 November 2017 03:13 Go to previous message
Eclipse UserFriend
Hi Martin,

In the stack trace of your first message, the version of the odesign, platform:/plugin/com.ge.eufo.processDesigner.design/description/processDesigner.odesign, is "12.0.0.2017041100". In your last message, the version of the odesign is "11.1.1.201610211630". It seems that it is not the same file because the version is not consistent. The version that you used when you had the message has been migrated with Sirius 5.1.0. As said by Steve, the migration is automatic. So if you made a change in the odesign and saved it, the odesign has been automatically migrated.

As said before, I really think that when you edited the odesign file, you had plug-in "org.eclipse.sirius.table" in your environment and you had not this plugin in the environment where you tried to open the diagram.

Regards,

Laurent
Previous Topic:Model reload in Sirius should be Irrevocable
Next Topic:Widget: Text
Goto Forum:
  


Current Time: Thu Jul 10 05:12:34 EDT 2025

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

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

Back to the top