Home » Modeling » GMF (Graphical Modeling Framework) » Error during Code generation: "A resource exists with a different case"
Error during Code generation: "A resource exists with a different case" [message #49208] |
Sat, 16 September 2006 07:39  |
Eclipse User |
|
|
|
Originally posted by: dont.spam.net
Hi,
I've tried to reproduce the Editor described in this Article:
http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html
I tried to create all the models by myself and I thought I was not too
bad (all models valid etc...). But then I started the Code Generation
and got this funny error:
#############################
Error
Sat Sep 16 13:30:13 CEST 2006
A resource exists with a different case:
/com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/Statemachine2GraphicalNodeEditPolicy.java.
eclipse.buildId=M20060629-1905
java.version=1.5.0_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86
#############################
There is no stacktrace available and I have absolutely no Idea what's wrong.
Cheers!
Christian
|
|
|
Re: Error during Code generation: "A resource exists with a different case" [message #49237 is a reply to message #49208] |
Sat, 16 September 2006 08:23   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------020802050403050604020903
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Christian,
Perhaps you changed the *case *of some property? Try deleting *this
*file and regenerating
A resource exists with a different *case*:
/com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/*Statemachine2GraphicalNodeEditPolicy*.java.
Christian Barth wrote:
> Hi,
>
> I've tried to reproduce the Editor described in this Article:
> http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html
>
>
> I tried to create all the models by myself and I thought I was not too
> bad (all models valid etc...). But then I started the Code Generation
> and got this funny error:
>
> #############################
> Error
> Sat Sep 16 13:30:13 CEST 2006
> A resource exists with a different case:
> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/Statemachine2GraphicalNodeEditPolicy.java.
>
>
> eclipse.buildId=M20060629-1905
> java.version=1.5.0_08
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Command-line arguments: -os win32 -ws win32 -arch x86
> #############################
>
> There is no stacktrace available and I have absolutely no Idea what's
> wrong.
>
> Cheers!
> Christian
--------------020802050403050604020903
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian,<br>
<br>
Perhaps you changed the <b>case </b>of some property? Try deleting <b>this
</b>file and regenerating<br>
<blockquote>A resource exists with a different <b>case</b>:
/com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/ <b>Statemachine2GraphicalNodeEditPolicy</b>.java.
<br>
</blockquote>
<br>
<br>
Christian Barth wrote:
<blockquote cite="mideegnok$khj$1@utils.eclipse.org" type="cite">Hi,
<br>
<br>
I've tried to reproduce the Editor described in this Article:
<br>
<a class="moz-txt-link-freetext" href=" http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html"> http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html</a>
<br>
<br>
I tried to create all the models by myself and I thought I was not too
bad (all models valid etc...). But then I started the Code Generation
and got this funny error:
<br>
<br>
#############################
<br>
Error
<br>
Sat Sep 16 13:30:13 CEST 2006
<br>
A resource exists with a different case:
/com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/Statemachine2GraphicalNodeEditPolicy.java.
<br>
<br>
eclipse.buildId=M20060629-1905
<br>
java.version=1.5.0_08
<br>
java.vendor=Sun Microsystems Inc.
<br>
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
<br>
Command-line arguments:
|
|
| |
Re: Error during Code generation: "A resource exists with a different case" [message #49409 is a reply to message #49349] |
Sun, 17 September 2006 08:35   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Christian,
You also deleted them from the file system, not just from the
workspace? I'm not familiar enough with GMF to know what might give
rise to a problem like this...
Christian Barth wrote:
> Hi Ed,
>
> I have deleted the file like you suggested. The Code Generation
> Process stopps still with the same error message. Deleting the whole
> generated Code doesn't help at all.
>
> I guess I messed up the naming somewhere in the model.
> All my model files are named statemachine2.xxx and the NS Prefix in
> the ecore-model is also named statemachine2.
>
> When I look at the package the error message points to, I'll find
> there several different writings. For example:
> StateMachineCanonicalEditPolicy.java
> StateMachine2CanonicalEditPolicy.java
> StateMachine3CanonicalEditPolicy.java
> Some names are also found with a lower case "m" like
> State*m*achine2GraphicalNodeEditPolicy.java
> State*m*achine2ExtNodeLabelhosteLayoutEditPolicy.java
>
> Maybe it's worth to mention that the files with a lower case "m" are
> never with a 3 or without a number.
>
> To which part of the models does this policy stuff belong?
>
>
>
> Ed Merks schrieb:
>> Christian,
>>
>> Perhaps you changed the *case *of some property? Try deleting *this
>> *file and regenerating
>>
>> A resource exists with a different *case*:
>>
>> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/*Statemachine2GraphicalNodeEditPolicy*.java.
>>
>>
>>
>>
>>
>> Christian Barth wrote:
>>> Hi,
>>>
>>> I've tried to reproduce the Editor described in this Article:
>>> http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html
>>>
>>>
>>> I tried to create all the models by myself and I thought I was not
>>> too bad (all models valid etc...). But then I started the Code
>>> Generation and got this funny error:
>>>
>>> #############################
>>> Error
>>> Sat Sep 16 13:30:13 CEST 2006
>>> A resource exists with a different case:
>>> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/Statemachine2GraphicalNodeEditPolicy.java.
>>>
>>>
>>> eclipse.buildId=M20060629-1905
>>> java.version=1.5.0_08
>>> java.vendor=Sun Microsystems Inc.
>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>> Command-line arguments: -os win32 -ws win32 -arch x86
>>> #############################
>>>
>>> There is no stacktrace available and I have absolutely no Idea
>>> what's wrong.
>>>
>>> Cheers!
>>> Christian
>>
|
|
|
Re: Error during Code generation: "A resource exists with a different case" [message #49468 is a reply to message #49349] |
Sun, 17 September 2006 11:07   |
Eclipse User |
|
|
|
Hi,
You may fix it by setting the editpart/edit policies class names manually in
the gen-model editor (see attached screenshot).
However, after examining the code that produces default values I can not
explain why there may be default values with different cases. If possible,
please post your models (mapping + graph + tool) here for further
investigations.
Regards,
Michael
"Christian Barth" <dont@spam.net> wrote in message
news:eej4r8$u3q$1@utils.eclipse.org...
> Hi Ed,
>
> I have deleted the file like you suggested. The Code Generation Process
> stopps still with the same error message. Deleting the whole generated
> Code doesn't help at all.
>
> I guess I messed up the naming somewhere in the model.
> All my model files are named statemachine2.xxx and the NS Prefix in the
> ecore-model is also named statemachine2.
>
> When I look at the package the error message points to, I'll find there
> several different writings. For example:
> StateMachineCanonicalEditPolicy.java
> StateMachine2CanonicalEditPolicy.java
> StateMachine3CanonicalEditPolicy.java
> Some names are also found with a lower case "m" like
> State*m*achine2GraphicalNodeEditPolicy.java
> State*m*achine2ExtNodeLabelhosteLayoutEditPolicy.java
>
> Maybe it's worth to mention that the files with a lower case "m" are
> never with a 3 or without a number.
>
> To which part of the models does this policy stuff belong?
>
>
>
> Ed Merks schrieb:
>> Christian,
>>
>> Perhaps you changed the *case *of some property? Try deleting *this
>> *file and regenerating
>>
>> A resource exists with a different *case*:
>>
>> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/*Statemachine2GraphicalNodeEditPolicy*.java.
>>
>>
>>
>>
>> Christian Barth wrote:
>>> Hi,
>>>
>>> I've tried to reproduce the Editor described in this Article:
>>> http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html
>>>
>>>
>>> I tried to create all the models by myself and I thought I was not too
>>> bad (all models valid etc...). But then I started the Code Generation
>>> and got this funny error:
>>>
>>> #############################
>>> Error
>>> Sat Sep 16 13:30:13 CEST 2006
>>> A resource exists with a different case:
>>> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/Statemachine2GraphicalNodeEditPolicy.java.
>>>
>>>
>>> eclipse.buildId=M20060629-1905
>>> java.version=1.5.0_08
>>> java.vendor=Sun Microsystems Inc.
>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>> Command-line arguments: -os win32 -ws win32 -arch x86
>>> #############################
>>>
>>> There is no stacktrace available and I have absolutely no Idea what's
>>> wrong.
>>>
>>> Cheers!
>>> Christian
>>
|
|
|
Re: Error during Code generation: "A resource exists with a different case" [message #50736 is a reply to message #49468] |
Tue, 19 September 2006 06:52  |
Eclipse User |
|
|
|
Originally posted by: dont.spam.net
This is a multi-part message in MIME format.
--------------040609050801040001030601
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I've found the problem. If you look at my model, you will see that I
have defined:
1) a *namespace* called statemachine2
2) a *element* called StateMachine
It seems that the Code Generator produces some similar named files which
leads to this crash.
I've renamed the element from StateMachine to Machine. Now I can
generate the code without an error (I've found a few new problems, but
therefore I'll make a different posting :D ).
Regards,
Christian
Michael Golubev schrieb:
> Hi,
>
> You may fix it by setting the editpart/edit policies class names manually in
> the gen-model editor (see attached screenshot).
>
> However, after examining the code that produces default values I can not
> explain why there may be default values with different cases. If possible,
> please post your models (mapping + graph + tool) here for further
> investigations.
>
> Regards,
> Michael
>
> "Christian Barth" <dont@spam.net> wrote in message
> news:eej4r8$u3q$1@utils.eclipse.org...
>> Hi Ed,
>>
>> I have deleted the file like you suggested. The Code Generation Process
>> stopps still with the same error message. Deleting the whole generated
>> Code doesn't help at all.
>>
>> I guess I messed up the naming somewhere in the model.
>> All my model files are named statemachine2.xxx and the NS Prefix in the
>> ecore-model is also named statemachine2.
>>
>> When I look at the package the error message points to, I'll find there
>> several different writings. For example:
>> StateMachineCanonicalEditPolicy.java
>> StateMachine2CanonicalEditPolicy.java
>> StateMachine3CanonicalEditPolicy.java
>> Some names are also found with a lower case "m" like
>> State*m*achine2GraphicalNodeEditPolicy.java
>> State*m*achine2ExtNodeLabelhosteLayoutEditPolicy.java
>>
>> Maybe it's worth to mention that the files with a lower case "m" are
>> never with a 3 or without a number.
>>
>> To which part of the models does this policy stuff belong?
>>
>>
>>
>> Ed Merks schrieb:
>>> Christian,
>>>
>>> Perhaps you changed the *case *of some property? Try deleting *this
>>> *file and regenerating
>>>
>>> A resource exists with a different *case*:
>>>
>>> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/*Statemachine2GraphicalNodeEditPolicy*.java.
>>>
>>>
>>>
>>>
>>> Christian Barth wrote:
>>>> Hi,
>>>>
>>>> I've tried to reproduce the Editor described in this Article:
>>>> http://www.eclipse.org/articles/Article-FromFrontendToCode-M DSDInPractice/article.html
>>>>
>>>>
>>>> I tried to create all the models by myself and I thought I was not too
>>>> bad (all models valid etc...). But then I started the Code Generation
>>>> and got this funny error:
>>>>
>>>> #############################
>>>> Error
>>>> Sat Sep 16 13:30:13 CEST 2006
>>>> A resource exists with a different case:
>>>> /com.xxx.statemachine.diagram/src/statemachine2/diagram/edit /policies/Statemachine2GraphicalNodeEditPolicy.java.
>>>>
>>>>
>>>> eclipse.buildId=M20060629-1905
>>>> java.version=1.5.0_08
>>>> java.vendor=Sun Microsystems Inc.
>>>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>>>> Command-line arguments: -os win32 -ws win32 -arch x86
>>>> #############################
>>>>
>>>> There is no stacktrace available and I have absolutely no Idea what's
>>>> wrong.
>>>>
>>>> Cheers!
>>>> Christian
>
>
--------------040609050801040001030601
Content-Type: text/xml;
name="statemachine2.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="statemachine2.ecore"
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="statemachine2"
nsURI="http://openarchitectureware.org/statemachine2" nsPrefix="statemachine2">
<eClassifiers xsi:type="ecore:EClass" name="Named" abstract="true">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Machine" eSuperTypes="#//CompositeState #//Named"/>
<eClassifiers xsi:type="ecore:EClass" name="CompositeState" eSuperTypes="#//State">
<eStructuralFeatures xsi:type="ecore:EReference" name="states" lowerBound="1"
upperBound="-1" eType="#//AbstractState" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="transitions" upperBound="-1"
eType="#//Transition" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractState" abstract="true">
<eStructuralFeatures xsi:type="ecore:EReference" name="inTransitions" upperBound="-1"
eType="#//Transition" eOpposite="#//Transition/to"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="outTransitions" upperBound="-1"
eType="#//Transition" eOpposite="#//Transition/from"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="actions" upperBound="-1"
eType="#//Action" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="State" eSuperTypes="#//AbstractState #//Named"/>
<eClassifiers xsi:type="ecore:EClass" name="StartState" eSuperTypes="#//AbstractState"/>
<eClassifiers xsi:type="ecore:EClass" name="StopState" eSuperTypes="#//AbstractState #//Named"/>
<eClassifiers xsi:type="ecore:EClass" name="Transition" eSuperTypes="#//Named">
<eStructuralFeatures xsi:type="ecore:EReference" name="from" lowerBound="1" eType="#//AbstractState"
eOpposite="#//AbstractState/outTransitions"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="to" lowerBound="1" eType="#//AbstractState"
eOpposite="#//AbstractState/inTransitions"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="event" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="guard" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Action" eSuperTypes="#//Named">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" lowerBound="1" eType="#//ActionKind"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ActionKind">
<eLiterals name="ENTRY" value="1"/>
<eLiterals name="EXIT" value="2"/>
</eClassifiers>
</ecore:EPackage>
--------------040609050801040001030601--
|
|
|
Goto Forum:
Current Time: Wed May 07 15:17:29 EDT 2025
Powered by FUDForum. Page generated in 0.07569 seconds
|