0
我在運行在weblogic服務器上的spring webflow應用程序中使用下面的代碼。requestcontextholder併發訪問
RequestContextHolder.getRequestContext() .getExternalContext().getNativeRequest()).getSession()
我知道RequestContextHolder
使用ThreadLocal
啓動時的requestContext
存儲和恢復的步驟。
現在問題是否存在其他線程可能訪問requestContext
的任何遠程可能性(可能是因爲線程正在被weblogic重用或因其他原因)?
最後找到線程問題的根本原因,SWF版本(2.2.1)有一個錯誤。它的ExpressionParser不是線程安全的[JIRA鏈接](https://jira.springsource.org/browse/SWF-1437)。將SWF提升到2.3.0解決了這個問題。 – Vinayak