We had an issue reported by a user that as he was in the process of entering data in a form, the form reset all the data, clearing out all the information he had input. Not sure if this is the cause, but the timing coincided with this error in the logs:
[2010-09-16 16:58:24.164]
com.vaadin.event.ListenerMethod$MethodException
[2010-09-16 16:58:24.164]
Cause: java.lang.NullPointerException
[2010-09-16 16:58:24.164]
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:507)
[2010-09-16 16:58:24.164]
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:158)
[2010-09-16 16:58:24.164]
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:995)
[2010-09-16 16:58:24.164]
at com.vaadin.ui.Window.fireClose(Window.java:1066)
[2010-09-16 16:58:24.164]
at com.vaadin.ui.Window.close(Window.java:945)
[2010-09-16 16:58:24.164]
at com.vaadin.ui.Window.changeVariables(Window.java:913)
[2010-09-16 16:58:24.164]
at com.vaadin.terminal.gwt.server.CommunicationManager.handleVariables(CommunicationManager.java:751)
[2010-09-16 16:58:24.164]
at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:300)
[2010-09-16 16:58:24.164]
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:432)
[2010-09-16 16:58:24.164]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[2010-09-16 16:58:24.164]
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
[2010-09-16 16:58:24.164]
at com.caucho.server.security.SecurityFilterChain.doFilter(SecurityFilterChain.java:135)
[2010-09-16 16:58:24.164]
at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:183)
[2010-09-16 16:58:24.164]
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[2010-09-16 16:58:24.164]
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[2010-09-16 16:58:24.164]
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[2010-09-16 16:58:24.164]
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
[2010-09-16 16:58:24.164]
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:527)
[2010-09-16 16:58:24.164]
at com.caucho.util.ThreadPool.run(ThreadPool.java:449)
[2010-09-16 16:58:24.165]
at java.lang.Thread.run(Thread.java:619)
[2010-09-16 16:58:24.165]
Caused by: java.lang.NullPointerException
[2010-09-16 16:58:24.165]
at com.cbs.madison.MadisonApplication$1.windowClose(MadisonApplication.java:66)
[2010-09-16 16:58:24.165]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2010-09-16 16:58:24.165]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[2010-09-16 16:58:24.165]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[2010-09-16 16:58:24.165]
at java.lang.reflect.Method.invoke(Method.java:597)
[2010-09-16 16:58:24.165]
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487)
[2010-09-16 16:58:24.165]
… 19 more
The actual code on line 66 is:
getMainWindow().getApplication().close();
from this listener method within init() of the Application subclass:
this.getMainWindow().addListener(new Window.CloseListener() {
public void windowClose(CloseEvent e) {
// TODO Auto-generated method stub
getMainWindow().getApplication().close();
}
});
Anyone experience this as well?