Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Multiple Generation errors with 1.0RC
[EEF] Multiple Generation errors with 1.0RC [message #675859] Wed, 01 June 2011 18:05 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 235
Registered: July 2009
Senior Member
Hi,

We are trying to bring our 0.9 project to 1.0RC3 (latest as of today)
and have been getting multiple errors during the generation process
(which we didn't have before) and tens of thousands of compile errors.

I essentially stripped the project all the way down to almost only have
the initial model and while the issues are much less, there are still a
number of issues.

1. The EEFGEN was generated in the .edit projects and I kept getting:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
'/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen' does not exist.
at
org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:222)
at
org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:452)
at
org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:350)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1262)
at
org.eclipse.emf.eef.codegen.ui.generators.actions.GenerateEEFAction.initEEFGenModel(GenerateEEFAction.java:63)
at
org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction.run(AbstractGenerateEEFAction.java:90)
....
Caused by: org.eclipse.core.internal.resources.ResourceException:
Resource '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen'
does not exist.
at
org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
at
org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)

As I said the eefgen is in the .edit project under a model folder. In
order to get around this, I had to move the eefgen and component model
to the base model folder.

2. Bunch of logged errors:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Undefined "Let"
expression at line 51 in Module EEFLauncher for block let eObjects :
Sequence(EObject) =
peContext.model.ecorePackage.eAllContents()->select(temp1 : OclAny |
temp1.oclIsKindOf(ecore::EPackage))->including(peContext.model.ecorePackage).
Last recorded value of self was
org.eclipse.emf.eef.EEFGen.impl.GenEditionContextImpl@9e552d0
(basePackage: com.castortech, descriptorsContributorID: null,
descriptorsGenericPropertiesViews: true, gmfPropertiesViews: false,
generateJunitTestCases: false, leafComponentsSuperClass: null,
propertiesEditingProvidersSuperClass: null).
at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:51)
at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:36)

org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
for expression s.first(1).isAlpha().not() at line 398 in Module common
for query startsWithADigit(String). Last recorded value of self was null.
at common.toJavaIdentifierDelegate(String)(common.mtl:0)
at common.toJavaIdentifierDelegate(String)(common.mtl:416)
at common.toJavaIdentifierDelegate(String)(common.mtl:415)
at common.toJavaIdentifier(String)(common.mtl:0)
at common.toJavaIdentifier(String)(common.mtl:0)

org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
for expression s.first(1).isAlpha().not() at line 398 in Module common
for query startsWithADigit(String). Last recorded value of self was null.
at common.toJavaIdentifierDelegate(String)(common.mtl:0)
at common.toJavaIdentifierDelegate(String)(common.mtl:416)
at common.toJavaIdentifierDelegate(String)(common.mtl:415)
at common.toJavaIdentifier(String)(common.mtl:0)


org.eclipse.acceleo.engine.AcceleoEvaluationException: Couldn't evaluate
URL of the file at line 19 in Module plugin_xml for block
file(editionContext.model.ecorePackage.name.concat('_properties.plugin.xml'),
false). Last recorded value of self was
org.eclipse.emf.eef.components.impl.PropertiesEditionContextImpl@6baccc1e (eProxyURI:
platform:/resource/com.castortech.iris.models.ecore.smm.1.0/model/SMM.components#_dT8rgYxjEeCDZt1FA67FAQ).
at plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:19)
at plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:18)
at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:0)
at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:44)


3. Finally an error where the code seems to be using a toString() of
some sort to generate a file name:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Could not create
directory
C:\eclipse\IrisWorkspace\com.castortech.iris.models.ecore.smm.1.0.edit\src-gen\parts\Org\eclipse\emf\ecore\impl\DynamicEObjectImpl@2ce64498(eClass:Org\eclipse\emf\ecore\impl.
at
org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:113)
at
org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:97)
at
org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationContext.openNested(AcceleoEvaluationContext.java:591)
at
org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.createFileWriter(AcceleoEvaluationVisitor.java:268)


4. About 50 occurrences of this error:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
for expression s.first(1).isAlpha().not() at line 398 in Module common
for query startsWithADigit(String). Last recorded value of self was null.
at common.toJavaIdentifierDelegate(String)(common.mtl:0)
at common.toJavaIdentifierDelegate(String)(common.mtl:416)
at common.toJavaIdentifierDelegate(String)(common.mtl:415)
at common.toJavaIdentifier(String)(common.mtl:0)

5. About 50 occurrences of this error as well:
org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
for expression p.eInverse(genmodel::GenPackage)->first() at line 78 in
Module common for query associatedGenPackage(EPackage). Last recorded
value of self was org.eclipse.emf.ecore.impl.EcorePackageImpl@1b81464b
(name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix:
ecore).
at common.completePackage(EPackage)(common.mtl:0)
at common.completePackage(EPackage)(common.mtl:0)
at common.completePackage(EPackage)(common.mtl:446)
at common.completePackage(EPackage)(common.mtl:445)
at common.qualifiedMetamodelFactory(EPackage)(common.mtl:0)
at common.qualifiedMetamodelFactory(EPackage)(common.mtl:505)


6. Then the organize import completes with a dialog complaining about
some "Problem with Organize Imports".

see: http://dl.dropbox.com/u/24514519/OrgImports2.PNG

7. Missing imports for EcoreFactory
In a large number of the generated component files in the
updateSemanticModel method, there is a line like this:
EObject eObject = EcoreFactory.eINSTANCE.createEObject();
and the EcoreFactory was not imported. The number where those errors
were seems to match the list of errors reported by Organize Imports.

8. Another error:
java.lang.UnsupportedOperationException
at
org.eclipse.ocl.ecore.impl.OCLExpressionImpl.accept(OCLExpressionImpl.java:164)
at
org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
at
org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:156)
at
org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1672)
at
org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:985)
at
org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:847)
at
org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1622)

After fixing the import issues, at this point I can successfully compile
the code, but I have not tried it yet, as I had to get rid of all of our
associated model and code changes in order to get to this point.

I'm quite concerned to see issues like this popping up at an RC stage.
We never had so many issues even when 0.9 was in flux. Does this look
like an environment issue or ????

Thanks for any help clarifying the situation here.

Cheers,
Alain
Re: [EEF] Multiple Generation errors with 1.0RC [message #676716 is a reply to message #675859] Mon, 06 June 2011 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

Hi Alain,

We had some build server issues for RC3 like almost every project, it
has impacted EEF as well.

looking at the errors you provided, can you check that you are using the
latest version of acceleo ( 3.1.0 ) and OCL ( 3.1.0 ) ?

I tried today with eclipse modeling package RC3 and the latest eef
nightly, and cannot reproduce your generation errors.

BTW, it will be a RC4 for EEF.

Le 01/06/2011 20:05, Alain Picard a écrit :
> Hi,
>
> We are trying to bring our 0.9 project to 1.0RC3 (latest as of today)
> and have been getting multiple errors during the generation process
> (which we didn't have before) and tens of thousands of compile errors.
>
> I essentially stripped the project all the way down to almost only have
> the initial model and while the issues are much less, there are still a
> number of issues.
>
> 1. The EEFGEN was generated in the .edit projects and I kept getting:
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
> '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen' does not
> exist.
> at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:222)
>
> at
> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:452)
>
> at
> org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:350)
>
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1262)
>
> at
> org.eclipse.emf.eef.codegen.ui.generators.actions.GenerateEEFAction.initEEFGenModel(GenerateEEFAction.java:63)
>
> at
> org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction.run(AbstractGenerateEEFAction.java:90)
>
> ...
> Caused by: org.eclipse.core.internal.resources.ResourceException:
> Resource '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen'
> does not exist.
> at
> org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
> at
> org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
>
>
> As I said the eefgen is in the .edit project under a model folder. In
> order to get around this, I had to move the eefgen and component model
> to the base model folder.
>
> 2. Bunch of logged errors:
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Undefined "Let"
> expression at line 51 in Module EEFLauncher for block let eObjects :
> Sequence(EObject) =
> peContext.model.ecorePackage.eAllContents()->select(temp1 : OclAny |
> temp1.oclIsKindOf(ecore::EPackage))->including(peContext.model.ecorePackage).
> Last recorded value of self was
> org.eclipse.emf.eef.EEFGen.impl.GenEditionContextImpl@9e552d0
> (basePackage: com.castortech, descriptorsContributorID: null,
> descriptorsGenericPropertiesViews: true, gmfPropertiesViews: false,
> generateJunitTestCases: false, leafComponentsSuperClass: null,
> propertiesEditingProvidersSuperClass: null).
> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:51)
> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:36)
>
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
> for expression s.first(1).isAlpha().not() at line 398 in Module common
> for query startsWithADigit(String). Last recorded value of self was null.
> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
> at common.toJavaIdentifier(String)(common.mtl:0)
> at common.toJavaIdentifier(String)(common.mtl:0)
>
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
> for expression s.first(1).isAlpha().not() at line 398 in Module common
> for query startsWithADigit(String). Last recorded value of self was null.
> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
> at common.toJavaIdentifier(String)(common.mtl:0)
>
>
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Couldn't evaluate
> URL of the file at line 19 in Module plugin_xml for block
> file(editionContext.model.ecorePackage.name.concat('_properties.plugin.xml'),
> false). Last recorded value of self was
> org.eclipse.emf.eef.components.impl.PropertiesEditionContextImpl@6baccc1e (eProxyURI:
> platform:/resource/com.castortech.iris.models.ecore.smm.1.0/model/SMM.components#_dT8rgYxjEeCDZt1FA67FAQ).
>
> at
> plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:19)
> at
> plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:18)
> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:0)
> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:44)
>
>
> 3. Finally an error where the code seems to be using a toString() of
> some sort to generate a file name:
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Could not create
> directory
> C:\eclipse\IrisWorkspace\com.castortech.iris.models.ecore.smm.1.0.edit\src-gen\parts\Org\eclipse\emf\ecore\impl\DynamicEObjectImpl@2ce64498(eClass:Org\eclipse\emf\ecore\impl.
>
> at
> org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:113)
>
> at
> org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:97)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationContext.openNested(AcceleoEvaluationContext.java:591)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.createFileWriter(AcceleoEvaluationVisitor.java:268)
>
>
>
> 4. About 50 occurrences of this error:
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
> for expression s.first(1).isAlpha().not() at line 398 in Module common
> for query startsWithADigit(String). Last recorded value of self was null.
> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
> at common.toJavaIdentifier(String)(common.mtl:0)
>
> 5. About 50 occurrences of this error as well:
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
> for expression p.eInverse(genmodel::GenPackage)->first() at line 78 in
> Module common for query associatedGenPackage(EPackage). Last recorded
> value of self was org.eclipse.emf.ecore.impl.EcorePackageImpl@1b81464b
> (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix:
> ecore).
> at common.completePackage(EPackage)(common.mtl:0)
> at common.completePackage(EPackage)(common.mtl:0)
> at common.completePackage(EPackage)(common.mtl:446)
> at common.completePackage(EPackage)(common.mtl:445)
> at common.qualifiedMetamodelFactory(EPackage)(common.mtl:0)
> at common.qualifiedMetamodelFactory(EPackage)(common.mtl:505)
>
>
> 6. Then the organize import completes with a dialog complaining about
> some "Problem with Organize Imports".
>
> see: http://dl.dropbox.com/u/24514519/OrgImports2.PNG
>
> 7. Missing imports for EcoreFactory
> In a large number of the generated component files in the
> updateSemanticModel method, there is a line like this:
> EObject eObject = EcoreFactory.eINSTANCE.createEObject();
> and the EcoreFactory was not imported. The number where those errors
> were seems to match the list of errors reported by Organize Imports.
>
> 8. Another error:
> java.lang.UnsupportedOperationException
> at
> org.eclipse.ocl.ecore.impl.OCLExpressionImpl.accept(OCLExpressionImpl.java:164)
>
> at
> org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
>
> at
> org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:156)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1672)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:985)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:847)
>
> at
> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1622)
>
>
> After fixing the import issues, at this point I can successfully compile
> the code, but I have not tried it yet, as I had to get rid of all of our
> associated model and code changes in order to get to this point.
>
> I'm quite concerned to see issues like this popping up at an RC stage.
> We never had so many issues even when 0.9 was in flux. Does this look
> like an environment issue or ????
>
> Thanks for any help clarifying the situation here.
>
> Cheers,
> Alain


