Infinite loop in zk.wpd file

asked 2019-07-01 18:08:14 +0800

nicoladileo gravatar image nicoladileo
51 3

updated 2019-07-02 10:40:56 +0800

cor3000 gravatar image cor3000
5833 2 7
ZK Team

Hi all, i'm using ZK framework (ver.8.0.2) to build a web application and i encounter a strange behaviour inside zk.wpd file. I'm using a publish/subscribe event queue to build an asynchronous task running in background: it works all fine until i call EventQueues.remove(queuename, EventQueues.DESKTOP)) method. After the queue is destroyed, Zk start an infinite loop in zk.wpd file, resulting in a series of undefined ajax requests (see the file attached) Can anyone explain me how to fix this behaviour? Thank in advance

Link of issues:

Screen1.PNG, Screen2.png

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-07-02 10:47:14 +0800

cor3000 gravatar image cor3000
5833 2 7
ZK Team

series of undefined ajax requests

usually these 'undefined' requests contain a payload which you can see after clicking it and checking the request parameters (in chrome dev tools at the bottom of the 'headers tab')

Did you try using a more recent ZK version, maybe the issue has been fixed already.

Otherwise please provide the exact code leading to the problem, so that someone can try it out, and suggest what to change.

link publish delete flag offensive edit


Hi, thanks for your answer. Checking the requests by devtools i've seen that until EventQueue is working the payload is like this {"rs":[],"rid":788}. When i clean the EventQueue the payload change as here: {"rs":[]}. Due to project requirements for now, i cannot update ZK version

nicoladileo ( 2019-07-04 23:46:03 +0800 )edit

independent of your project requirements, you can still try running that part of your application using a higher ZK version, just to check if there is any version above your's that fixes the problem. If yes then you are one step closer to patching the problem.

cor3000 ( 2019-07-05 10:52:28 +0800 )edit

If you can't perform these tests for technical reasons, then it will help if you can isolate a simplified version of your code reproducing the issue so that anyone in this forum can have a look and potentially help.

cor3000 ( 2019-07-05 10:53:51 +0800 )edit

Thanks, I solved the issue by updating the ZK versione and removing all subscriptions from the EventQueue by invoking the unsubscribe method. It works!

nicoladileo ( 2019-08-02 15:19:59 +0800 )edit

thanks for getting back ... good to know you found a solution

cor3000 ( 2019-08-02 18:21:35 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2019-07-01 18:08:14 +0800

Seen: 8 times

Last updated: Jul 02 '19

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More