IT Mill 5.2.5 Beta Exception on launching

Hi Folks,

I just see the new release for the 5.2.5 so I have downloaded it to test it. But when I try to launch my project (display a simple Label on Window) I’ve got the following exception :


java.lang.ArrayIndexOutOfBoundsException: 1
	at com.itmill.toolkit.terminal.gwt.server.CommunicationManager.handleVariables(CommunicationManager.java:551)
	at com.itmill.toolkit.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:247)
	at com.itmill.toolkit.terminal.gwt.server.ApplicationServlet.service(ApplicationServlet.java:431)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)

My code


public class MainWindow extends Application {
	
	public void init() {
		Window main = new Window("It Mill 5.2.5");
		Label label = new Label("Hello");
		main.addComponent(label);
		setMainWindow(main);				
	}
}

Before I worked on 5.2.2 without problem, maybe I do something wrong but I don’t know why. I’m working under Eclipse with tomcat 5.5 and I have proceeded cleanup operation.
Can you tell me if is that normal ?
Thanks in advance !

This surely is not normal - are the demo applications working for you? Your code is almost identical to hello world demo, so the problem surely is not in your test app…

Possible problems:

  • Your browser cache has not been cleared up
  • You are using self-compiled widgetset, but did not recompile after upgrade

(My guess is that the actual problem is that for some reason your browser is running old version of widgetset and the communication encoding has changed between toolkit versions. This change should be internal, but for some reason the client and server side versions are out of sync)

Added http://dev.itmill.com/ticket/1873 to make errors more readable in the future revisions…

That’s it ! After recompile it and launch my project again, all works fine, sorry about my mistake and Thanks you,