Mouse-Click events do not work with Groovy-Vaadin Addon,

I installed the groovy-vaadin addon, and my code looks like the following.

import com.vaadin.Application
import com.vaadin.ui.Button
import com.vaadin.ui.Window
import com.vaadin.ui.Window.Notification

class Hello extends Application {

	void init() {
		def window = new Window("Hello Vaadin!")
		setMainWindow window
		def button = new Button("Click!", new Button.ClickListener() {
					public void buttonClick(Button.ClickEvent event) {
						mainWindow.showNotification("Hello Vaadin!","Hello Vaadin!",Notification.TYPE_WARNING_MESSAGE)
						//TODO de aplicar filtro
		window.addComponent button

When I run the code i get the window correctly, but when i click i get an error from the button:

	at com.vaadin.terminal.gwt.client.MouseEventDetails.deSerialize(
	at com.vaadin.ui.Button.changeVariables(
	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(
	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(
	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(
	at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(
	at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

Any help will be greatly appreciated.


Hi all,

i have the same problem. I’m working with Eclipse+Vaadin 6.1+Liferay 6.0.6. My code:

Button b = new Button("example"); b.setWidth("100%");
b.addListener(Button.ClickEvent.class, this, "theButtonClick");

public void theButtonClick(Button.ClickEvent e){ ExternalResource(""));		

this vaadin function is returning java.lang.nullpointerexception:

public static MouseEventDetails deSerialize(String serializedString) {
MouseEventDetails instance = new MouseEventDetails();
String fields = serializedString.split(“,”);

serializedString seems to be null

Any solution?

Hi all,

i download vaadin 6.5.5 and problems dissapears.

may be this is a bug from 6.6.1

Thanks all

This should not be possible if you are using the correct widgetset. Most likely, you have upgraded Vaadin in your Liferay installation but forgotten to update the shared widgetsets and Vaadin themes in Liferay.

Thank you Henri,

i go to:

Develop Vaadin Apps as Portlets

and this solved my problem.

Juan Manuel