Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Error dialog in editor
Error dialog in editor [message #909462] Fri, 07 September 2012 07:23 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
I get often the errors below that result in an obnoxious dialog. I couldn't trace them to a specific construct, but I'm trying to do that. I thought this is maybe a known issue.

Eclipse 4.2
Xtend 2.3.1

!ENTRY org.eclipse.core.jobs 4 2 2012-09-07 09:17:36.043
!MESSAGE An internal error occurred during: "Updating editor state".
!STACK 0
org.eclipse.emf.common.util.WrappedException: org.eclipse.emf.common.util.WrappedException: java.lang.ClassCastException: org.eclipse.xtext.common.types.impl.JvmFieldImpl cannot be cast to org.eclipse.xtext.common.types.JvmConstructor
        at org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(OnChangeEvictingCache.java:126)
        at org.eclipse.xtext.xbase.resource.XbaseResource.getEObject(XbaseResource.java:237)
        at org.eclipse.xtend.core.resource.XtendResource.getEObject(XtendResource.java:88)
        at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReference(LazyLinkingResource.java:147)
        at org.eclipse.xtext.linking.lazy.LazyLinkingResource.resolveLazyCrossReferences(LazyLinkingResource.java:108)
        at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:494)
        at org.eclipse.xtext.resource.impl.DefaultResourceDescription.getImportedNames(DefaultResourceDescription.java:95)
        at org.eclipse.xtext.resource.impl.DefaultResourceDescriptionManager.getImportedNames(DefaultResourceDescriptionManager.java:99)
        at org.eclipse.xtext.resource.impl.DefaultResourceDescriptionManager.isAffected(DefaultResourceDescriptionManager.java:95)
        at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport.isReparseRequired(DirtyStateEditorSupport.java:452)
        at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport$UpdateEditorStateJob$1.exec(DirtyStateEditorSupport.java:125)
        at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport$UpdateEditorStateJob$1.exec(DirtyStateEditorSupport.java:1)
        at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
        at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:78)
        at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport$UpdateEditorStateJob.run(DirtyStateEditorSupport.java:118)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.emf.common.util.WrappedException: java.lang.ClassCastException: org.eclipse.xtext.common.types.impl.JvmFieldImpl cannot be cast to org.eclipse.xtext.common.types.JvmConstructor
        at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:217)
        at org.eclipse.xtext.xbase.resource.XbaseResource.access$0(XbaseResource.java:1)
        at org.eclipse.xtext.xbase.resource.XbaseResource$2.exec(XbaseResource.java:239)
        at org.eclipse.xtext.xbase.resource.XbaseResource$2.exec(XbaseResource.java:1)
        at org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(OnChangeEvictingCache.java:124)
        ... 15 more
Caused by: java.lang.ClassCastException: org.eclipse.xtext.common.types.impl.JvmFieldImpl cannot be cast to org.eclipse.xtext.common.types.JvmConstructor
        at org.eclipse.xtext.xbase.impl.XConstructorCallImpl.getConstructor(XConstructorCallImpl.java:153)
        at org.eclipse.xtext.xbase.impl.XConstructorCallImpl.eGet(XConstructorCallImpl.java:276)
        at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
        at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
        at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:998)
        at org.eclipse.xtext.xbase.resource.XbaseResource.trackResolution(XbaseResource.java:202)
        at org.eclipse.xtext.xbase.resource.XbaseResource.getConstructor(XbaseResource.java:232)
        at org.eclipse.xtext.xbase.resource.LinkingAssumptions.getConstructor(LinkingAssumptions.java:128)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getConstructor(AbstractTypeProvider.java:315)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getConstructor(AbstractTypeProvider.java:319)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider._type(XbaseTypeProvider.java:863)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider.type(XbaseTypeProvider.java:165)
        at org.eclipse.xtext.xbase.annotations.typing.XbaseWithAnnotationsTypeProvider.type(XbaseWithAnnotationsTypeProvider.java:113)
        at org.eclipse.xtend.core.typing.XtendTypeProvider.type(XtendTypeProvider.java:82)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$2.doComputation(AbstractTypeProvider.java:292)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$2.doComputation(AbstractTypeProvider.java:1)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get(AbstractTypeProvider.java:658)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get(AbstractTypeProvider.java:1)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$1.get(AbstractTypeProvider.java:159)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport.getType(AbstractTypeProvider.java:655)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.doGetType(AbstractTypeProvider.java:348)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getType(AbstractTypeProvider.java:364)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getType(AbstractTypeProvider.java:360)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider._typeForIdentifiable(XbaseTypeProvider.java:1242)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider.typeForIdentifiable(XbaseTypeProvider.java:142)
        at org.eclipse.xtend.core.typing.XtendTypeProvider.typeForIdentifiable(XtendTypeProvider.java:67)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$4.doComputation(AbstractTypeProvider.java:454)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$4.doComputation(AbstractTypeProvider.java:1)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get(AbstractTypeProvider.java:658)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get(AbstractTypeProvider.java:1)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$1.get(AbstractTypeProvider.java:159)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport.getType(AbstractTypeProvider.java:655)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.doGetType(AbstractTypeProvider.java:348)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getTypeForIdentifiable(AbstractTypeProvider.java:477)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider._type(XbaseTypeProvider.java:1146)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider._type(XbaseTypeProvider.java:1104)
        at org.eclipse.xtext.xbase.typing.XbaseTypeProvider.type(XbaseTypeProvider.java:151)
        at org.eclipse.xtext.xbase.annotations.typing.XbaseWithAnnotationsTypeProvider.type(XbaseWithAnnotationsTypeProvider.java:113)
        at org.eclipse.xtend.core.typing.XtendTypeProvider.type(XtendTypeProvider.java:82)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$2.doComputation(AbstractTypeProvider.java:292)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$2.doComputation(AbstractTypeProvider.java:1)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get(AbstractTypeProvider.java:658)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get(AbstractTypeProvider.java:1)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$1.get(AbstractTypeProvider.java:159)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport.getType(AbstractTypeProvider.java:655)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.doGetType(AbstractTypeProvider.java:348)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getType(AbstractTypeProvider.java:364)
        at org.eclipse.xtext.xbase.typing.AbstractTypeProvider.getType(AbstractTypeProvider.java:360)
        at org.eclipse.xtext.xbase.scoping.XbaseScopeProvider.createFeatureCallScopeForReceiver(XbaseScopeProvider.java:400)
        at org.eclipse.xtext.xbase.scoping.XbaseScopeProvider.createFeatureCallScope(XbaseScopeProvider.java:335)
        at org.eclipse.xtext.xbase.scoping.XbaseScopeProvider.getScope(XbaseScopeProvider.java:179)
        at org.eclipse.xtext.xbase.annotations.scoping.XbaseWithAnnotationsScopeProvider.getScope(XbaseWithAnnotationsScopeProvider.java:50)
        at org.eclipse.xtext.xbase.linking.XbaseLinkingScopeProvider.getScope(XbaseLinkingScopeProvider.java:42)
        at org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
        at org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLinkingService.java:119)
        at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:179)
        ... 19 more



/Vlad
Re: Error dialog in editor [message #909467 is a reply to message #909462] Fri, 07 September 2012 07:37 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Oh, I'm sorry, this was meant for the Xtend team. Fortunately, it's still the same guys Smile but I will repost it there.

/Vlad
Previous Topic:Howto load multiple concrete syntax instances
Next Topic:match comma separated IDs between double quotes
Goto Forum:
  


Current Time: Thu Feb 27 03:06:18 GMT 2020

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

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

Back to the top