Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3488

NullPointerException Parser.buildInitialRecoveryState(Parser.java:935) and JDTClassNodeBuilder.configureType(JDTClassNodeBuilder.java:80)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.0.RELEASE
    • Fix Version/s: None
    • Component/s: GRAILS
    • Labels:
      None

      Description

      I'm fairly certain these two issues are related due to the fact that the timestamps are so close together. Please feel free to split into multiple issues if that is not the case. I had this happen when working on WebSecurityConfigurerAdapterTests

      !ENTRY org.eclipse.jdt.core 4 4 2013-07-22 15:26:21.108
      !MESSAGE Error in inferencing engine for WebSecurityConfigurerAdapterTests.groovy
      !STACK 0
      java.lang.NullPointerException
      	at org.eclipse.jdt.internal.compiler.parser.Parser.buildInitialRecoveryState(Parser.java:935)
      	at org.eclipse.jdt.internal.compiler.parser.Parser.resumeOnSyntaxError(Parser.java:10872)
      	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9593)
      	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9915)
      	at org.eclipse.jdt.internal.compiler.parser.Parser.parse(Parser.java:9872)
      	at org.eclipse.jdt.internal.compiler.parser.Parser.dietParse(Parser.java:8435)
      	at org.codehaus.jdt.groovy.integration.internal.MultiplexingSourceElementRequestorParser.dietParse(MultiplexingSourceElementRequestorParser.java:94)
      	at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:338)
      	at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:155)
      	at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.java:141)
      	at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.isViewedAsDeprecated(PackageBinding.java:225)
      	at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.isViewedAsDeprecated(ReferenceBinding.java:1330)
      	at org.eclipse.jdt.internal.compiler.ast.ASTNode.isTypeUseDeprecated(ASTNode.java:512)
      	at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:155)
      	at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:214)
      	at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1556)
      	at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1212)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeMembers(JDTClassNode.java:248)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initialize(JDTClassNode.java:227)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.lazyClassInit(JDTClassNode.java:158)
      	at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:1104)
      	at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:1096)
      	at org.codehaus.groovy.ast.ClassNode.getSuperClass(ClassNode.java:1090)
      	at org.codehaus.groovy.ast.ClassNode.isDerivedFrom(ClassNode.java:1030)
      	at org.codehaus.groovy.ast.ClassNode.isScript(ClassNode.java:1246)
      	at org.codehaus.groovy.eclipse.core.search.FindAllReferencesRequestor.acceptASTNode(FindAllReferencesRequestor.java:81)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.notifyRequestor(TypeInferencingVisitorWithRequestor.java:2029)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitClassReference(TypeInferencingVisitorWithRequestor.java:734)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitImports(TypeInferencingVisitorWithRequestor.java:880)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitCompilationUnit(TypeInferencingVisitorWithRequestor.java:326)
      	at org.codehaus.groovy.eclipse.search.GroovyOccurrencesFinder.internalFindOccurences(GroovyOccurrencesFinder.java:179)
      	at org.codehaus.groovy.eclipse.search.GroovyOccurrencesFinder.getOccurrences(GroovyOccurrencesFinder.java:103)
      	at org.codehaus.groovy.eclipse.editor.GroovyEditor.updateOccurrenceAnnotations(GroovyEditor.java:1262)
      	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$6.selectionChanged(JavaEditor.java:3380)
      	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:178)
      	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
       
      !ENTRY org.eclipse.jdt.core 4 4 2013-07-22 15:26:22.484
      !MESSAGE Error in inferencing engine for WebSecurityConfigurerAdapterTests.groovy
      !STACK 0
      java.lang.NullPointerException
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNodeBuilder.configureType(JDTClassNodeBuilder.java:80)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.createJDTClassNode(JDTResolver.java:475)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.convertToClassNode(JDTResolver.java:454)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.methodBindingToMethodNode(JDTClassNode.java:336)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initializeMembers(JDTClassNode.java:256)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.initialize(JDTClassNode.java:227)
      	at org.codehaus.jdt.groovy.internal.compiler.ast.JDTClassNode.lazyClassInit(JDTClassNode.java:158)
      	at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:1104)
      	at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:1096)
      	at org.codehaus.groovy.ast.ClassNode.getSuperClass(ClassNode.java:1090)
      	at org.codehaus.groovy.ast.ClassNode.isDerivedFrom(ClassNode.java:1030)
      	at org.codehaus.groovy.ast.ClassNode.isScript(ClassNode.java:1246)
      	at org.codehaus.groovy.eclipse.core.search.FindAllReferencesRequestor.acceptASTNode(FindAllReferencesRequestor.java:81)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.notifyRequestor(TypeInferencingVisitorWithRequestor.java:2029)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitClassReference(TypeInferencingVisitorWithRequestor.java:734)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitImports(TypeInferencingVisitorWithRequestor.java:880)
      	at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitCompilationUnit(TypeInferencingVisitorWithRequestor.java:326)
      	at org.codehaus.groovy.eclipse.search.GroovyOccurrencesFinder.internalFindOccurences(GroovyOccurrencesFinder.java:179)
      	at org.codehaus.groovy.eclipse.search.GroovyOccurrencesFinder.getOccurrences(GroovyOccurrencesFinder.java:103)
      	at org.codehaus.groovy.eclipse.editor.GroovyEditor.updateOccurrenceAnnotations(GroovyEditor.java:1262)
      	at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor$6.selectionChanged(JavaEditor.java:3380)
      	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:178)
      	at org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup$3.run(SelectionListenerWithASTManager.java:155)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

        Activity

        Hide
        mlippert Martin Lippert added a comment -

        I added GRAILS as a component due to the fact that Groovy-Eclipse is showing up in the stack trace. Looks like the Groovy-Eclipse-JDT-combination is causing an issue.

        Show
        mlippert Martin Lippert added a comment - I added GRAILS as a component due to the fact that Groovy-Eclipse is showing up in the stack trace. Looks like the Groovy-Eclipse-JDT-combination is causing an issue.
        Hide
        mlippert Martin Lippert added a comment -

        We no longer work on the Grails integration for Eclipse, therefore I am closing all the remaining open issues here.
        The code of the project is still available as open-source at GitHub: https://github.com/spring-projects/grails-ide

        Show
        mlippert Martin Lippert added a comment - We no longer work on the Grails integration for Eclipse, therefore I am closing all the remaining open issues here. The code of the project is still available as open-source at GitHub: https://github.com/spring-projects/grails-ide

          People

          • Assignee:
            Unassigned
            Reporter:
            rwinch Rob Winch
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: