Skip to content

NullPointerException at JDTAnnotationNode.java:176 with Eclipse Neon (e4.6) #323

@vio-f

Description

@vio-f

Whenever I open a large Groovy Project in Eclipse, with a lot of groovy files, it throws the following exception:
!ENTRY org.eclipse.core.resources 4 2 2017-07-31 11:06:35.428 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources". !STACK 0 java.lang.NullPointerException at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:176) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.createExpressionFor(JDTAnnotationNode.java:168) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.ensureMembersInitialized(JDTAnnotationNode.java:153) at org.codehaus.jdt.groovy.internal.compiler.ast.JDTAnnotationNode.getMember(JDTAnnotationNode.java:70) at org.codehaus.groovy.vmplugin.v5.Java5.configureAnnotationFromDefinition(Java5.java:246) at org.codehaus.groovy.vmplugin.v5.Java5.configureAnnotation(Java5.java:266) at org.codehaus.groovy.classgen.AnnotationVisitor.visit(AnnotationVisitor.java:81) at org.codehaus.groovy.classgen.ExtendedVerifier.visitAnnotation(ExtendedVerifier.java:240) at org.codehaus.groovy.classgen.ExtendedVerifier.visitAnnotations(ExtendedVerifier.java:127) at org.codehaus.groovy.classgen.ExtendedVerifier.visitConstructorOrMethod(ExtendedVerifier.java:91) at org.codehaus.groovy.classgen.ExtendedVerifier.visitMethod(ExtendedVerifier.java:84) at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1186) at org.codehaus.groovy.classgen.ExtendedVerifier.visitClass(ExtendedVerifier.java:72) at org.codehaus.groovy.control.CompilationUnit$6.call(CompilationUnit.java:789) at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1099) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:588) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:217) at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.generateCode(GroovyCompilationUnitDeclaration.java:321) at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:891) at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:141) at java.lang.Thread.run(Thread.java:745)

Eclipse:

  • Eclipse IDE for Java Developers
  • Version: Neon.3 Release (4.6.3)
  • Build id: 20170314-1500
  • Java: jdk1.8.0_112

groovy-eclipse

  • Groovy Compiler 2.x
  • Groovy-Eclipse Compilerless 2.9.2.xx-201707291445-e46
  • JDT Core patch for Groovy-Eclipse plugin on Eclipse 4.6 2.9.2.xx-201707291445-e46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions