|
|
|
|
|
|
|
|
|
|
|
|
Re: OCL standard library error : no viable alternative at input 'validating' [message #1221349 is a reply to message #1220955] |
Tue, 17 December 2013 08:41  |
Eclipse User |
|
|
|
I have looked at test case. It is to load library dynamically. But my problem is code generation for customized library and i am using GenerateOCLstdlibModel.mwe2.
If i just GenerateOCLstdlibModel.mwe2 to point to customized library file instead of default(OCL-2.5.oclstdlib) and execute GenerateOCLstdlibModel.mwe2 file then i get the following error
367 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher - Unresolved compilation problem:
orphans cannot be resolved
java.lang.Error: Unresolved compilation problem:
orphans cannot be resolved
at org.eclipse.ocl.examples.pivot.model.OCLstdlib$Contents.installLambdaTypes(OCLstdlib.java:236)
at org.eclipse.ocl.examples.pivot.model.OCLstdlib$Contents.create(OCLstdlib.java:178)
at org.eclipse.ocl.examples.pivot.model.OCLstdlib.getDefault(OCLstdlib.java:82)
at org.eclipse.ocl.examples.pivot.model.OCLstdlib$Loader.getResource(OCLstdlib.java:137)
at org.eclipse.ocl.examples.pivot.manager.MetaModelManager.loadDefaultLibrary(MetaModelManager.java:2595)
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.getLibraryType(PivotStandardLibrary.java:169)
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.getRequiredLibraryType(PivotStandardLibrary.java:283)
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.resolveRequiredSimpleType(PivotStandardLibrary.java:388)
at org.eclipse.ocl.examples.pivot.manager.PivotStandardLibrary.getOclElementType(PivotStandardLibrary.java:201)
at org.eclipse.ocl.examples.xtext.base.cs2as.BaseCSPreOrderVisitor$ClassSupersContinuation.execute(BaseCSPreOrderVisitor.java:98)
at org.eclipse.ocl.examples.xtext.base.cs2as.CS2PivotConversion.progressContinuations(CS2PivotConversion.java:819)
at org.eclipse.ocl.examples.xtext.base.cs2as.CS2PivotConversion.update(CS2PivotConversion.java:1312)
at org.eclipse.ocl.examples.xtext.base.cs2as.CS2Pivot.update(CS2Pivot.java:519)
at org.eclipse.ocl.examples.xtext.oclstdlib.cs2as.OCLstdlibCS2Pivot.update(OCLstdlibCS2Pivot.java:67)
at org.eclipse.ocl.examples.xtext.base.utilities.CS2PivotResourceAdapter.refreshPivotMappings(CS2PivotResourceAdapter.java:107)
at org.eclipse.ocl.examples.xtext.base.utilities.CS2PivotLinker.afterModelLinked(CS2PivotLinker.java:75)
at org.eclipse.xtext.linking.impl.AbstractCleaningLinker.linkModel(AbstractCleaningLinker.java:49)
at org.eclipse.xtext.resource.XtextResource.doLinking(XtextResource.java:294)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLinking(LazyLinkingResource.java:88)
at org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLCSResource.doLinking(EssentialOCLCSResource.java:169)
at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:262)
at org.eclipse.xtext.resource.XtextResource.updateInternalState(XtextResource.java:252)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:165)
at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.java:81)
at org.eclipse.ocl.examples.xtext.essentialocl.utilities.EssentialOCLCSResource.doLoad(EssentialOCLCSResource.java:177)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1297)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.ocl.examples.build.xtend.GenerateOCLstdlib.invokeInternal(GenerateOCLstdlib.java:77)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:126)
at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(Mwe2Bridge.java:34)
at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(AbstractWorkflowComponent.java:201)
at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(AbstractCompositeWorkflowComponent.java:35)
at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:102)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:62)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:52)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:74)
at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
It seems a bug in library's import functionality as if would have imported properly then it should have worked fine as it works fine with defaul library (OCL-2.5.oclstdlib).
May be you could identify the bug and register a bug report so this can resolved for future.
thanks for the help!
Cheers,
|
|
|
Powered by
FUDForum. Page generated in 0.25868 seconds