Question
EIB
PL
Last activity: 24 Dec 2019 2:25 EST
Nullpointerexception on worklist widget
Hi,
In our test environment, a nullpointerexception occurs when clicking next page/filtering in worklist widget table after selecting a work queue. Error is on the step 1 of pzdogridaction activity. What could be the possible defect ?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Hi Engincan,
I tried the usecase in my local, and could see the issue happening. On further debugging, below is the analysis:
On selecting the workqueue, in both “Team worklist” and “Worklist” Gadgets two different tables are displayed on screen. The source of these two tables is the same datapage with different parameters, which is D_WorkBasket.
However, this DataPage is configured to refresh once per each interaction and to limit single data Page.
When "Reload once per interaction" is checked then when Data Page(DP) is referred then it loads the DP again due to this while filtering or sorting list is loaded fresh and functionality breaks.
When "Limit to single data page" is checked then whenever params change old data page is deleted and a new DP(hash of DP changes) with fresh list is loaded. Due to this when two tables access same DP then there is a possibility that the DP with which layout renders is deleted from clipboard.
Solution: Modify the data page setting with any of above option unselected, I would suggest unchecking limit to single page which will create two different pages for two tables as per the parameters passed.
Hope it helps in understanding the root cause.
Thanks.
Pegasystems Inc.
FR
Hello,
Can you share the log file with associated stack trace?
EIB
PL
Attached the log file.
Pegasystems Inc.
US
This article looks similar.
https://community.pega.com/support/support-articles/nullpointerexception-clicking-any-page-widget
EIB
PL
I am not sure what this means
"Reconfigure the table with a different configuration so that it does not override the other tables. "
I have just customized the pyWorklistWidgetGridsAuto section and this error does not occur in dev environment.
Accepted Solution
Pegasystems Inc.
IN
Hi Engincan,
I tried the usecase in my local, and could see the issue happening. On further debugging, below is the analysis:
On selecting the workqueue, in both “Team worklist” and “Worklist” Gadgets two different tables are displayed on screen. The source of these two tables is the same datapage with different parameters, which is D_WorkBasket.
However, this DataPage is configured to refresh once per each interaction and to limit single data Page.
When "Reload once per interaction" is checked then when Data Page(DP) is referred then it loads the DP again due to this while filtering or sorting list is loaded fresh and functionality breaks.
When "Limit to single data page" is checked then whenever params change old data page is deleted and a new DP(hash of DP changes) with fresh list is loaded. Due to this when two tables access same DP then there is a possibility that the DP with which layout renders is deleted from clipboard.
Solution: Modify the data page setting with any of above option unselected, I would suggest unchecking limit to single page which will create two different pages for two tables as per the parameters passed.
Hope it helps in understanding the root cause.
Thanks.
EIB
PL
OK, now I got it. I removed the teamworklist widget. Just the worklist widget is enough for us. Thank you very much.