参考信息

症狀
   點選某一功能或按鈕後報出 Concurrent call to conversation錯誤

Java 代码
  1. org.jboss.seam.ConcurrentRequestTimeoutException: Concurrent call to conversation  
 org.jboss.seam.ConcurrentRequestTimeoutException: Concurrent call to conversation


原因
1.多個方法被同時調用,沒有排進同個隊列依次執行
2.同一個按鈕或是方法連續點擊,在上一個事件還沒完成時就觸發一樣的事件
解法
針對一個頁面內有連動的元件解法:
例如 <a4j:commandButton/> 按鈕和 <a4j:support/> 排進同個隊列,使用屬性
eventsQueue="eventsQueue" ignoreDupResponses="true"
針對同一元件連續點擊造成原因解法:
1.使用eventsQueue解決
2.不能使用eventsQueue的部分(例如JSF元件),使用彈出視窗顯示(例如「查詢中...」),擋住頁面避免連續點擊。

更多推荐

Concurrent Call To Conversation