Details
Description
NullPointerExceptions are encountered when trying to run functional tests with the Jetty plugin.
-
Hide
- grails6942-bug-report-13122010.zip
- 13/Dec/10 7:13 AM
- 19 kB
- Russell Wilson
-
- grails-app/conf/BootStrap.groovy 0.1 kB
- grails-app/conf/BuildConfig.groovy 1 kB
- grails-app/conf/Config.groovy 4 kB
- grails-app/conf/DataSource.groovy 0.8 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/i18n/messages.properties 3 kB
- grails-app/i18n/messages_da.properties 3 kB
- grails-app/i18n/messages_de.properties 4 kB
- grails-app/i18n/messages_es.properties 3 kB
- grails-app/i18n/messages_fr.properties 2 kB
- grails-app/i18n/messages_it.properties 2 kB
- grails-app/i18n/messages_ja.properties 2 kB
- grails-app/i18n/messages_nl.properties 3 kB
- grails-app/.../messages_pt_BR.properties 3 kB
- grails-app/.../messages_pt_PT.properties 3 kB
- grails-app/i18n/messages_ru.properties 4 kB
- grails-app/i18n/messages_th.properties 5 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/views/error.gsp 2 kB
- grails-app/views/index.gsp 4 kB
- grails-app/views/layouts/main.gsp 0.7 kB
- application.properties 0.2 kB
Issue Links
- relates to
-
GRAILS-7033
Add end-to-end tests for functionally testing using the jetty plugin
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Running grails test-app against the bug report will throw a NullPointerException
I've converted this issue to cover the fact that it doesn't work, and created a new issue for the creation of tests.
Luke, Graeme,
in Grails 1.3.6., I still encounter this problem.
I have a suite of tests on functional-test-1.2.7 and just switched from tomcat to jetty-1.2-SNAPSHOT (to better mirror my production environent).
Running grails test-app yields an exception identical to the one in GEB-9.
Funny enought, the same happens when I run grails test-app functional, but this time the tests are reported as passed.
java.lang.NullPointerException
at org.grails.jetty.JettyServer.stop(JettyServer.groovy:140)
at grails.web.container.EmbeddableServer$stop.call(Unknown Source)
at _GrailsRun_groovy$_run_closure10.doCall(_GrailsRun_groovy:307)
at _GrailsTest_groovy$_run_closure12.doCall(_GrailsTest_groovy:380)
at _GrailsTest_groovy$_run_closure12.doCall(_GrailsTest_groovy)
at _GrailsTest_groovy$_run_closure1_closure21.doCall(_GrailsTest_groovy:
190)
at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:174)
at TestApp$_run_closure1.doCall(TestApp.groovy:82)
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)
Could somebody with access please set the version on this to 1.3.5 - We had hoped the fix would get into 1.3.6 but it doesn't look like it will - this bug makes it impossible to run things like GEB.