null pointer exceptions in templates
I get these null pointer exceptions with new version of WebDSL compiler (applied to researchr).
In the context of an ajx call.
Submitted by Eelco Visser on 9 June 2010 at 12:57
WebDSL warning: null reference in template arguments: outputPublication(pub)
java.lang.NullPointerException
at org.researchr.www.functions.genpagepredicate_publication0_.genpagepredicate_publication0_(genpagepredicate_publication0_.java:26)
at org.researchr.www.beans.outputPublication_Template.renderInternal(outputPublication_Template.java:128)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.citationCommonPublication_Template.renderInternal(citationCommonPublication_Template.java:318)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.citationArticleArticleBool_Template.renderInternal(citationArticleArticleBool_Template.java:444)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.citationCompactArticle_Template.renderInternal(citationCompactArticle_Template.java:199)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.citationCompactPublication_Template.renderInternal(citationCompactPublication_Template.java:962)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.publicationListReverseChronoSetPublication_Template.renderInternal(publicationListReverseChronoSetPublication_Template.java:284)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.selectedCategoryPublicationListFacetString_Template.renderInternal(selectedCategoryPublicationListFacetString_Template.java:724)
at utils.TemplateServlet.render(TemplateServlet.java:62)
at org.researchr.www.beans.SelectedCategoryPublicationListFacetStringPage.serveAsAjaxResponse(SelectedCategoryPublicationListFacetStringPage.java:281)
at org.researchr.www.beans.facetCloudDisplaySomePublicationListStringString_Template$3.facetCloudDisplaySome_inline_action2(facetCloudDisplaySomePublicationListStringString_Template.java:1417)
at org.researchr.www.beans.facetCloudDisplaySomePublicationListStringString_Template.handleActionsInternal(facetCloudDisplaySomePublicationListStringString_Template.java:1346)
at utils.TemplateServlet.handleActions(TemplateServlet.java:50)
at org.researchr.www.beans.FacetCloudDisplaySomePublicationListStringStringPage.serve(FacetCloudDisplaySomePublicationListStringStringPage.java:99)
at utils.DispatchServletHelper.handlePage(DispatchServletHelper.java:691)
at utils.DispatchServletHelper.doServe(DispatchServletHelper.java:650)
at utils.DispatchServlet.doPost(DispatchServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
Issue Log
line 26 is:
SecurityContext securityContext = (SecurityContext)env.getVariable(“securityContext”);
Log in to post comments