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

Bug 330196

Summary: [Dawn] DawnGenModel creation throws FileNotFoundException
Product: [Modeling] EMF Reporter: Martin Fluegge <martin.fluegge>
Component: cdo.dawnAssignee: Martin Fluegge <martin.fluegge>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch v1
none
Patch v2 none

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.