java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GFv3 b28 promoted + Grails 10/2/08 1.0.3-1.2 from Update Center Based on Readme-GlassFish.html, in grails/samples/BookLibrary % grails shared-war % asadmin deploy --libraries $GRAILS_HOME/lib/glassfish-grails.jar BookLibrary-0.1.war access app in http://localhost:8080/BookLibrary-1.0/ % asadmin undeploy BookLibrary-0.1 It is OK to deploy, access app and undeploy. The error is observed in server.log during undeployment about IllegalStateException: No WebApplicationContext found. [#|2008-10-06T11:40:23.355-0700|SEVERE|sun-glassfish10.0|javax.enterprise.system.container.web|_ThreadID=15;_ThreadName=Thread-3;|WebModule[/BookLibrary-0.1]PWC1277: Exception sending context destroyed event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70) at org.codehaus.groovy.grails.web.context.GrailsContextLoader.closeWebApplicationContext(GrailsContextLoader.java:91) at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:70) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4686) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5491) at com.sun.enterprise.web.WebModule.stop(WebModule.java:485) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1052) at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2435) at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2370) at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:129) at com.sun.enterprise.v3.server.ApplicationLifecycle.stop(ApplicationLifecycle.java:613) at com.sun.enterprise.v3.server.ApplicationLifecycle.stop(ApplicationLifecycle.java:587) at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:765) at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:779) at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:133) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:99) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:249) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:175) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:625) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:562) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:819) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#]
    via by sherryshen,
    • java.lang.NullPointerException at org.hsqldb.lib.HsqlTimer.nextTask(Unknown Source) at org.hsqldb.lib.HsqlTimer$TaskRunner.run(Unknown Source) at java.lang.Thread.run(Thread.java:595)
    No Bugmate found.