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

NullPointerException when building workspace in Grails project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0.M2
    • Fix Version/s: 2.7.0.RC1
    • Component/s: GRAILS
    • Environment:

      Description

      Each time I rebuild any Grails project in STS, I get a popup saying:

      'Building workspace' has encountered a problem.
      Errors occurred during the guild.

      Details:
      Errors occurred during the build.
      Errors running builder 'Java Builder' on project 'Jespa'.
      java.lang.NullPointerException

      From the Eclipse Error Log I get this as the cause:

      Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".

      java.lang.NullPointerException
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeReferenceForClassNode(GroovyCompilationUnitDeclaration.java:1351)
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.configureSuperInterfaces(GroovyCompilationUnitDeclaration.java:1150)
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.createTypeDeclarations(GroovyCompilationUnitDeclaration.java:673)
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.populateCompilationUnitDeclaration(GroovyCompilationUnitDeclaration.java:253)
      at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyParser.dietParse(GroovyParser.java:434)
      at org.codehaus.jdt.groovy.integration.internal.MultiplexingParser.dietParse(MultiplexingParser.java:44)
      at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:769)
      at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:389)
      at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:475)
      at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:408)
      at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:182)
      at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:345)
      at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:61)
      at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:257)
      at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:176)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

        Attachments

          Activity

            People

            Assignee:
            aclement Andy Clement
            Reporter:
            ericwerk Eric Werk
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: