0

"repeat request" => page is "processing" but returns no result <= request is considered duplicate

asked 2009-10-20 13:00:41 +0800

barema gravatar image barema
69 1

I have a zk-testapp deployed on a testserver (http://www.360feedback.be/ingrid/).
It's a mock-up application, nothing fancy with the following problem:

There's one basic page, which includes another page and using the menubar or left-side navigation-tree the included page is replaced.
Opening one of the included pages (by clicking the e.g. the first or second item in the menubar's first menu) works perfect.
After this, if you want to move on to another page (by clicking another item) it stops working ("processing" appears, dissapears, nothing happens).

Strangely, it works perfect when the pages are accessed locally: on localhost navigation from one page to another works perfect.

In Tomcat's stdout.log the following message appears "The event processing thread stops", when logging is switched on the following message seems to be crucial:
Oct 12, 2009 2:10:00 PM org.zkoss.zk.ui.impl.UiEngineImpl isReqDup0:876
FINE: Repeat request
sid: 1

Configuration =
Apache 2.2 (redirects the requests to the Tomcat server)
Tomcat 6.0
zk 3.5.2

Does anyone has any idea what this could be about ?
Could it have something to do with Tomcat running behind Apache ?
Does it have something to do with session management ?
Maybe it's just some setting in one of the config files ?

Who can help ?
I've posted this problem earlier in the install-category, where you can find the relevant source code
http://www.zkoss.org/forum/index.zul#path%3DlistComment%3BdiscussionId%3D9802%3BcategoryId%3D17%3B
the testapp is accessible on www.360feedback.be/ingrid/

Thanks,
Bart

delete flag offensive retag edit

17 Replies

Sort by ยป oldest newest

answered 2009-10-21 02:07:22 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi,Bart
I try your website on FF, and use firebug to see response in console
response is the same after change page
you can try to print page name, and check it correct

//jimmy

link publish delete flag offensive edit

answered 2009-10-23 02:54:28 +0800

barema gravatar image barema
69 1

Hi,Jimmy

Thanks for your response, but I'm not sure if I'm getting it right.
Do you mean the response from the server is equal to the previous page (so no changes occur) ?
Or do you see anything more in firebug.

(I've used firebug before for css and html, but I'm not familiar with the use as script-debugger of how responses from the server can be intercepted)

Regards,
Bart

link publish delete flag offensive edit

answered 2009-10-23 03:32:23 +0800

barema gravatar image barema
69 1

I have used tcpmon to intercept the requests that were sent to the server (which are considered to be the same by ZK after the first successful request).
This is what I did:
I've opened the first node on the left-side navigation tree, selected one of the items (successful), selected another (fail), selected another (fail)

Regards,
Bart


First request (handled, returned the expected result)


POST /ingrid/zkau HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
ZK-SID: 1
Referer: http://localhost/ingrid/
Content-Length: 166
Cookie: JSESSIONID=06C0BEA362211C2D06F5AEB0E80F1B79; JSESSIONID=26385E4C4C6F8008C7DAEFACEAD26A2A
Pragma: no-cache
Cache-Control: no-cache

dtid=gkg2&cmd.0=onOpen&uuid.0=z_kg_33&data.0=true&cmd.1=onSelect&uuid.1=z_kg_v2&data.1=z_kg_73&data.1=z_kg_73&cmd.2=onClick&uuid.2=z_kg_93&data.2=46&data.2=14&data.2=

=====================================================

Second request (unhandled, shows "processing" for a few seconds and no other results. Log-debugging gives the message "repeat request")

POST /ingrid/zkau HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
ZK-SID: 1
Referer: http://localhost/ingrid/
Content-Length: 126
Cookie: JSESSIONID=06C0BEA362211C2D06F5AEB0E80F1B79; JSESSIONID=26385E4C4C6F8008C7DAEFACEAD26A2A
Pragma: no-cache
Cache-Control: no-cache

dtid=gkg2&cmd.0=onSelect&uuid.0=z_kg_v2&data.0=z_kg_a3&data.0=z_kg_a3&cmd.1=onClick&uuid.1=z_kg_c3&data.1=35&data.1=10&data.1=GET /ingrid/zkau/web/zk/img/progress2.gif HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost/ingrid/zkau/web/zul/css/normmoz.css.dsp
Cookie: JSESSIONID=06C0BEA362211C2D06F5AEB0E80F1B79; JSESSIONID=26385E4C4C6F8008C7DAEFACEAD26A2A
If-Modified-Since: Fri, 23 Oct 2009 07:37:18 GMT


=====================================================

Third request (unhandled, shows "processing" for a few seconds and no other results. Log-debugging gives the message "repeat request")

POST /ingrid/zkau HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
ZK-SID: 1
Referer: http://localhost/ingrid/
Content-Length: 125
Cookie: JSESSIONID=06C0BEA362211C2D06F5AEB0E80F1B79; JSESSIONID=26385E4C4C6F8008C7DAEFACEAD26A2A
Pragma: no-cache
Cache-Control: no-cache

dtid=gkg2&cmd.0=onSelect&uuid.0=z_kg_v2&data.0=z_kg_d3&data.0=z_kg_d3&cmd.1=onClick&uuid.1=z_kg_f3&data.1=85&data.1=9&data.1=

link publish delete flag offensive edit

answered 2009-10-23 04:59:56 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

can you show us the complete two different zul-files that you would show in the center area?

best
Stephan

link publish delete flag offensive edit

answered 2009-10-23 09:44:18 +0800

barema gravatar image barema
69 1

Dear Stephan (and all others out there),

I've set up the following simplified page (unlike previous version) with access to all .zul sources
http://www.360feedback.be/ingrid/demo.zul

essential pages (that can be downloaded from this page) are:
* demo.zul (main container page)
* leftnavigation.zul
* intro.zul (default centerscreen include)
* page1.zul (alternative centerscreen include)
* page2.zul (alternative centerscreen include)
* page3.zul (alternative centerscreen include)

this page illustrates the problem and provides access to all the source code-files.
There may be a problem however opening all the different files (due to the problem I'm trying to fix here :-), but there is an easy workaround: reload the page.

I just hope someone sees the obvious easy fix for this issue.

Thanks for the help so far!

Regards,
Bart

link publish delete flag offensive edit

answered 2009-10-24 10:16:04 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Seems you app is working equal like mine. I remember that you said in earlier posts in the old 'Installation' category thread that you
have try it with Executions.createComponents(...) too.

Do you use the <page id=""> tag in your center content zul files?

link publish delete flag offensive edit

answered 2009-11-10 09:55:20 +0800

barema gravatar image barema
69 1

Dear Terrytornado,

I've modified my pages to include the id attribute => no difference.
Using Executions.createComponents(...) doesn't give any difference either:

zk doesn't even get this far: as soon as the request reaches the server, before it is treated, it is judged to be equal to the previous request and thus the server thinks it's a duplicate request => it remains unhandled.

Any ideas ? (see the output "repeat request")

link publish delete flag offensive edit

answered 2009-11-10 10:22:22 +0800

barema gravatar image barema
69 1

Just to make sure the problem MUST be a server related thing:
I've uploaded the example from http://www.zkoss.org/smalltalks/netbeans2/netbeans2.dsp as some extra pages on my site, accessible via

http://www.360feedback.be/ingrid/mytabboxdemo.zul

this page includes the demo-app as discussed in the zk small talks and gives the exact same problem as the one in my own app: only the first request is processed, all subsequent requests remain unhandled.
can this be an configuration problem due to Tomcat+Apache setup and the way remote requests are being handled ???

link publish delete flag offensive edit

answered 2009-11-10 10:59:02 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2009-11-10 11:01:28 +0800

Please have a try with a version that is newer as 3.5.2 and post your web.xml and zk.xml

I can see the 'Preload' and 'Demand1' Tab text

link publish delete flag offensive edit

answered 2009-11-10 18:34:11 +0800

barema gravatar image barema
69 1

If you would load the OnDemand2 Tab before you load the OnDemand1 Tab, you would not be able to see the OnDemand1 Tab ...
I've updated to 3.6.3, the web.xml and zk.xml are the default ones suggested in the quickstart-guide. (empty zk.xml)

link publish delete flag offensive edit
Your reply
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

Follow

RSS

Stats

Asked: 2009-10-20 13:00:41 +0800

Seen: 913 times

Last updated: Dec 16 '09

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