Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » ClassCastException & JobReconcilier
ClassCastException & JobReconcilier [message #1125503] Fri, 04 October 2013 11:32
vincent lorenzo is currently offline vincent lorenzo
Messages: 33
Registered: June 2010
Member
Hi everybody,
I'm working with the new Papyrus Xtext integration, with celleditor developped for the ModelExplorer, but in my case, I open them in the Papyrus nattable integration.

I manage myself the string error (without using alf).
I'm working with Kepler, using the Xtext integration done for Luna (Xtext 2.4.2).

I get this error when the typed string is not valid, any ideas?


java.lang.ClassCastException: org.eclipse.xtext.nodemodel.impl.LeafNode cannot be cast to org.eclipse.xtext.nodemodel.impl.CompositeNode
	at org.eclipse.xtext.nodemodel.impl.NodeModelBuilder.replaceAndTransferLookAhead(NodeModelBuilder.java:338)
	at org.eclipse.xtext.parser.impl.PartialParsingHelper.reparse(PartialParsingHelper.java:168)
	at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doReparse(AbstractAntlrParser.java:136)
	at org.eclipse.xtext.parser.AbstractParser.reparse(AbstractParser.java:48)
	at org.eclipse.xtext.resource.XtextResource.update(XtextResource.java:220)
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.doReconcile(XtextDocumentReconcileStrategy.java:125)
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:55)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(XtextReconciler.java:329)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$3(XtextReconciler.java:316)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:273)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:1)
	at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:36)
	at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:81)
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:201)
	at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:98)
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:270)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Previous Topic:How should an inferrer fail correctly?
Next Topic:[Xtend] template expressions
Goto Forum:
  


Current Time: Mon Oct 07 10:30:45 EDT 2013

Powered by FUDForum. Page generated in 0.01715 seconds