null attribute not allowed in page call
say there is:
define page editEventPage(c : Credentials, e : Event){ ... }
we would expect to be able to call:
action("New event", action{ return editEventPage(c, null); } )
but this unfortunately results in something like this:
[java] * events/events.app:49/33: error: There is no page with signature editEventPage(Credentials, Null). [java] return editEventPage(c, null); [java] : [user/system] = [3.42s/0.00s]
and then we think we might try to change our call to:
var e : Event; action("New event", action{ return editEventPage(c, e); } )
and that compiles fine but when invoking the action:
Submitted on 16 March 2010 at 16:49
[java] java.lang.NullPointerException [java] at calendar.beans.calendarPage_body_Template$2.calendarPage_inline_action0(calendarPage_body_Template.java:1274) [java] at calendar.beans.calendarPage_body_Template.handleActionsInternal(calendarPage_body_Template.java:1068) [java] at calendar.beans.calendarPage_body_Template.handleActions(calendarPage_body_Template.java:173) [java] at calendar.beans.main_Template.handleActionsInternal(main_Template.java:802) [java] at calendar.beans.main_Template.handleActions(main_Template.java:161) [java] at calendar.beans.calendarPage_Template.handleActionsInternal(calendarPage_Template.java:433) [java] at calendar.beans.calendarPage_Template.handleActions(calendarPage_Template.java:166) [java] at calendar.beans.CalendarPagePage.serve(CalendarPagePage.java:99) [java] at utils.DispatchServletHelper.handlePage(DispatchServletHelper.java:322) [java] at utils.DispatchServletHelper.doServe(DispatchServletHelper.java:287) [java] at utils.DispatchServlet.doPost(DispatchServlet.java:31) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [java] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567) [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) [java] at java.lang.Thread.run(Thread.java:619)
Log in to post comments