掲示板

FacesContext.getCurrentInstance() returning null

9年前 に Anandababu Bolisetti によって更新されました。

FacesContext.getCurrentInstance() returning null

New Member 投稿: 18 参加年月日: 14/01/21 最新の投稿
Hi All,

We are facing strange issue with our JSF portlets (running on primefaces) where the FacesContext.getCurrentInstace() method returns null in almost all liferay internal classes. This issue is observed while we are running performance test scripts for multiple users logging in at same time and performing operations on a same portlet.

I have attached the server log for reference.

As far as we see, the only change we see is that some of the managed beans are changed from view scope to application scope.

We are stuck up with this issue from last 2 days. Please help resolve this.

Thanks in advance.

添付ファイル:

thumbnail
9年前 に Neil Griffin によって更新されました。

RE: FacesContext.getCurrentInstance() returning null

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Anandababu,

I would recommend that you put breakpoints in FacesContext.setCurrentInstance(FacesContext) and FacesContext.release() and see when and why they are being called.

Kind Regards,

Neil
9年前 に Anandababu Bolisetti によって更新されました。

RE: FacesContext.getCurrentInstance() returning null

New Member 投稿: 18 参加年月日: 14/01/21 最新の投稿
Hi Neil,

The error is not happening with our custom portlet classes. Also it is not happening when we are doing a manual test with single user, but it is happening while running the automated script to use multiple users.
thumbnail
9年前 に Neil Griffin によって更新されました。

RE: FacesContext.getCurrentInstance() returning null

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
Hi Anandababu,

Assuming you are using Liferay Portal 6.2, please try adding this to your portal-ext.properties file, restart your server, and let us know if you still see the problem:

layout.parallel.render.enable=false


Kind Regards,

Neil