IncompatibleClassChangeError while using TextArea

Hello,

I have the problem that I get a java.lang.IncompatibleClassChangeError when I use a TextArea in a Vaadin portlet on Liferay Portal (widgets like Label and TextField do
not
cause an error).

Here is my test code:

package Test;

import com.vaadin.Application;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextArea;
import com.vaadin.ui.Window;

public class TestApplication extends Application {

    @Override
    public void init() {

        // window
        final Window window = new Window();
        setMainWindow(window);

        // label
        final Label label = new Label("Hello Test!");
        window.addComponent(label);

        [b]
// textArea
        final TextArea textArea = new TextArea("TextArea:");
        window.addComponent(textArea);
[/b]
    }

}

My environment:

[list]

[]
Windows XP Pro SP 3
[
]
Java 6
[]
Liferay Developer Studio 1.2.0
[
]
Vaadin Plug-in for Eclipse 2.0.1.201105170102
[*]
Vaadin 6.6.0

[/list]Do you have any hints that may help me out?

Thanks in advance!

Meik B.

Most probably your project is using a different version of Vaadin than the one on the portal and your IDE is modifying some class through the debug API when you are making changes - see the
javadoc for IncompatibleClassChangeError
.

I would recommend using the Liferay Developer Studio classpath container that uses the Vaadin JAR from your (test) portal directly. Then upgrade the portal to use the correct Vaadin version (remember to update also themes and the widgetset in the shared directory - see e.g.
this page (Liferay 5.2.x part)
for what directories to update and how when upgrading Vaadin).

Hello Henri,

thanks for your answer.

Especially the steps described in the chapter “Vaadin Installation on Liferay 5.2.x” solved my problem.

Regards

Meik B.