Note that there are some explanatory texts on larger screens.

plurals
  1. POCommunication errors and alert box in Vaadin
    text
    copied!<p>My web application is using Vaadin 6.8.8 version with vaadin-xs addon and it's deployed on a glassfish server.</p> <p>My application randomly (well, I think it's randomly) gets <em>communication problem</em> and/or <em>session expired</em> messages. Nothing is shown in the log. Sometimes I can see an <em>Invalid security key received from localhost</em> error log, but I'm not sure if it's related to the same issue.</p> <p>I see these problems in Firefox and Chrome (I didn't try it in IE or Opera). In Chrome browser appears infrequently but in Firefox appears frequently.</p> <p>I overrided the <em>getSystemMessages</em> method:</p> <pre><code>public static SystemMessages getSystemMessages() { CustomizedSystemMessages m = new CustomizedSystemMessages(); m.setCommunicationErrorCaption(null); m.setCommunicationErrorMessage(null); m.setCommunicationErrorURL(null); m.setSessionExpiredCaption(null); m.setSessionExpiredMessage(null); m.setSessionExpiredURL(null); return m; } </code></pre> <p>Now, I don't see any <em>communication problem</em> or <em>session expired</em> messages, instead I get a JavaScript standard alert box with <em>Server Error</em> message, then the page is reloaded. This alert box only appears in Firefox browser, in Chrome broswer the alert box doesn't appear.</p> <p>Can someone give me any clue? Some workarround to not show the alert box.</p> <p><strong>Edit:</strong></p> <p>Sometimes I found this stacktrace in the log file:</p> <pre><code>Terminal error: java.lang.ArrayIndexOutOfBoundsException: 1 at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1376) at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1329) at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:761) at com.vaadin.addons.xs.server.JsonpCommunicationManager.doHandleUidlRequest(JsonpCommunicationManager.java:142) at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:325) at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501) at com.vaadin.addons.xs.server.XSApplicationServlet.service(XSApplicationServlet.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:619) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload