mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
225 stars 77 forks source link

Code generation for com.itemis.smartmeter.ssec.tests.integration.flashcommands aborts with exception #1070

Closed stephaneberle9 closed 10 years ago

stephaneberle9 commented 10 years ago

error invocation method: "sourceNodesQuery_1021502391329213236" in com.mbeddr.ext.components.gen_nomw.generator.template.main.QueriesGenerated: Can't cast node: 1498287389677415019, concept: com.mbeddr.ext.compositecomponents.structure.CompositeComponent to concept: com.mbeddr.ext.components.structure.AtomicComponent jetbrains.mps.lang.smodel.generator.smodelAdapter.NodeCastException: Can't cast node: 1498287389677415019, concept: com.mbeddr.ext.compositecomponents.structure.CompositeComponent to concept: com.mbeddr.ext.components.structure.AtomicComponent at jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations.cast(SNodeOperations.java:644) at com.mbeddr.ext.components.gen_nomw.generator.template.main.QueriesGenerated.sourceNodesQuery_1021502391329213236(QueriesGenerated.java:2051) at sun.reflect.GeneratedMethodAccessor1481.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at jetbrains.mps.util.QueryMethodGenerated.invoke(QueryMethodGenerated.java:166) at jetbrains.mps.generator.impl.interpreted.ReflectiveQueryProvider$SourceNodes.evaluate(ReflectiveQueryProvider.java:373) at jetbrains.mps.generator.template.DefaultQueryExecutionContext.evaluate(DefaultQueryExecutionContext.java:255) at jetbrains.mps.generator.impl.template.QueryExecutionContextWithDependencyRecording.evaluate(QueryExecutionContextWithDependencyRecording.java:215) at jetbrains.mps.generator.impl.TemplateProcessor$MacroWithInput.getNewInputNodes(TemplateProcessor.java:326) at jetbrains.mps.generator.impl.TemplateProcessor$LoopMacro.apply(TemplateProcessor.java:375) at jetbrains.mps.generator.impl.TemplateProcessor.applyMacro(TemplateProcessor.java:111) at jetbrains.mps.generator.impl.TemplateProcessor.applyTemplate(TemplateProcessor.java:141) at jetbrains.mps.generator.impl.TemplateProcessor$MacroImpl.nextMacro(TemplateProcessor.java:281) at jetbrains.mps.generator.impl.TemplateProcessor$TraceMacro.apply(TemplateProcessor.java:855) at jetbrains.mps.generator.impl.TemplateProcessor.applyMacro(TemplateProcessor.java:111) at jetbrains.mps.generator.impl.TemplateProcessor$MacroImpl.nextMacro(TemplateProcessor.java:279) at jetbrains.mps.generator.impl.TemplateProcessor$LoopMacro.apply(TemplateProcessor.java:386) at jetbrains.mps.generator.impl.TemplateProcessor.applyMacro(TemplateProcessor.java:111) at jetbrains.mps.generator.impl.TemplateProcessor.applyTemplate(TemplateProcessor.java:141) at jetbrains.mps.generator.impl.TemplateProcessor.applyTemplate(TemplateProcessor.java:143) at jetbrains.mps.generator.impl.TemplateProcessor$MacroImpl.nextMacro(TemplateProcessor.java:281) at jetbrains.mps.generator.impl.TemplateProcessor$TraceMacro.apply(TemplateProcessor.java:855) at jetbrains.mps.generator.impl.TemplateProcessor.applyMacro(TemplateProcessor.java:111) at jetbrains.mps.generator.impl.TemplateProcessor.apply(TemplateProcessor.java:93) at jetbrains.mps.generator.impl.TemplateContainer.processRuleConsequence(TemplateContainer.java:79) at jetbrains.mps.generator.impl.interpreted.TemplateReductionRuleInterpreted.doApply(TemplateReductionRuleInterpreted.java:83) at jetbrains.mps.generator.runtime.ReductionRuleBase.tryToApply(ReductionRuleBase.java:61) at jetbrains.mps.generator.impl.interpreted.TemplateReductionRuleInterpreted.tryToApply(TemplateReductionRuleInterpreted.java:60) at jetbrains.mps.generator.template.DefaultQueryExecutionContext.tryToApply(DefaultQueryExecutionContext.java:343) at jetbrains.mps.generator.impl.template.QueryExecutionContextWithDependencyRecording.tryToApply(QueryExecutionContextWithDependencyRecording.java:279) at jetbrains.mps.generator.impl.TemplateExecutionEnvironmentImpl.tryToReduce(TemplateExecutionEnvironmentImpl.java:386) at jetbrains.mps.generator.impl.TemplateExecutionEnvironmentImpl.tryToReduce(TemplateExecutionEnvironmentImpl.java:341) at jetbrains.mps.generator.impl.TemplateGenerator$FullCopyFacility.copyInputNode(TemplateGenerator.java:939) at jetbrains.mps.generator.impl.TemplateGenerator$FullCopyFacility.copyRootInputNode(TemplateGenerator.java:840) at jetbrains.mps.generator.impl.TemplateGenerator.copyRootInputNode(TemplateGenerator.java:415) at jetbrains.mps.generator.impl.TemplateGenerator.applyReductions(TemplateGenerator.java:291) at jetbrains.mps.generator.impl.TemplateGenerator.apply(TemplateGenerator.java:160) at jetbrains.mps.generator.impl.GenerationSession.applyRules(GenerationSession.java:477) at jetbrains.mps.generator.impl.GenerationSession.executeMajorStepInternal(GenerationSession.java:382) at jetbrains.mps.generator.impl.GenerationSession.executeMajorStep(GenerationSession.java:341) at jetbrains.mps.generator.impl.GenerationSession.generateModel(GenerationSession.java:233) at jetbrains.mps.generator.impl.GenerationController.generateModel(GenerationController.java:189) at jetbrains.mps.generator.impl.GenerationController.generateModelsInModule(GenerationController.java:148) at jetbrains.mps.generator.impl.GenerationController.generate(GenerationController.java:101) at jetbrains.mps.generator.GenerationFacade$2$1.compute(GenerationFacade.java:168) at jetbrains.mps.generator.GenerationFacade$2$1.compute(GenerationFacade.java:165) at jetbrains.mps.ide.undo.WorkbenchUndoHandler.runNonUndoableAction(WorkbenchUndoHandler.java:46) at jetbrains.mps.smodel.UndoHelper.runNonUndoableAction(UndoHelper.java:61) at jetbrains.mps.generator.GenerationFacade$2.run(GenerationFacade.java:165) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$8.compute(WorkbenchModelAccess.java:312) at jetbrains.mps.ide.smodel.WorkbenchModelAccess$8.compute(WorkbenchModelAccess.java:307) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:921) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.tryRead(WorkbenchModelAccess.java:307) at jetbrains.mps.ide.smodel.WorkbenchModelAccess.requireRead(WorkbenchModelAccess.java:357) at jetbrains.mps.generator.GenerationFacade.generateModels(GenerationFacade.java:162) at jetbrains.mps.lang.core.plugin.Generate_Facet$Target_generate$1.execute(Generate_Facet.java:565) at jetbrains.mps.internal.make.runtime.script.Script$3.invoke(Script.java:306) at jetbrains.mps.internal.make.runtime.script.Script$3.invoke(Script.java:250) at jetbrains.mps.ide.make.WorkbenchMakeService$Controller.runJobWithMonitor(WorkbenchMakeService.java:350) at jetbrains.mps.internal.make.runtime.script.Script.executeTargets(Script.java:250) at jetbrains.mps.internal.make.runtime.script.Script.execute(Script.java:226) at jetbrains.mps.make.service.CoreMakeTask$2.invoke(CoreMakeTask.java:114) at jetbrains.mps.make.service.CoreMakeTask$2.invoke(CoreMakeTask.java:88) at jetbrains.mps.make.dependencies.MakeSequence.iterate(MakeSequence.java:79) at jetbrains.mps.make.service.CoreMakeTask.doRun(CoreMakeTask.java:88) at jetbrains.mps.ide.make.MakeTask$WorkbenchMakeTask.doRun(MakeTask.java:154) at jetbrains.mps.make.service.CoreMakeTask.run(CoreMakeTask.java:67) at jetbrains.mps.ide.make.MakeTask$1.run(MakeTask.java:66) at java.lang.Thread.run(Thread.java:662)

stephaneberle9 commented 10 years ago

Caused by: jetbrains.mps.lang.smodel.generator.smodelAdapter.NodeCastException: Can't cast node: 9139717977406121832, concept: com.mbeddr.ext.compositecomponents.structure.CompositeComponent to concept: com.mbeddr.ext.components.structure.AtomicComponent at jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations.cast(SNodeOperations.java:625) at com.mbeddr.ext.components.gen_nomw.generator.template.main.QueriesGenerated.sourceNodesQuery_1021502391329213236(QueriesGenerated.java:2052) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at jetbrains.mps.util.QueryMethodGenerated.invoke(QueryMethodGenerated.java:166) ... 63 more