Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 529973

Summary: [Aird Editor] FileNotFoundException by trying to contribute a sessionEditorPageProvider
Product: [Modeling] Sirius Reporter: Guillaume Coutable <guillaume.coutable>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED FIXED QA Contact: Florian Barbin <florian.barbin>
Severity: normal    
Priority: P3 CC: florian.barbin, julien.dupont, laurent.fasani, maxime.porhel, pierre-charles.david
Version: 5.1.0Keywords: triaged
Target Milestone: 6.0.0   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/115600
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e3799bf2e8b1fa59dbc62126e9dfa3d6fcf6f335
Whiteboard:
Bug Depends on:    
Bug Blocks: 530120    

Description Guillaume Coutable CLA 2018-01-18 04:50:25 EST
I got the following stack trace by trying to contribute a sessionEditorPageProvider:
java.io.FileNotFoundException: JAR entry schema/sessionEditorPageProvider.exsd not found in C:\_DEV\Designer\resources\Builds\ObeoDesigner-Community\plugins\org.eclipse.sirius.ui.editor.source_5.1.0.201710261549.jar
	at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
	at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source)
	at org.eclipse.pde.internal.core.util.SchemaUtil.parseURL(SchemaUtil.java:60)
	at org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.handlePointSelection(PointSelectionPage.java:525)
	at org.eclipse.pde.internal.ui.wizards.extension.PointSelectionPage.selectionChanged(PointSelectionPage.java:490)
	at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:155)
...
Comment 1 Guillaume Coutable CLA 2018-01-18 04:54:25 EST
Step to reproduce:
1) Create a plugin project
2) Add the org.eclipse.sirius.ui.editor dependency
3) Open the New Extension wizard
4) Select the org.eclipse.sirius.ui.editor.sessionEditorPageProvider extension
4) The error should appear in the error log
Comment 2 Eclipse Genie CLA 2018-01-18 05:01:19 EST
New Gerrit change created: https://git.eclipse.org/r/115600
Comment 4 Pierre-Charles David CLA 2018-01-23 05:54:12 EST
Fixed by e3799bf2e8b1fa59dbc62126e9dfa3d6fcf6f335.
Comment 5 Pierre-Charles David CLA 2018-01-23 05:55:11 EST
(In reply to Guillaume Coutable from comment #1)
> Step to reproduce:
> 1) Create a plugin project
> 2) Add the org.eclipse.sirius.ui.editor dependency
> 3) Open the New Extension wizard
> 4) Select the org.eclipse.sirius.ui.editor.sessionEditorPageProvider
> extension
> 4) The error should appear in the error log

Note that this must be done from an actual built product, not from an Eclipse runtime launched from the dev env (where the problem is not visible).
Comment 6 Laurent Fasani CLA 2018-01-31 11:13:13 EST
Step to validate:
1) Create a plugin project
2) Add the org.eclipse.sirius.ui.editor dependency
3) Open the New Extension wizard
4) Select the org.eclipse.sirius.ui.editor.sessionEditorPageProvider extension
-> There should be no error in the error log
Comment 7 Laurent Fasani CLA 2018-01-31 11:13:33 EST
validated with Sirius5.1.1rc5
Comment 8 Laurent Fasani CLA 2018-01-31 11:16:05 EST
Erratum: the ticket is not validated yet
Comment 9 Laurent Redor CLA 2018-06-27 11:55:46 EDT
Available in Sirius 6.0.0, see https://wiki.eclipse.org/Sirius/6.0.0 for details