ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Controller ehancement seems to be broken - big stacktrace during compilation #318

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use groovypp plugin on project with Searchable 0.5.5.1 plugin installed

What is the expected output? What do you see instead?

  [groovyc] Compiling 136 source files to /Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugin-classes
... done
Error executing script Compile: : BUG! exception in phase 'conversion' in 
source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
: BUG! exception in phase 'conversion' in source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:590)
    at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: : BUG! exception in phase 'conversion' in source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy:117)
    at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
    at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
    at _GrailsCompile_groovy$_run_closure4.doCall(_GrailsCompile_groovy:104)
    at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:69)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    ... 10 more
Caused by: BUG! exception in phase 'conversion' in source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:818)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511)
    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:448)
    at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57)
    at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170)
    at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:895)
    at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:605)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    ... 17 more
Caused by: java.lang.NullPointerException
    at org.mbte.grails.compiler.ControllerLanguage.improveControllerInheritance(ControllerLanguage.groovy:45)
    at org.mbte.grails.compiler.ControllerLanguage.apply(ControllerLanguage.groovy:35)
    at org.mbte.groovypp.compiler.languages.LanguageASTTransform$Conversion.visit(LanguageASTTransform.groovy:41)
    at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:302)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:814)
    ... 27 more
--- Nested Exception ---
: BUG! exception in phase 'conversion' in source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy:117)
    at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
    at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
    at _GrailsCompile_groovy$_run_closure4.doCall(_GrailsCompile_groovy:104)
    at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:69)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:590)
    at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: BUG! exception in phase 'conversion' in source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:818)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511)
    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:448)
    at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57)
    at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170)
    at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:895)
    at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:605)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    ... 17 more
Caused by: java.lang.NullPointerException
    at org.mbte.grails.compiler.ControllerLanguage.improveControllerInheritance(ControllerLanguage.groovy:45)
    at org.mbte.grails.compiler.ControllerLanguage.apply(ControllerLanguage.groovy:35)
    at org.mbte.groovypp.compiler.languages.LanguageASTTransform$Conversion.visit(LanguageASTTransform.groovy:41)
    at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:302)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:814)
    ... 27 more
--- Nested Exception ---
BUG! exception in phase 'conversion' in source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:818)
    at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511)
    at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)
    at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:448)
    at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:57)
    at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:170)
    at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:895)
    at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:605)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy:117)
    at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy)
    at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
    at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
    at _GrailsCompile_groovy$_run_closure4.doCall(_GrailsCompile_groovy:104)
    at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:69)
    at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
    at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
    at gant.Gant.withBuildListeners(Gant.groovy:427)
    at gant.Gant.this$2$withBuildListeners(Gant.groovy)
    at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
    at gant.Gant.dispatch(Gant.groovy:415)
    at gant.Gant.this$2$dispatch(Gant.groovy)
    at gant.Gant.invokeMethod(Gant.groovy)
    at gant.Gant.executeTargets(Gant.groovy:590)
    at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: java.lang.NullPointerException
    at org.mbte.grails.compiler.ControllerLanguage.improveControllerInheritance(ControllerLanguage.groovy:45)
    at org.mbte.grails.compiler.ControllerLanguage.apply(ControllerLanguage.groovy:35)
    at org.mbte.groovypp.compiler.languages.LanguageASTTransform$Conversion.visit(LanguageASTTransform.groovy:41)
    at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:302)
    at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:814)
    ... 27 more
Error executing script Compile: : BUG! exception in phase 'conversion' in 
source unit 
'/Users/pledbrook/dev/tools/git/grails-samples/grailstwitter/target/plugins/sear
chable-0.5.5.1/grails-app/controllers/SearchableController.groovy' null

What version of the product are you using? On what operating system?

0.4.92 - Mac OS X 10.6.5

Original issue reported on code.google.com by p.ledbr...@gmail.com on 25 Nov 2010 at 9:31

GoogleCodeExporter commented 8 years ago
Is it true that SearchableController has no package declaration?

Original comment by alex.tka...@gmail.com on 25 Nov 2010 at 9:39

GoogleCodeExporter commented 8 years ago
Correct, SearchableController is not in a package. It's quite an old plugin and 
the controller would have been created when we weren't messing around with 
packages.

Original comment by p.ledbr...@gmail.com on 25 Nov 2010 at 10:03

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 25 Nov 2010 at 10:13