Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1399

NPE in eclipse-plugin: no .class file generated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 1.0-JSR-5
    • 1.0-RC-1
    • None
    • None
    • Eclipse 3.2 plugin 1.0.0

    Description

      I have deleted .class files generated from groovy script and now no more class file are generated.

      I'm getting eclipse error when I clean my projet:

      java.lang.NullPointerException
      at org.codehaus.groovy.eclipse.model.AddErrorMarker.run(AddErrorMarker.java:217)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1721)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1741)
      at org.codehaus.groovy.eclipse.model.GroovyProject.handleCompilationError(GroovyProject.java:481)
      at org.codehaus.groovy.eclipse.model.GroovyProject.compileGroovyFiles(GroovyProject.java:303)
      at org.codehaus.groovy.eclipse.model.GroovyProject.buildGroovyContent(GroovyProject.java:186)
      at org.codehaus.groovy.eclipse.model.GroovyProject.buildGroovyContent(GroovyProject.java:143)
      at org.codehaus.groovy.eclipse.model.GroovyModel.buildGroovyContent(GroovyModel.java:91)
      at org.codehaus.groovy.eclipse.builder.GroovyBuilder.build(GroovyBuilder.java:60)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:593)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
      at org.eclipse.core.runtime.Platform.run(Platform.java:783)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:168)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:202)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:231)
      at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
      at org.eclipse.core.runtime.Platform.run(Platform.java:783)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:234)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:253)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:282)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:200)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

      My project file :

      <?xml version="1.0" encoding="UTF-8"?>
      <projectDescription>
      <name>TESTDMAS</name>
      <comment></comment>
      <projects>
      </projects>
      <buildSpec>
      <buildCommand>
      <name>org.eclipse.jdt.core.javabuilder</name>
      <arguments>
      </arguments>
      </buildCommand>
      <buildCommand>
      <name>org.codehaus.groovy.eclipse.groovyBuilder</name>
      <arguments>
      </arguments>
      </buildCommand>
      </buildSpec>
      <natures>
      <nature>org.eclipse.jdt.core.javanature</nature>
      <nature>org.codehaus.groovy.eclipse.groovyNature</nature>
      </natures>
      </projectDescription>

      Attachments

        Activity

          People

            jshickey Scott Hickey
            marc_dexet_dsi Marc DeXeT
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: