生成页面时出错:

java.lang.NullPointerException
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2066)
	at PageScript_1062177.render_content(PageScript_1062177:55)
	at PageScript_1062177._render(PageScript_1062177:70)
	at com.synwork.web.app.service.page.render.PageScript.run(PageScript.groovy:698)
	at com.synwork.web.app.service.page.render.PageRenderer$_renderHtml_closure3.doCall(PageRenderer.groovy:66)
	at com.synwork.web.app.service.page.render.PageRenderer$_renderHtml_closure3.call(PageRenderer.groovy)
	at com.synwork.web.app.service.page.render.PageRenderer.withWriter(PageRenderer.groovy:81)
	at com.synwork.web.app.service.page.render.PageRenderer.renderHtml(PageRenderer.groovy:51)
	at com.synwork.web.app.service.page.render.PageRenderer.render(PageRenderer.groovy:122)
	at com.synwork.web.app.service.page.render.PageRenderer.access$0(PageRenderer.groovy)
	at com.synwork.web.app.service.page.render.PageRenderer$_makeContent_closure5.doCall(PageRenderer.groovy:183)
	at com.synwork.web.app.service.page.render.PageRenderer$_makeContent_closure5.call(PageRenderer.groovy)
	at com.synwork.web.internal.security.SynSecurityManager.runWithScriptContext(SynSecurityManager.groovy:68)
	at com.synwork.web.app.service.page.render.PageRenderer.makeContent(PageRenderer.groovy:182)
	at com.synwork.web.app.service.page.PageContext.doIncludePage(PageContext.groovy:397)
	at com.synwork.web.app.service.page.PageContext.includePageResource(PageContext.groovy:272)
	at com.synwork.web.app.service.page.render.PageScript.includePageResource(PageScript.groovy:179)
	at com.synwork.web.app.service.page.render.PageScript.includePageResource(PageScript.groovy)
	at PageScript_1062283._render(PageScript_1062283:17)
	at com.synwork.web.app.service.page.render.PageScript.run(PageScript.groovy:698)
	at com.synwork.web.app.service.page.render.PageRenderer$_renderHtml_closure3.doCall(PageRenderer.groovy:66)
	at com.synwork.web.app.service.page.render.PageRenderer$_renderHtml_closure3.call(PageRenderer.groovy)
	at com.synwork.web.app.service.page.render.PageRenderer.withWriter(PageRenderer.groovy:81)
	at com.synwork.web.app.service.page.render.PageRenderer.renderHtml(PageRenderer.groovy:51)
	at com.synwork.web.app.service.page.render.PageRenderer.render(PageRenderer.groovy:122)
	at com.synwork.web.app.service.page.render.PageRenderer.access$0(PageRenderer.groovy)
	at com.synwork.web.app.service.page.render.PageRenderer$_makeContent_closure5.doCall(PageRenderer.groovy:183)
	at com.synwork.web.app.service.page.render.PageRenderer$_makeContent_closure5.call(PageRenderer.groovy)
	at com.synwork.web.internal.security.SynSecurityManager.runWithScriptContext(SynSecurityManager.groovy:68)
	at com.synwork.web.app.service.page.render.PageRenderer.makeContent(PageRenderer.groovy:182)
	at com.synwork.web.app.service.page.PageContext.doIncludePage(PageContext.groovy:397)
	at com.synwork.web.app.service.page.PageContext.includePage(PageContext.groovy:264)
	at com.synwork.web.app.service.page.render.PageScript.includePage(PageScript.groovy:166)
	at com.synwork.web.app.service.page.render.tag.TagRenderer.include(TagRenderer.groovy:133)
	at PageScript_1002492._render(PageScript_1002492:8)
	at com.synwork.web.app.service.page.render.PageScript.run(PageScript.groovy:698)
	at com.synwork.web.app.service.page.render.PageRenderer$_renderHtml_closure3.doCall(PageRenderer.groovy:66)
	at com.synwork.web.app.service.page.render.PageRenderer$_renderHtml_closure3.call(PageRenderer.groovy)
	at com.synwork.web.app.service.page.render.PageRenderer.withWriter(PageRenderer.groovy:81)
	at com.synwork.web.app.service.page.render.PageRenderer.renderHtml(PageRenderer.groovy:51)
	at com.synwork.web.app.service.page.render.PageRenderer.render(PageRenderer.groovy:122)
	at com.synwork.web.app.service.page.render.PageRenderer.access$0(PageRenderer.groovy)
	at com.synwork.web.app.service.page.render.PageRenderer$_makeContent_closure5.doCall(PageRenderer.groovy:183)
	at com.synwork.web.app.service.page.render.PageRenderer$_makeContent_closure5.call(PageRenderer.groovy)
	at com.synwork.web.internal.security.SynSecurityManager.runWithScriptContext(SynSecurityManager.groovy:73)
	at com.synwork.web.app.service.page.render.PageRenderer.makeContent(PageRenderer.groovy:182)
	at com.synwork.web.app.service.page.PageContext.doIncludePage(PageContext.groovy:397)
	at com.synwork.web.app.service.page.PageContext.access$0(PageContext.groovy)
	at com.synwork.web.app.service.page.PageContext$_render_closure2.doCall(PageContext.groovy:282)
	at com.synwork.web.app.service.page.PageContext$_render_closure2.call(PageContext.groovy)
	at com.synwork.web.app.service.page.PageContext$_withPageContext_closure5.doCall(PageContext.groovy:570)
	at com.synwork.web.app.service.page.PageContext$_withPageContext_closure5.call(PageContext.groovy)
	at com.synwork.web.framework.jdbc.context.JdbcContext.withFilter(JdbcContext.groovy:69)
	at com.synwork.web.framework.jdbc.JdbcAccess$_withContext_closure3.doCall(JdbcAccess.groovy:85)
	at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
	at groovy.lang.Closure.call(Closure.java:414)
	at groovy.lang.Closure.call(Closure.java:430)
	at com.synwork.web.framework.jdbc.JdbcAccess.doInContext(JdbcAccess.groovy:70)
	at com.synwork.web.framework.jdbc.JdbcAccess.withContext(JdbcAccess.groovy:84)
	at com.synwork.web.app.service.datadomain.DataDomainService.withDomain(DataDomainService.groovy:45)
	at com.synwork.web.app.service.datadomain.DataDomainService$$FastClassByCGLIB$$c9182e89.invoke()
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
	at com.synwork.config.AspectjConfig.aroundAdvice(AspectjConfig.groovy:46)
	at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
	at com.synwork.web.app.service.datadomain.DataDomainService$$EnhancerByCGLIB$$efc9386.withDomain()
	at com.synwork.web.app.service.page.PageContext.withPageContext(PageContext.groovy:568)
	at com.synwork.web.app.service.page.PageContext.render(PageContext.groovy:281)
	at com.synwork.web.app.service.page.PageContext$$FastClassByCGLIB$$fd4a8803.invoke()
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:132)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:120)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
	at com.synwork.web.app.service.page.PageContext$$EnhancerByCGLIB$$bc0f7095.render()
	at com.synwork.web.app.service.page.PageRenderService.renderPage(PageRenderService.groovy:65)
	at com.synwork.web.app.service.page.PageRenderService$$FastClassByCGLIB$$25ff8b93.invoke()
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
	at com.synwork.config.AspectjConfig.aroundAdvice(AspectjConfig.groovy:46)
	at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
	at com.synwork.web.app.service.page.PageRenderService$$EnhancerByCGLIB$$6d066950.renderPage()
	at com.synwork.web.app.controller.page.PageController.render(PageController.groovy:56)
	at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440)
	at com.synwork.web.internal.mvc.ControllerAdapter.invokeHandlerMethod(ControllerAdapter.groovy:74)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
	at com.synwork.web.internal.servlet.ExDispatcherServlet.superDoDispatch(ExDispatcherServlet.groovy:34)
	at com.synwork.web.internal.servlet.ExDispatcherServlet$_doDispatch_closure1.doCall(ExDispatcherServlet.groovy:50)
	at com.synwork.web.internal.servlet.ExDispatcherServlet$_doDispatch_closure1.call(ExDispatcherServlet.groovy)
	at com.synwork.web.internal.context.WebContext.withSession(WebContext.groovy:180)
	at com.synwork.web.internal.context.WebContext$_doAccess_closure1.doCall(WebContext.groovy:71)
	at com.synwork.web.internal.context.WebContext$_doAccess_closure1.call(WebContext.groovy)
	at com.synwork.web.framework.jdbc.context.JdbcContext.withFilter(JdbcContext.groovy:69)
	at com.synwork.web.framework.jdbc.JdbcAccess$_withContext_closure3.doCall(JdbcAccess.groovy:85)
	at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1125)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
	at groovy.lang.Closure.call(Closure.java:414)
	at groovy.lang.Closure.call(Closure.java:430)
	at com.synwork.web.framework.jdbc.JdbcAccess.doInContext(JdbcAccess.groovy:75)
	at com.synwork.web.framework.jdbc.JdbcAccess.withContext(JdbcAccess.groovy:84)
	at com.synwork.web.internal.context.WebContext.doAccess(WebContext.groovy:70)
	at com.synwork.web.internal.context.WebContext.access$0(WebContext.groovy)
	at com.synwork.web.internal.context.WebContext$1.doFilter(WebContext.groovy:120)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at com.synwork.web.internal.context.WebContext.doInWebContext(WebContext.groovy:91)
	at com.synwork.web.internal.servlet.ExDispatcherServlet.doDispatch(ExDispatcherServlet.groovy:49)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1121)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
	at org.mortbay.jetty.security.ConstraintsSecurityHandler.handle(ConstraintsSecurityHandler.java:220)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:822)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:305)
	at org.mortbay.jetty.Dispatcher.forward(Dispatcher.java:345)
	at org.mortbay.jetty.Dispatcher.forward(Dispatcher.java:137)
	at com.synwork.web.app.service.page.SiteFilter.renderSite(SiteFilter.groovy:213)
	at com.synwork.web.app.service.page.SiteFilter.internalFilter(SiteFilter.groovy:183)
	at com.synwork.web.app.service.page.SiteFilter.doFilter(SiteFilter.groovy:59)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
	at com.synwork.web.internal.servlet.RequestContextFilter.doFilterInternal(RequestContextFilter.groovy:59)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
	at org.mortbay.jetty.security.ConstraintsSecurityHandler.handle(ConstraintsSecurityHandler.java:220)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:822)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:305)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:198)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:550)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:876)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:535)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:407)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:421)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)