--
Cheers,

Stéphane Bouchet, OBEO
Re: [EEF] Multiple Generation errors with 1.0RC [message #676820 is a reply to message #675859] Mon, 06 June 2011 15:48 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6874
Registered: July 2009
Senior Member
Hi
> 8. Another error:
> java.lang.UnsupportedOperationException
> at
> org.eclipse.ocl.ecore.impl.OCLExpressionImpl.accept(OCLExpressionImpl.java:164)
This occurs when either
a) a new OCLExpression class is evaluated and accept has not been
implemented
b) an old OCLExpression class is evaluated for the first time and accept
has not been implemented

Neither of these seems at all likely for a regression test at RC3.

I strongly suggest you rebuild and maybe re-install.

Regards

Ed Willink
Re: [EEF] Multiple Generation errors with 1.0RC [message #676827 is a reply to message #676716] Mon, 06 June 2011 16:24 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 235
Registered: July 2009
Senior Member
Stéphane,

I am running all the latest and greatest as shown below.

Eclipse Modeling Tools

Version: Indigo Release
Build id: 20110526-1053

Acceleo - Text generation from models
Version: 3.1.0.v20110524-0419
Build id: S201105240419

OCL (Object Constraint Language)
Version: 3.1.0.v20110523-1332
Build id: S201105231332

So is there a newer version of EEF that I should use?

Alain

On 6/6/2011 5:40 AM, Stéphane Bouchet wrote:
> Hi Alain,
>
> We had some build server issues for RC3 like almost every project, it
> has impacted EEF as well.
>
> looking at the errors you provided, can you check that you are using the
> latest version of acceleo ( 3.1.0 ) and OCL ( 3.1.0 ) ?
>
> I tried today with eclipse modeling package RC3 and the latest eef
> nightly, and cannot reproduce your generation errors.
>
> BTW, it will be a RC4 for EEF.
>
> Le 01/06/2011 20:05, Alain Picard a écrit :
>> Hi,
>>
>> We are trying to bring our 0.9 project to 1.0RC3 (latest as of today)
>> and have been getting multiple errors during the generation process
>> (which we didn't have before) and tens of thousands of compile errors.
>>
>> I essentially stripped the project all the way down to almost only have
>> the initial model and while the issues are much less, there are still a
>> number of issues.
>>
>> 1. The EEFGEN was generated in the .edit projects and I kept getting:
>> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
>> '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen' does not
>> exist.
>> at
>> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:222)
>>
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:452)
>>
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:350)
>>
>>
>> at
>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1262)
>>
>>
>> at
>> org.eclipse.emf.eef.codegen.ui.generators.actions.GenerateEEFAction.initEEFGenModel(GenerateEEFAction.java:63)
>>
>>
>> at
>> org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction.run(AbstractGenerateEEFAction.java:90)
>>
>>
>> ...
>> Caused by: org.eclipse.core.internal.resources.ResourceException:
>> Resource '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen'
>> does not exist.
>> at
>> org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
>>
>> at
>> org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
>>
>>
>>
>> As I said the eefgen is in the .edit project under a model folder. In
>> order to get around this, I had to move the eefgen and component model
>> to the base model folder.
>>
>> 2. Bunch of logged errors:
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Undefined "Let"
>> expression at line 51 in Module EEFLauncher for block let eObjects :
>> Sequence(EObject) =
>> peContext.model.ecorePackage.eAllContents()->select(temp1 : OclAny |
>> temp1.oclIsKindOf(ecore::EPackage))->including(peContext.model.ecorePackage).
>>
>> Last recorded value of self was
>> org.eclipse.emf.eef.EEFGen.impl.GenEditionContextImpl@9e552d0
>> (basePackage: com.castortech, descriptorsContributorID: null,
>> descriptorsGenericPropertiesViews: true, gmfPropertiesViews: false,
>> generateJunitTestCases: false, leafComponentsSuperClass: null,
>> propertiesEditingProvidersSuperClass: null).
>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:51)
>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:36)
>>
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>> for expression s.first(1).isAlpha().not() at line 398 in Module common
>> for query startsWithADigit(String). Last recorded value of self was null.
>> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
>> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
>> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
>> at common.toJavaIdentifier(String)(common.mtl:0)
>> at common.toJavaIdentifier(String)(common.mtl:0)
>>
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>> for expression s.first(1).isAlpha().not() at line 398 in Module common
>> for query startsWithADigit(String). Last recorded value of self was null.
>> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
>> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
>> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
>> at common.toJavaIdentifier(String)(common.mtl:0)
>>
>>
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Couldn't evaluate
>> URL of the file at line 19 in Module plugin_xml for block
>> file(editionContext.model.ecorePackage.name.concat('_properties.plugin.xml'),
>>
>> false). Last recorded value of self was
>> org.eclipse.emf.eef.components.impl.PropertiesEditionContextImpl@6baccc1e
>> (eProxyURI:
>> platform:/resource/com.castortech.iris.models.ecore.smm.1.0/model/SMM.components#_dT8rgYxjEeCDZt1FA67FAQ).
>>
>>
>> at
>> plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:19)
>> at
>> plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:18)
>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:0)
>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:44)
>>
>>
>> 3. Finally an error where the code seems to be using a toString() of
>> some sort to generate a file name:
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Could not create
>> directory
>> C:\eclipse\IrisWorkspace\com.castortech.iris.models.ecore.smm.1.0.edit\src-gen\parts\Org\eclipse\emf\ecore\impl\DynamicEObjectImpl@2ce64498(eClass:Org\eclipse\emf\ecore\impl.
>>
>>
>> at
>> org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:113)
>>
>>
>> at
>> org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:97)
>>
>>
>> at
>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationContext.openNested(AcceleoEvaluationContext.java:591)
>>
>>
>> at
>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.createFileWriter(AcceleoEvaluationVisitor.java:268)
>>
>>
>>
>>
>> 4. About 50 occurrences of this error:
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>> for expression s.first(1).isAlpha().not() at line 398 in Module common
>> for query startsWithADigit(String). Last recorded value of self was null.
>> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
>> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
>> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
>> at common.toJavaIdentifier(String)(common.mtl:0)
>>
>> 5. About 50 occurrences of this error as well:
>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>> for expression p.eInverse(genmodel::GenPackage)->first() at line 78 in
>> Module common for query associatedGenPackage(EPackage). Last recorded
>> value of self was org.eclipse.emf.ecore.impl.EcorePackageImpl@1b81464b
>> (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix:
>> ecore).
>> at common.completePackage(EPackage)(common.mtl:0)
>> at common.completePackage(EPackage)(common.mtl:0)
>> at common.completePackage(EPackage)(common.mtl:446)
>> at common.completePackage(EPackage)(common.mtl:445)
>> at common.qualifiedMetamodelFactory(EPackage)(common.mtl:0)
>> at common.qualifiedMetamodelFactory(EPackage)(common.mtl:505)
>>
>>
>> 6. Then the organize import completes with a dialog complaining about
>> some "Problem with Organize Imports".
>>
>> see: http://dl.dropbox.com/u/24514519/OrgImports2.PNG
>>
>> 7. Missing imports for EcoreFactory
>> In a large number of the generated component files in the
>> updateSemanticModel method, there is a line like this:
>> EObject eObject = EcoreFactory.eINSTANCE.createEObject();
>> and the EcoreFactory was not imported. The number where those errors
>> were seems to match the list of errors reported by Organize Imports.
>>
>> 8. Another error:
>> java.lang.UnsupportedOperationException
>> at
>> org.eclipse.ocl.ecore.impl.OCLExpressionImpl.accept(OCLExpressionImpl.java:164)
>>
>>
>> at
>> org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
>>
>>
>> at
>> org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:156)
>>
>>
>> at
>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1672)
>>
>>
>> at
>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:985)
>>
>>
>> at
>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:847)
>>
>>
>> at
>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1622)
>>
>>
>>
>> After fixing the import issues, at this point I can successfully compile
>> the code, but I have not tried it yet, as I had to get rid of all of our
>> associated model and code changes in order to get to this point.
>>
>> I'm quite concerned to see issues like this popping up at an RC stage.
>> We never had so many issues even when 0.9 was in flux. Does this look
>> like an environment issue or ????
>>
>> Thanks for any help clarifying the situation here.
>>
>> Cheers,
>> Alain
>
>
Re: [EEF] Multiple Generation errors with 1.0RC [message #677326 is a reply to message #676827] Wed, 08 June 2011 07:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by:

We are promoting a RC4 build that will be our final release for 1.0.0.


Le 06/06/2011 18:24, Alain Picard a écrit :
> Stéphane,
>
> I am running all the latest and greatest as shown below.
>
> Eclipse Modeling Tools
>
> Version: Indigo Release
> Build id: 20110526-1053
>
> Acceleo - Text generation from models
> Version: 3.1.0.v20110524-0419
> Build id: S201105240419
>
> OCL (Object Constraint Language)
> Version: 3.1.0.v20110523-1332
> Build id: S201105231332
>
> So is there a newer version of EEF that I should use?
>
> Alain
>
> On 6/6/2011 5:40 AM, Stéphane Bouchet wrote:
>> Hi Alain,
>>
>> We had some build server issues for RC3 like almost every project, it
>> has impacted EEF as well.
>>
>> looking at the errors you provided, can you check that you are using the
>> latest version of acceleo ( 3.1.0 ) and OCL ( 3.1.0 ) ?
>>
>> I tried today with eclipse modeling package RC3 and the latest eef
>> nightly, and cannot reproduce your generation errors.
>>
>> BTW, it will be a RC4 for EEF.
>>
>> Le 01/06/2011 20:05, Alain Picard a écrit :
>>> Hi,
>>>
>>> We are trying to bring our 0.9 project to 1.0RC3 (latest as of today)
>>> and have been getting multiple errors during the generation process
>>> (which we didn't have before) and tens of thousands of compile errors.
>>>
>>> I essentially stripped the project all the way down to almost only have
>>> the initial model and while the issues are much less, there are still a
>>> number of issues.
>>>
>>> 1. The EEFGEN was generated in the .edit projects and I kept getting:
>>> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Resource
>>> '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen' does not
>>> exist.
>>> at
>>> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:222)
>>>
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:452)
>>>
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:350)
>>>
>>>
>>>
>>> at
>>> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1262)
>>>
>>>
>>>
>>> at
>>> org.eclipse.emf.eef.codegen.ui.generators.actions.GenerateEEFAction.initEEFGenModel(GenerateEEFAction.java:63)
>>>
>>>
>>>
>>> at
>>> org.eclipse.emf.eef.codegen.ui.generators.actions.AbstractGenerateEEFAction.run(AbstractGenerateEEFAction.java:90)
>>>
>>>
>>>
>>> ...
>>> Caused by: org.eclipse.core.internal.resources.ResourceException:
>>> Resource '/com.castortech.iris.models.ecore.smm.1.0/model/SMM.eefgen'
>>> does not exist.
>>> at
>>> org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:320)
>>>
>>>
>>> at
>>> org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:194)
>>>
>>>
>>>
>>>
>>> As I said the eefgen is in the .edit project under a model folder. In
>>> order to get around this, I had to move the eefgen and component model
>>> to the base model folder.
>>>
>>> 2. Bunch of logged errors:
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Undefined "Let"
>>> expression at line 51 in Module EEFLauncher for block let eObjects :
>>> Sequence(EObject) =
>>> peContext.model.ecorePackage.eAllContents()->select(temp1 : OclAny |
>>> temp1.oclIsKindOf(ecore::EPackage))->including(peContext.model.ecorePackage).
>>>
>>>
>>> Last recorded value of self was
>>> org.eclipse.emf.eef.EEFGen.impl.GenEditionContextImpl@9e552d0
>>> (basePackage: com.castortech, descriptorsContributorID: null,
>>> descriptorsGenericPropertiesViews: true, gmfPropertiesViews: false,
>>> generateJunitTestCases: false, leafComponentsSuperClass: null,
>>> propertiesEditingProvidersSuperClass: null).
>>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:51)
>>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:36)
>>>
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>>> for expression s.first(1).isAlpha().not() at line 398 in Module common
>>> for query startsWithADigit(String). Last recorded value of self was
>>> null.
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
>>> at common.toJavaIdentifier(String)(common.mtl:0)
>>> at common.toJavaIdentifier(String)(common.mtl:0)
>>>
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>>> for expression s.first(1).isAlpha().not() at line 398 in Module common
>>> for query startsWithADigit(String). Last recorded value of self was
>>> null.
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
>>> at common.toJavaIdentifier(String)(common.mtl:0)
>>>
>>>
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Couldn't evaluate
>>> URL of the file at line 19 in Module plugin_xml for block
>>> file(editionContext.model.ecorePackage.name.concat('_properties.plugin.xml'),
>>>
>>>
>>> false). Last recorded value of self was
>>> org.eclipse.emf.eef.components.impl.PropertiesEditionContextImpl@6baccc1e
>>>
>>> (eProxyURI:
>>> platform:/resource/com.castortech.iris.models.ecore.smm.1.0/model/SMM.components#_dT8rgYxjEeCDZt1FA67FAQ).
>>>
>>>
>>>
>>> at
>>> plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:19)
>>>
>>> at
>>> plugin_xml.plugin_xml(PropertiesEditionContext,String)(plugin_xml.mtl:18)
>>>
>>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:0)
>>> at EEFLauncher.EEFLauncher(EEFGenModel)(EEFLauncher.mtl:44)
>>>
>>>
>>> 3. Finally an error where the code seems to be using a toString() of
>>> some sort to generate a file name:
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Could not create
>>> directory
>>> C:\eclipse\IrisWorkspace\com.castortech.iris.models.ecore.smm.1.0.edit\src-gen\parts\Org\eclipse\emf\ecore\impl\DynamicEObjectImpl@2ce64498(eClass:Org\eclipse\emf\ecore\impl.
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:113)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy.createWriterFor(DefaultStrategy.java:97)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationContext.openNested(AcceleoEvaluationContext.java:591)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.createFileWriter(AcceleoEvaluationVisitor.java:268)
>>>
>>>
>>>
>>>
>>>
>>> 4. About 50 occurrences of this error:
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>>> for expression s.first(1).isAlpha().not() at line 398 in Module common
>>> for query startsWithADigit(String). Last recorded value of self was
>>> null.
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:0)
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:416)
>>> at common.toJavaIdentifierDelegate(String)(common.mtl:415)
>>> at common.toJavaIdentifier(String)(common.mtl:0)
>>>
>>> 5. About 50 occurrences of this error as well:
>>> org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result
>>> for expression p.eInverse(genmodel::GenPackage)->first() at line 78 in
>>> Module common for query associatedGenPackage(EPackage). Last recorded
>>> value of self was org.eclipse.emf.ecore.impl.EcorePackageImpl@1b81464b
>>> (name: ecore) (nsURI: http://www.eclipse.org/emf/2002/Ecore, nsPrefix:
>>> ecore).
>>> at common.completePackage(EPackage)(common.mtl:0)
>>> at common.completePackage(EPackage)(common.mtl:0)
>>> at common.completePackage(EPackage)(common.mtl:446)
>>> at common.completePackage(EPackage)(common.mtl:445)
>>> at common.qualifiedMetamodelFactory(EPackage)(common.mtl:0)
>>> at common.qualifiedMetamodelFactory(EPackage)(common.mtl:505)
>>>
>>>
>>> 6. Then the organize import completes with a dialog complaining about
>>> some "Problem with Organize Imports".
>>>
>>> see: http://dl.dropbox.com/u/24514519/OrgImports2.PNG
>>>
>>> 7. Missing imports for EcoreFactory
>>> In a large number of the generated component files in the
>>> updateSemanticModel method, there is a line like this:
>>> EObject eObject = EcoreFactory.eINSTANCE.createEObject();
>>> and the EcoreFactory was not imported. The number where those errors
>>> were seems to match the list of errors reported by Organize Imports.
>>>
>>> 8. Another error:
>>> java.lang.UnsupportedOperationException
>>> at
>>> org.eclipse.ocl.ecore.impl.OCLExpressionImpl.accept(OCLExpressionImpl.java:164)
>>>
>>>
>>>
>>> at
>>> org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
>>>
>>>
>>>
>>> at
>>> org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:156)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1672)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:985)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitAcceleoTemplate(AcceleoEvaluationVisitor.java:847)
>>>
>>>
>>>
>>> at
>>> org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1622)
>>>
>>>
>>>
>>>
>>> After fixing the import issues, at this point I can successfully compile
>>> the code, but I have not tried it yet, as I had to get rid of all of our
>>> associated model and code changes in order to get to this point.
>>>
>>> I'm quite concerned to see issues like this popping up at an RC stage.
>>> We never had so many issues even when 0.9 was in flux. Does this look
>>> like an environment issue or ????
>>>
>>> Thanks for any help clarifying the situation here.
>>>
>>> Cheers,
>>> Alain
>>
>>
>


--
Cheers,

Stéphane Bouchet, OBEO
Re: [EEF] Multiple Generation errors with 1.0RC [message #685660 is a reply to message #677326] Sat, 18 June 2011 01:09 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
I'm getting a lot of errors just like that as well. Oddly, I don't think they were happening until after I tried a gen with JMerge, but now they won't go away. Should we be using the version from the Indigo staging repos or something else?
Re: [EEF] Multiple Generation errors with 1.0RC [message #686048 is a reply to message #685660] Tue, 21 June 2011 13:57 Go to previous message
Stephane Bouchet is currently offline Stephane BouchetFriend
Messages: 280
Registered: July 2009
Senior Member
hi,

sorry for the delay, but seems the nntp bridge with thie forums is totally broken.

BTW, tomorrow is the official release of indigo and the staging repo will be deleted. EEF 1.0.0 is exactly the same as EEF RC4, so if you have this one installed, could you please be more specific about your generation problems ?
Previous Topic:[TEXO] Adding functions to util.ext
Next Topic:[EEF] Migrate 1.0 Not using EMF ItemProvider
Goto Forum:
  


Current Time: Thu Oct 22 22:07:13 GMT 2020

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

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

Back to the top