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

Bug 315582

Summary: ClassCastException: EvaluationException cannot be cast to org.eclipse.emf.ecore.EObject
Product: [Modeling] TMF Reporter: Rubén Porras Campo <Ruben.PorrasCampo>
Component: XtextAssignee: Jan Koehnlein <jan>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: Holger.Schill, jan, sebastian.zarnekow, sven.efftinge, tmf.xtext-inbox
Version: 1.0.0Flags: jan: helios+
Target Milestone: SR1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch for IssueImpl
none
Patch resolving the Issue none

Description Rubén Porras Campo CLA 2010-06-03 09:31:37 EDT
Build Identifier: I20100527-1700

0    [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Registering platform uri 'C:\eclipse_workspaces\heliosrc3'
47   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Adding generated EPackage 'com.avaloq.bttg.meta_model.btc.btc.BtcPackage'
47   [main] INFO  lipse.emf.mwe.utils.StandaloneSetup  - Adding generated EPackage 'com.avaloq.bttg.meta_model.btpt.btpt.BtptPackage'
563  [main] DEBUG        org.eclipse.xtext.mwe.Reader  - Resource Pathes : [src/btc, src/btt/fidd, src/btpt]
625  [main] INFO  ipse.emf.mwe.utils.DirectoryCleaner  - Cleaning C:\eclipse_workspaces\heliosrc3\com.avaloq.bttg.model\src-gen\btt\fidd
781  [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/pos_fidd.btpt
1281 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/recon2.btpt
1641 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/asset.btpt
1719 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/macc_qty.btpt
1719 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/eusd.btpt
1734 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/msg.btpt
1734 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/cost.btpt
1734 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btc/datatypes.btc
1750 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/slbp.btpt
1844 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check FAIL! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btt/fidd/base.btt
1906 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/settle_plan.btpt
1906 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/slba_pool.btpt
1906 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/recon.btpt
1906 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check OK! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btpt/intr.btpt
1953 [main] DEBUG xt.validation.ResourceValidatorImpl  - Syntax check FAIL! Resource: file:/C:/eclipse_workspaces/heliosrc3/com.avaloq.bttg.model/src/btt/fidd/fidd.btt
2312 [main] ERROR text.validation.CompositeEValidator  - Error executing EValidator
java.lang.ClassCastException: org.eclipse.xtend.expression.EvaluationException cannot be cast to org.eclipse.emf.ecore.EObject
	at org.eclipse.xtext.check.AbstractCheckValidator$IssuesAdapter.add(AbstractCheckValidator.java:86)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:30)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:35)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:43)
	at org.eclipse.internal.xtend.xtend.ast.Check.validate(Check.java:168)
	at org.eclipse.internal.xtend.xtend.ast.ExtensionFile.check(ExtensionFile.java:222)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:47)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:27)
	at org.eclipse.xtext.check.AbstractCheckValidator.validate(AbstractCheckValidator.java:68)
	at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:119)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:164)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:179)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:179)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:126)
	at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:67)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	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)
2312 [main] ERROR text.validation.CompositeEValidator  - Error executing EValidator
java.lang.ClassCastException: org.eclipse.xtend.expression.EvaluationException cannot be cast to org.eclipse.emf.ecore.EObject
	at org.eclipse.xtext.check.AbstractCheckValidator$IssuesAdapter.add(AbstractCheckValidator.java:86)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:30)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:35)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:43)
	at org.eclipse.internal.xtend.xtend.ast.Check.validate(Check.java:168)
	at org.eclipse.internal.xtend.xtend.ast.ExtensionFile.check(ExtensionFile.java:222)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:47)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:27)
	at org.eclipse.xtext.check.AbstractCheckValidator.validate(AbstractCheckValidator.java:68)
	at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:119)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:164)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:179)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:126)
	at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:67)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	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)
2344 [main] ERROR text.validation.CompositeEValidator  - Error executing EValidator
java.lang.ClassCastException: org.eclipse.xtend.expression.EvaluationException cannot be cast to org.eclipse.emf.ecore.EObject
	at org.eclipse.xtext.check.AbstractCheckValidator$IssuesAdapter.add(AbstractCheckValidator.java:86)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:30)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:35)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:43)
	at org.eclipse.internal.xtend.xtend.ast.Check.validate(Check.java:168)
	at org.eclipse.internal.xtend.xtend.ast.ExtensionFile.check(ExtensionFile.java:222)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:47)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:27)
	at org.eclipse.xtext.check.AbstractCheckValidator.validate(AbstractCheckValidator.java:68)
	at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:119)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:164)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:179)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:126)
	at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:67)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	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)
2344 [main] ERROR text.validation.CompositeEValidator  - Error executing EValidator
java.lang.ClassCastException: org.eclipse.xtend.expression.EvaluationException cannot be cast to org.eclipse.emf.ecore.EObject
	at org.eclipse.xtext.check.AbstractCheckValidator$IssuesAdapter.add(AbstractCheckValidator.java:86)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:30)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:35)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:43)
	at org.eclipse.internal.xtend.xtend.ast.Check.validate(Check.java:168)
	at org.eclipse.internal.xtend.xtend.ast.ExtensionFile.check(ExtensionFile.java:222)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:47)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:27)
	at org.eclipse.xtext.check.AbstractCheckValidator.validate(AbstractCheckValidator.java:68)
	at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:119)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:164)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:179)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:126)
	at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:67)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	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)
2344 [main] ERROR text.validation.CompositeEValidator  - Error executing EValidator
java.lang.ClassCastException: org.eclipse.xtend.expression.EvaluationException cannot be cast to org.eclipse.emf.ecore.EObject
	at org.eclipse.xtext.check.AbstractCheckValidator$IssuesAdapter.add(AbstractCheckValidator.java:86)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:30)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:35)
	at org.eclipse.emf.mwe.core.issues.IssuesImpl.addError(IssuesImpl.java:43)
	at org.eclipse.internal.xtend.xtend.ast.Check.validate(Check.java:168)
	at org.eclipse.internal.xtend.xtend.ast.ExtensionFile.check(ExtensionFile.java:222)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:47)
	at org.eclipse.xtend.check.CheckFacade.checkAll(CheckFacade.java:27)
	at org.eclipse.xtext.check.AbstractCheckValidator.validate(AbstractCheckValidator.java:68)
	at org.eclipse.xtext.validation.CompositeEValidator.validate(CompositeEValidator.java:119)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:164)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:183)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.doValidateContents(Diagnostician.java:179)
	at org.eclipse.xtext.validation.CancelableDiagnostician.doValidateContents(CancelableDiagnostician.java:48)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:167)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:143)
	at org.eclipse.xtext.validation.CancelableDiagnostician.validate(CancelableDiagnostician.java:36)
	at org.eclipse.emf.ecore.util.Diagnostician.validate(Diagnostician.java:126)
	at org.eclipse.xtext.validation.ResourceValidatorImpl.validate(ResourceValidatorImpl.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:67)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	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)
2375 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher  - Problems running workflow workflow.btt.fidd: null
java.lang.RuntimeException: Problems running workflow workflow.btt.fidd: null
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:82)
	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)
Caused by: java.lang.NullPointerException
	at org.eclipse.xtext.mwe.Validator$2.apply(Validator.java:164)
	at org.eclipse.xtext.mwe.Validator$2.apply(Validator.java:1)
	at com.google.common.collect.Multimaps.index(Multimaps.java:1396)
	at org.eclipse.xtext.mwe.Validator.groupByURI(Validator.java:161)
	at org.eclipse.xtext.mwe.Validator.appendMessages(Validator.java:120)
	at org.eclipse.xtext.mwe.Validator.toString(Validator.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:87)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	... 3 more


Reproducible: Always

Steps to Reproduce:
1.Compile a model with Syntax Check errors
Comment 1 Rubén Porras Campo CLA 2010-06-07 04:01:40 EDT
No information about why a Validator failed, renders the validator almost unusable. Hence upgrading the importance to major.
Comment 2 Rubén Porras Campo CLA 2010-06-07 04:20:53 EDT
I can only reproduce the problem if the fragment validation.CheckFragment is in use. The JavaValidatorFragment does not seem to trigger the problem.
Comment 3 Jan Koehnlein CLA 2010-06-07 07:18:46 EDT
Created attachment 171253 [details]
Patch for IssueImpl

It looks like we call IssueImpl.addError(String, Object) with an exception as second argument, thus interpreting the exception as an erroneous object. This will make the Adapter throw the class cast exception.

Please try the attached patch. If the error persists, we need more information, e.g. your check file and an example model.

Committers: Please review the attached patch.
Comment 4 Rubén Porras Campo CLA 2010-06-08 02:13:37 EDT
I will test it as soon as the RC4 if availabre at the OAW working group webpage.
Comment 5 Jan Koehnlein CLA 2010-06-08 05:59:28 EDT
Currently it is only a patch, so not yet committed to source. If you rely on this to be fixed, I asked you to check if the patch fixes your error. Without your cooperation it's unlikely this patch makes it into the release, as we are in the late RCs thus only urgent changes will make it.

In your case testing should be easy: 
  Import-> Plugins & Fragments -> org.eclipse.emf.mwe.core

Apply the patch (Team -> Apply patch) and re-run the workflow.
Comment 6 Rubén Porras Campo CLA 2010-06-08 07:26:14 EDT
Hi Jan,

I would had done it if had known how. Thanks for the mini-tutorial.

The problem is, that the org.eclipse.emf.mwe.core provided by the OAW working group download has no source.

I also tried downloading eclipse from http://www.eclipse.org/downloads/index-helios.php and installing the mwe framework with the update manager. Also no source folder.

How can I get the source code for org.eclipse.emf.mwe.core?
Comment 7 Holger Schill CLA 2010-06-08 07:37:54 EDT
Hi Ruben,

in the import-wizard you could define if you want the sourcecode. Please have a look at the section "import as" in the wizard. The standard selections says binaries only.

Regards,

Holger
Comment 8 Rubén Porras Campo CLA 2010-06-08 09:07:31 EDT
The patch is NOT OK, The stack trace is still the same. The call goes to 

	public void addError(final String msg, final Object element) {
		addError(null, msg, element, null, Collections.emptyList());
	}

instead to the patched methode.
Comment 9 Rubén Porras Campo CLA 2010-06-08 09:19:17 EDT
Created attachment 171400 [details]
Patch resolving the Issue
Comment 10 Rubén Porras Campo CLA 2010-06-08 09:19:45 EDT
I have attached a new patch that solves the issue
Comment 11 Rubén Porras Campo CLA 2010-06-08 09:21:32 EDT
After applying the patch  there is a new Issue. Should I report a new issue or would you like to look at it in this bug?

The new StackTrace is

java.lang.RuntimeException: Problems running workflow workflow.btt.fidd: null
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:82)
	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)
Caused by: java.lang.NullPointerException
	at org.eclipse.xtext.mwe.Validator$2.apply(Validator.java:164)
	at org.eclipse.xtext.mwe.Validator$2.apply(Validator.java:1)
	at com.google.common.collect.Multimaps.index(Multimaps.java:1396)
	at org.eclipse.xtext.mwe.Validator.groupByURI(Validator.java:161)
	at org.eclipse.xtext.mwe.Validator.appendMessages(Validator.java:120)
	at org.eclipse.xtext.mwe.Validator.toString(Validator.java:103)
	at org.eclipse.xtext.mwe.Validator.validate(Validator.java:87)
	at org.eclipse.xtext.mwe.Reader.invokeInternal(Reader.java:165)
	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:31)
	at org.eclipse.emf.mwe2.runtime.workflow.Workflow.run(Workflow.java:19)
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Runner.run(Mwe2Runner.java:80)
	... 3 more
Comment 12 Sebastian Zarnekow CLA 2010-06-25 11:27:24 EDT
Marking this one as New as nobody seems to work on it actively.
Comment 13 Jan Koehnlein CLA 2010-08-03 05:31:04 EDT
Sorry your patch did not make it into 1.0.

I've fixed the issue in two places:
- o.e.xtend.internal.ast.Ckeck now calls the correct Issues.addIssue() method
- o.e.xtext.xtend.AbstractCheckValidator checks the issue's element for being an EObject

If the second problem persists, please open a new bug.
Comment 14 Karsten Thoms CLA 2017-09-19 17:32:07 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 15 Karsten Thoms CLA 2017-09-19 17:43:17 EDT
Closing all bugs that were set to RESOLVED before Neon.0