java.lang.IllegalStateException: Import reference alongside class com.amx.rms.scheduling.model.ResourceProfile will trigger later failure: org.crsh.cli.Command declSourceStart=2 declEnd=-1

SpringSource Issue Tracker | Adam Harris | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    With STS 3.4.0 everything was fine, but when I updated today to STS 3.5.0, I get a compiler error. I am using Gradle 1.11 and Groovy 2.1. My project has both Java (src/main/java) and Groovy (src/main/groovy) and I have some CRaSH commands in src/main/resources that are Groovy scripts that get compiled at runtime. I've tried to revert my STS installation via "Installation History" but sadly that failed. I've also tried just a clean install of STS 3.5.0 and the Groovy-compiler and Gradle extensions with the same result. I tried installing the STS 3.4.0 from scratch again, but when I go to install the necessary extensions they just point to all the new 3.5.0 versions. So, I'm going to have to turn to a Time Machine backup to get my IDE back in working order. Here is the stacktrace from my IDE log: !ENTRY org.eclipse.jdt.ui 4 0 2014-04-03 16:00:23.219 !MESSAGE Error in JDT Core during AST creation !STACK 0 java.lang.IllegalStateException: Import reference alongside class com.amx.rms.scheduling.model.ResourceProfile will trigger later failure: org.crsh.cli.Command declSourceStart=2 declEnd=-1 at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createImports(GroovyCompilationUnitDeclaration.java:384) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:277) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:458) at org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60) at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:339) at org.eclipse.jdt.core.dom.CompilationUnitResolver.accept(CompilationUnitResolver.java:177) at org.eclipse.jdt.core.dom.CompilationUnitResolver.accept(CompilationUnitResolver.java:173) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:175) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:201) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:548) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:613) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.resolveSingleImport(CompilationUnitScope.java:830) at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3322) at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:3049) at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:50) at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:466) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:565) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveTypeArgument(TypeReference.java:583) at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveLeafType(ParameterizedSingleTypeReference.java:234) at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveType(ParameterizedSingleTypeReference.java:143) at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.resolveType(ParameterizedSingleTypeReference.java:359) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:543) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1300) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.java:1063) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1121) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:374) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:231) at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:804) at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:396) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1161) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:713) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1183) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:544) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:537) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:480) at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:170) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

    SpringSource Issue Tracker | 3 years ago | Adam Harris
    java.lang.IllegalStateException: Import reference alongside class com.amx.rms.scheduling.model.ResourceProfile will trigger later failure: org.crsh.cli.Command declSourceStart=2 declEnd=-1
  2. 0

    With STS 3.4.0 everything was fine, but when I updated today to STS 3.5.0, I get a compiler error. I am using Gradle 1.11 and Groovy 2.1. My project has both Java (src/main/java) and Groovy (src/main/groovy) and I have some CRaSH commands in src/main/resources that are Groovy scripts that get compiled at runtime. I've tried to revert my STS installation via "Installation History" but sadly that failed. I've also tried just a clean install of STS 3.5.0 and the Groovy-compiler and Gradle extensions with the same result. I tried installing the STS 3.4.0 from scratch again, but when I go to install the necessary extensions they just point to all the new 3.5.0 versions. So, I'm going to have to turn to a Time Machine backup to get my IDE back in working order. Here is the stacktrace from my IDE log: !ENTRY org.eclipse.jdt.ui 4 0 2014-04-03 16:00:23.219 !MESSAGE Error in JDT Core during AST creation !STACK 0 java.lang.IllegalStateException: Import reference alongside class com.amx.rms.scheduling.model.ResourceProfile will trigger later failure: org.crsh.cli.Command declSourceStart=2 declEnd=-1 at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createImports(GroovyCompilationUnitDeclaration.java:384) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:277) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:458) at org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60) at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:339) at org.eclipse.jdt.core.dom.CompilationUnitResolver.accept(CompilationUnitResolver.java:177) at org.eclipse.jdt.core.dom.CompilationUnitResolver.accept(CompilationUnitResolver.java:173) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:175) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:201) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:548) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:613) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.resolveSingleImport(CompilationUnitScope.java:830) at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3322) at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:3049) at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:50) at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:466) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:565) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveTypeArgument(TypeReference.java:583) at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveLeafType(ParameterizedSingleTypeReference.java:234) at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveType(ParameterizedSingleTypeReference.java:143) at org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.resolveType(ParameterizedSingleTypeReference.java:359) at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:543) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1300) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.java:1063) at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1121) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:374) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:231) at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:804) at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:396) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1161) at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:713) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1183) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:544) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:537) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:480) at org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:170) at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

    SpringSource Issue Tracker | 3 years ago | Adam Harris
    java.lang.IllegalStateException: Import reference alongside class com.amx.rms.scheduling.model.ResourceProfile will trigger later failure: org.crsh.cli.Command declSourceStart=2 declEnd=-1
  3. 0

    IWAV0073I *** RemoteVM Exception - Trace from Remote VM:

    Eclipse Bugzilla | 1 decade ago | iyers
    java.lang.IllegalStateException: End Subexpressions received out of order. at org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypeProxy.createThrowableBeanProxy(REMThrowableBeanTypeProxy.java:34) at org.eclipse.jem.internal.proxy.remote.REMThrowableBeanTypeProxy.newBeanProxy(REMThrowableBeanTypeProxy.java:65) at org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFactory.getBeanProxy(REMStandardBeanProxyFactory.java:459) at org.eclipse.jem.internal.proxy.remote.REMStandardBeanProxyFactory.processErrorReturn(REMStandardBeanProxyFactory.java:510) at org.eclipse.jem.internal.proxy.remote.REMExpression.pushInvoke(REMExpression.java:989) at org.eclipse.jem.internal.proxy.core.Expression.invokeExpression(Expression.java:685) at org.eclipse.ve.internal.java.core.CompositionProxyAdapter.initBeanProxy(CompositionProxyAdapter.java:311) at org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEditorPart$Setup.run(JavaVisualEditorPart.java:1968)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Import reference alongside class com.amx.rms.scheduling.model.ResourceProfile will trigger later failure: org.crsh.cli.Command declSourceStart=2 declEnd=-1

      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createImports()
    2. Groovy-Eclipse Batch Compiler
      MultiplexingCommentRecorderParser.dietParse
      1. org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createImports(GroovyCompilationUnitDeclaration.java:384)
      2. org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:277)
      3. org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:458)
      4. org.codehaus.jdt.groovy.integration.internal.MultiplexingCommentRecorderParser.dietParse(MultiplexingCommentRecorderParser.java:60)
      4 frames
    3. JDT Core
      ASTParser.createAST
      1. org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:339)
      2. org.eclipse.jdt.core.dom.CompilationUnitResolver.accept(CompilationUnitResolver.java:177)
      3. org.eclipse.jdt.core.dom.CompilationUnitResolver.accept(CompilationUnitResolver.java:173)
      4. org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:175)
      5. org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:201)
      6. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findImport(CompilationUnitScope.java:548)
      7. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.findSingleImport(CompilationUnitScope.java:613)
      8. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.resolveSingleImport(CompilationUnitScope.java:830)
      9. org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3322)
      10. org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:3049)
      11. org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:50)
      12. org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:466)
      13. org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:565)
      14. org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveTypeArgument(TypeReference.java:583)
      15. org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveLeafType(ParameterizedSingleTypeReference.java:234)
      16. org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveType(ParameterizedSingleTypeReference.java:143)
      17. org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.resolveType(ParameterizedSingleTypeReference.java:359)
      18. org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:543)
      19. org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1300)
      20. org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.java:1063)
      21. org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1121)
      22. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:374)
      23. org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:231)
      24. org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:804)
      25. org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:396)
      26. org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1161)
      27. org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:713)
      28. org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1183)
      29. org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809)
      29 frames
    4. Java Development Tools UI
      ASTProvider$1.run
      1. org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:544)
      1 frame
    5. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    6. Java Development Tools UI
      SelectionListenerWithASTManager$PartListenerGroup$3.run
      1. org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:537)
      2. org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:480)
      3. org.eclipse.jdt.ui.SharedASTProvider.getAST(SharedASTProvider.java:128)
      4. org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:170)
      5. org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155)
      5 frames
    7. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      1 frame