Bug 465642 - IAE in ASTNode.setSourceRange (2845)
Summary: IAE in ASTNode.setSourceRange (2845)
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Errors (show other bugs)
Version: 2.8.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2015-04-28 03:09 EDT by EPP Error Reports CLA
Modified: 2017-10-11 09:02 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2015-04-28 03:09:25 EDT
The following incident was reported via the automated error reporting:


    code:                   4
    plugin:                 org.eclipse.jdt.core_3.11.0.v20150416-1354
    message:                source file contents removed
    fingerprint:            ce86d2b7
    exception class:        java.lang.IllegalArgumentException
    exception message:      -
    number of children:     0
    
    java.lang.IllegalArgumentException: null
    at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2845)
    at org.eclipse.jdt.core.dom.ASTConverter.convertType(ASTConverter.java:3613)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:921)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:550)
    at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:195)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2958)
    at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1374)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:896)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:586)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:802)
    at org.eclipse.jdt.core.dom.ASTParser.createBindings(ASTParser.java:1057)
    at org.eclipse.xtext.common.types.access.jdt.JdtBasedTypeFactory.resolveBindings(JdtBasedTypeFactory.java:480)
    at org.eclipse.xtext.common.types.access.jdt.JdtBasedTypeFactory.createType(JdtBasedTypeFactory.java:394)
    at org.eclipse.xtext.common.types.access.jdt.JdtBasedTypeFactory.createType(JdtBasedTypeFactory.java:506)
    at org.eclipse.xtext.common.types.access.jdt.JdtBasedTypeFactory.createType(JdtBasedTypeFactory.java:1)
    at org.eclipse.xtext.common.types.access.jdt.JdtTypeMirror.initialize(JdtTypeMirror.java:67)
    at org.eclipse.xtext.common.types.access.TypeResource.doLoad(TypeResource.java:129)
    at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1518)
    at org.eclipse.xtext.common.types.access.TypeResource.load(TypeResource.java:115)
    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.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:261)
    at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:24)
    at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:220)
    at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199)
    at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:259)
    at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1473)
    at org.eclipse.xtext.xtype.impl.XImportDeclarationImpl.getImportedType(XImportDeclarationImpl.java:253)
    at org.eclipse.xtext.xtype.impl.XImportDeclarationImpl.eGet(XImportDeclarationImpl.java:373)
    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.EcoreUtil2.getAllReferencedObjects(EcoreUtil2.java:443)
    at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.computeReferencedJvmTypeHighlighting(XbaseHighlightingCalculator.java:137)
    at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.highlightElement(XbaseHighlightingCalculator.java:128)
    at org.eclipse.xtend.ide.highlighting.XtendHighlightingCalculator.highlightElement(XtendHighlightingCalculator.java:162)
    at org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultSemanticHighlightingCalculator.highlightElementRecursively(DefaultSemanticHighlightingCalculator.java:83)
    at org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultSemanticHighlightingCalculator.searchAndHighlightElements(DefaultSemanticHighlightingCalculator.java:76)
    at org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultSemanticHighlightingCalculator.doProvideHighlightingFor(DefaultSemanticHighlightingCalculator.java:67)
    at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.doProvideHighlightingFor(XbaseHighlightingCalculator.java:111)
    at org.eclipse.xtend.ide.highlighting.XtendHighlightingCalculator.doProvideHighlightingFor(XtendHighlightingCalculator.java:120)
    at org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator.provideHighlightingFor(XbaseHighlightingCalculator.java:101)
    at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(MergingHighlightedPositionAcceptor.java:53)
    at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(HighlightingReconciler.java:142)
    at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(HighlightingReconciler.java:385)
    at org.eclipse.xtext.ui.editor.model.XtextDocument.notifyModelListeners(XtextDocument.java:215)
    at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:444)
    at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:162)
    at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport$UpdateEditorStateJob.unloadAffectedResourcesAndReparseDocument(DirtyStateEditorSupport.java:186)
    at org.eclipse.xtext.ui.editor.DirtyStateEditorSupport$UpdateEditorStateJob.run(DirtyStateEditorSupport.java:164)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
   
  

General Information:

    reported-by:      Adolfo SBH
    anonymous-id:     ee6a7cf4-6277-45ce-b349-ac81306b3e3f
    eclipse-build-id: 4.5.0.I20150320-0800
    eclipse-product:  org.eclipse.epp.package.committers.product
    operating system: Windows7 6.1.0 (x86_64) - win32
    jre-version:      1.7.0_45-b18

The following plug-ins were present on the execution stack (*):
    1. org.eclipse.core.jobs_3.7.0.v20150316-1238
    2. org.eclipse.emf.ecore_2.11.0.v20150318-0449
    3. org.eclipse.emf_2.6.0.v20150323-0420
    4. org.eclipse.jdt.core_3.11.0.v20150416-1354
    5. org.eclipse.jdt_3.11.0.v20150421-0800
    6. org.eclipse.xtend.ide_2.8.2.v201504100559
    7. org.eclipse.xtend_2.1.0.v201503240650
    8. org.eclipse.xtext_2.8.2.v201504100559
    9. org.eclipse.xtext.common.types_2.8.2.v201504100559
    10. org.eclipse.xtext.ui_2.8.2.v201504100559
    11. org.eclipse.xtext.xbase.ui_2.8.2.v201504100559
    12. org.eclipse.xtext.xbase_2.8.2.v201504100559

Please note that:
* Messages, stacktraces, and nested status objects may be shortened.
* Bug fields like status, resolution, and whiteboard are sent
  back to reporters.
* The list of present bundles and their respective versions was
  calculated by package naming heuristics. This may or may not reflect reality.

Other Resources:
* Report: https://dev.eclipse.org/recommenders/committers/confess/#/problems/553e2d55e4b09f63fdc875bd  
* Manual: https://dev.eclipse.org/recommenders/community/confess/#/guide


Thank you for your assistance.
Your friendly error-reports-inbox.
Comment 1 Sebastian Zarnekow CLA 2015-04-28 03:10:17 EDT
We should try to make sure that the IAE from ASTNode.setSourceRange is not logged
Comment 4 Marcel Bruch CLA 2015-04-28 03:41:05 EDT
We experience the same issue but I don't know how to reproduce this. If we have an example, we might be able to ask JDT committers for help.
Comment 5 Sebastian Zarnekow CLA 2015-04-29 04:03:29 EDT
Probably related to bug 461363
We should print the file name to the log and ideally also the text if it can be obtained somehow without throwing an IAE
Comment 6 Eclipse Genie CLA 2017-09-06 05:54:41 EDT
GitHub Pull Request 351 created by [kthoms]
https://github.com/eclipse/xtext-eclipse/pull/351
Comment 7 Karsten Thoms CLA 2017-09-06 09:55:22 EDT
PR merged. It will provide a more detailed error message on the type resource for which the IAE is raised.

Leaving this error open, we might get more insights after next release on this topic.