upload problem

Hi All ,
I have an isssue with upload component .It working fine on the dev environment(localhost).But on the test environment .
it is not working and cause Out of sync error. Does any one have any idea what might cause this issue .

I am using :
vaadin 6.7.3
liferay 6.0.5

public class TestuploadApplication extends Application{
public void init(){
Window mainWindow = new Window(“Testupload Application”);
Label label = new Label(“Hello Vaadin user”);
ReceiveUpload reciever=new ReceiveUpload();
Upload upload = new Upload(“Upload”,reciever);
upload.addListener(new UploadSuccess(reciever));

public class ReceiveUpload implements Upload.Receiver{
public File file;
public OutputStream receiveUpload(String filename, String mimeType) {
System.out.println(“***** receiveUpload *****”);
FileOutputStream fos = null; // Stream to write to
try {
// Open the file for writing.
file = new File(“/tmp/uploads” + filename);
fos = new FileOutputStream(file);
} catch (final java.io.FileNotFoundException e) {
return null;
return fos;
public File getFile() {
return file;
public void setFile(File file) {
this.file = file;

public class UploadSuccess implements Upload.SucceededListener{
public ReceiveUpload receiver;
public UploadSuccess(ReceiveUpload receiver) {
this.receiver= receiver ;
public void uploadSucceeded(SucceededEvent event) {
System.out.println(" ***** uploadSucceeded ***** “);
System.out.println(” ***** uploadSucceeded ***** "+receiver.getFile().getName());

Also I don’t get any exception in the logs but i get the following warning

[#|2014-12-17T15:18:34.258+0200|WARNING|sun-appserver2.1|com.vaadin.terminal.gwt.server.AbstractCommunicationManager|_ThreadID=45;_ThreadName=httpSSLWorkerThread-80-3;_RequestID=4cedf48a-15e9-429e-9feb-1622e9ef1bcc;|Warning: Ignoring variable change for non-existent component, VAR_PID=PID11|#]


The widgetset in use does not seem to be built for the Vaadin
version in use. This might cause strange problems - a
recompile/deploy is strongly recommended.
Vaadin version: 6.7.4
Widgetset version: null

the problem was solved by deploying the vaadin-controlpanel-for-liferay which will be displayed in liferay control panel in the portal section.

Also i had to compile the widget set after putting the below jars in ./liferay-portal-6.0.5/WEB-INF/lib

note :
vaadin.jar (version was 6.6.8 i think the jar name should not contain the version but not sure of that)