Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330196 - [Dawn] DawnGenModel creation throws FileNotFoundException
Summary: [Dawn] DawnGenModel creation throws FileNotFoundException
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.dawn (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Fluegge CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 06:48 EST by Martin Fluegge CLA
Modified: 2012-09-21 06:52 EDT (History)
0 users

See Also:


Attachments
Patch v1 (1.76 KB, patch)
2010-11-14 07:24 EST, Martin Fluegge CLA
no flags Details | Diff
Patch v2 (1.40 KB, patch)
2010-11-14 08:00 EST, Martin Fluegge CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fluegge CLA 2010-11-14 06:48:27 EST
The creation of the dawn gen model fails with a file not found exception. this happens for the *.genmodel as well as for the *.gmfgen


Caused by:  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1Diagnos ticWrappedException: java.io.FileNotFoundException:  C:\projects\systemize\newsvn\pmw\trunk\com.cmic.pmw.foundati on\model\Foundation.dawngenmodel
pecified)
       at  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDe mandLoadException(ResourceSetImpl.java:315)
       at  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:274)
       at  org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:397)
       at  org.eclipse.emf.cdo.dawn.codegen.actions.GenerateDawnGenMode lAction.getDawnGenModelResource(GenerateDawnGenModelAction.j ava:205)
       at  org.eclipse.emf.cdo.dawn.codegen.actions.GenerateDawnGenMode lAction.access$3(GenerateDawnGenModelAction.java:201)
       at  org.eclipse.emf.cdo.dawn.codegen.actions.GenerateDawnGenMode lAction$1.run(GenerateDawnGenModelAction.java:80)
       at  org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:121)
Caused by: java.io.FileNotFoundException:  C:\projects\systemize\newsvn\pmw\trunk\com.cmic.pmw.foundati on\model\Foundation.dawngenmodel (The system cannot find the file specified)
       at java.io.FileInputStream.open(Native Method)
       at java.io.FileInputStream.<init>(Unknown Source)
       at  org.eclipse.emf.ecore.resource.impl.FileURIHandlerImpl.creat eInputStream(FileURIHandlerImpl.java:105)
       at  org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterIm pl.createInputStream(ExtensibleURIConverterImpl.java:301)
       at  org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1254)
       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)
       ... 5 more
Comment 1 Martin Fluegge CLA 2010-11-14 07:24:33 EST
Created attachment 183091 [details]
Patch v1

It turned out that the handling for not existing resource was not correct. The attached patch fixes the problem.
Comment 2 Martin Fluegge CLA 2010-11-14 08:00:46 EST
Created attachment 183092 [details]
Patch v2

Optimized patch.
Comment 3 Martin Fluegge CLA 2010-11-14 08:01:27 EST
Patch v2 committed to HEAD.
Comment 4 Eike Stepper CLA 2011-06-23 04:27:57 EDT
Moving all open problem reports to 4.0
Comment 5 Eike Stepper CLA 2012-09-21 06:52:41 EDT
Closing.