java.lang.IllegalArgumentException

SpringSource Issue Tracker | Adam Harris | 2 years ago
  1. 0

    Creation of a new Groovy Class (can be a Script type too) fails in STS 3.6.0 when the Groovy+Gradle project has "crash.shell" as a dependency. Once the error dialog is dismissed, the Groovy Class exists in the workspace, but you cannot right-click and choose "Run As". There is no popup menu. If you remove "crash.shell" as a dependency from the build.gradle file, and Refresh Dependencies on the project from the Gradle menu, the ability to "Run As" returns. Here is the stack trace from the STS log file: Root exception: java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2845) at org.eclipse.jdt.core.dom.ASTConverter.convertImport(ASTConverter.java:3151) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1430) at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:295) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1209) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809) at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createASTForImports(NewTypeWizardPage.java:2251) at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:2117) at org.codehaus.groovy.eclipse.wizards.NewClassWizardPage.createType(NewClassWizardPage.java:164) at org.codehaus.groovy.eclipse.wizards.NewClassWizard.finishPage(NewClassWizard.java:64) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:118) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5358) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

    SpringSource Issue Tracker | 2 years ago | Adam Harris
    java.lang.IllegalArgumentException
  2. 0

    Creation of a new Groovy Class (can be a Script type too) fails in STS 3.6.0 when the Groovy+Gradle project has "crash.shell" as a dependency. Once the error dialog is dismissed, the Groovy Class exists in the workspace, but you cannot right-click and choose "Run As". There is no popup menu. If you remove "crash.shell" as a dependency from the build.gradle file, and Refresh Dependencies on the project from the Gradle menu, the ability to "Run As" returns. Here is the stack trace from the STS log file: Root exception: java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2845) at org.eclipse.jdt.core.dom.ASTConverter.convertImport(ASTConverter.java:3151) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1430) at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:295) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1209) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809) at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createASTForImports(NewTypeWizardPage.java:2251) at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:2117) at org.codehaus.groovy.eclipse.wizards.NewClassWizardPage.createType(NewClassWizardPage.java:164) at org.codehaus.groovy.eclipse.wizards.NewClassWizard.finishPage(NewClassWizard.java:64) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:118) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5358) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

    SpringSource Issue Tracker | 2 years ago | Adam Harris
    java.lang.IllegalArgumentException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error in eclipse : "AST must not be null"

    Google Groups | 5 years ago | Alex
    java.lang.IllegalArgumentException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No message provided

      at org.eclipse.jdt.core.dom.ASTNode.setSourceRange()
    2. JDT Core
      ASTParser.createAST
      1. org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2845)
      2. org.eclipse.jdt.core.dom.ASTConverter.convertImport(ASTConverter.java:3151)
      3. org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1430)
      4. org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:295)
      5. org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1209)
      6. org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809)
      6 frames
    3. Java Development Tools UI
      NewTypeWizardPage.createType
      1. org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createASTForImports(NewTypeWizardPage.java:2251)
      2. org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:2117)
      2 frames
    4. org.codehaus.groovy
      NewClassWizard.finishPage
      1. org.codehaus.groovy.eclipse.wizards.NewClassWizardPage.createType(NewClassWizardPage.java:164)
      2. org.codehaus.groovy.eclipse.wizards.NewClassWizard.finishPage(NewClassWizard.java:64)
      2 frames
    5. Java Development Tools UI
      NewElementWizard$2.run
      1. org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:118)
      1 frame
    6. JDT Core
      JavaModelOperation.run
      1. org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
      2. org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:729)
      2 frames
    7. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
      1 frame
    8. JDT Core
      JavaCore.run
      1. org.eclipse.jdt.core.JavaCore.run(JavaCore.java:5358)
      1 frame
    9. Java Development Tools UI
      WorkbenchRunnableAdapter.run
      1. org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
      1 frame
    10. JFace
      ModalContext$ModalContextThread.run
      1. org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
      1 frame