Out Of Sync Error In Vaadin
the UI from another thread causes Out of Sync error Reported by: sneha Owned by: ticketmaster Priority: normal Milestone: Component: undefined Version: 6.6.2 Keywords: Out Of sync" Cc: Depends on: Workaround: I tried 2 workaround for this 1)I tried to refresh the graph at diffrent time span 2)I used updated vaadin Version 6.2.2 and Gwt-2.3.0 Still its showing out of sync error. Is there any other workaround.? Verified: Fv: no Description I have some UI component (i.e Graphs ) in my app to refresh the data periodically.so I created a Timer thread to setting up new data model of the graphs.the thread is running at server-side so it can talk to fetch the server data then update the UI, the UI gets refreshed at first time, while it doesn't work any more until refreshing the page manually or click some other widgets to cause a refresh to server.I added Refresher Addon to refresh the Data values it works fine for one graph but when i Tried to run multiple graphs at a time it will show "out of Sync" error.. Thanks Sneha Oldest first Newest first Threaded Comments only Change history (2) comment:1 Changed 5 years ago by Artur Signell Resolution set to worksforme Status changed from new to closed Synchronize the thread on the application instance to avoid synchronization issues. http://vaadin.com/forum/-/message_boards/view_message/231271 comment:2 Changed 2 years ago by Artur Signell Fv unset Note: See TracTickets for help on using tickets. Download in other formats: Comma-delimited text Tab-delimited text RSS feed Powered by Trac By Edgewall Software. © 2015 Vaadin Ltd. All rights reserved. Terms of Service and Use
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Vaadin and Liferay IPC Out of Sync error up vote 0 down vote favorite I'm using 2 Vaadin Portlets on the same page in Liferay. The first one shows a Table of entries and each row has a button https://dev.vaadin.com/ticket/7232 to show details about this entry. When the button is clicked an IPC event is send which is received by the second portlet, which then switches also to a table view showing the content. By clicking a close button on the first portlet, the second one will receive again an IPC Event and go back to its original state, which is a blank view that has only the Liferay IPC listener attached to it. My problem is that after the third click I http://stackoverflow.com/questions/12206282/vaadin-and-liferay-ipc-out-of-sync-error get an out-of-sync error by Liferay. When the view is changed I always attach it to the main window. So I don't create additional windows that have the same name. When I use only one portlet on the page I can switch back and forth without any problem. Could it be that the at some point the browser want to fire an event on the client side, but the IPC is already gone on the server side ? Its really hard to determine the root of this problem. java liferay vaadin share|improve this question asked Aug 30 '12 at 22:09 Norman 1,5811315 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted You are on the right track. IPC works on client side and out-of-sync is caused by non existing component being called from the client to the server. There might be a few thins causing this, but some scenarios to check: You say you have a close button that clears the display. Calling Application.close() maybe? This actually might cause a new (server-side) application instance to created and called instead of the original. You might be creating a new instance of the IPC component, but the old one is still registered and tries to send something (to its non-existing server part). JavaScript timing issues could cause the IPC events to be sent in different order that you might expect. I see this unlikely if it the behavior is always consistent, but still
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the http://stackoverflow.com/questions/16770840/testing-a-vaadin-website-with-jmeter company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions http://stackoverflow.com/questions/12483855/vaadin-several-browser-tabs-and-no-initial-reload Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Testing a Vaadin Website with JMeter up vote 1 down vote favorite I need to test a Vaadin website with JMeter out of but I can't get it to work. I have tried recording my actions with a proxy and that went well, but when i try to run the test again it gives me an error: out of sync. I have disabled the xsrf. Has this something todo with the fact Vaadin can't run in two tabs at the same time? I am using vaadin 6 and i can't easily upgrade. Thanks in advance Stefan out of sync the error response i get is: for(;;);[{"changes":[], "meta" : {"appError": {"caption":"Out of sync","message" : "Something has caused us to be out of sync with the server.Take note of any unsaved data, and click here to re-sync.","url" : null}}, "resources": {}, "locales":[]}] Solution: - Disable xrsf because when you record and then start a new thread the request is sends the wrong security key. Enable it when going live ofcourse! - Make sure ever component is unique and consitent. The problem in my application was that the id's of the components were changing every request. So the request when recording is only validate while recording. When i replayed it, it asks for the wrong id. By making it unique and consitent this problem dissapears! Good luck and have fun ;) jmeter vaadin share|improve this question edited May 28 '13 at 9:29 asked May 27 '13 at 10:09 Stefan van der WOlf 84 1 It suddenly just worked. The article you provided i have allready read it but it didn't do the trick for me. In the article it said i should disable xrsf but i did it in a different way and now all is working fine. Sorry for late response. Your article did provide a help in my solution so you will get the best answere trophy t
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Vaadin: Several browser tabs and no initial reload up vote 1 down vote favorite 1 This is Vaadin's official solution to multi-tabs and out of sync problem: https://vaadin.com/web/joonas/wiki/-/wiki/Main/Supporting+Multible+Tabs#_36_messageScroll1791001 If I remove the line w.open(new ExternalResource(w.getURL())); in the presented code, the application webpage is not refreshed when opening additional tabs, I don't get a different url for application tab and I got no "out of sync" errors so far. I don't see the relation between having a separate window class (and isolating window-specific state in this class) to the fact of having a different app url for each tab that opens the application. Is the code above required? Thanks in advance. java vaadin share|improve this question asked Sep 18 '12 at 19:39 Alan Evangelista 570923 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged java vaadin or ask your own question. asked 4 years ago viewed 465 times Related 107Should I use Vaadin Framework1Vaadin multiple browser windows/tabs0Vaadin web application on tomcat creates only one instance of webapp for all users4Reload Vaadin application0Spring security vaadin Authetication manager bean6Vaadin open link in new tab1Vaadin application with separate Apache CXF servlet2Vaadin SuperDevMode recompilation fails sometimes, Widget is not rendered as it shoul