Hi,

I'm experiencing some weird errors with Wt 3.1.6.

I get JavaScript error saying "Fatal error: failed to load myjs.js" where myjs.js is a JS file I'm including in the constructor of my WApplication.

I'm getting this issue with Opera 10 every time. I was able to reproduce the issue with IE8 but it is not appearing in every case. I think this might be related to browsers caching files but I'm not sure.

When looking at the output of a application there is the following entries (interisting ones are *highlighted*):

This one is from a request when I cleared all the cache from Opera,
[2010-Nov-04 11:53:38.629094] 13935 [/ y4CFhZtUPgw6ve05] [notice] "Session created (#sessions = 2)"
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.6.30 Version/10.63
192.168.1.82 - - [2010-Nov-04 11:53:38.631874] "GET / HTTP/1.1" 200 1897
192.168.1.82 - - [2010-Nov-04 11:53:38.666106] "GET /?wtd=y4CFhZtUPgw6ve05&request=script&rand=1619759457 HTTP/1.1" 200 28805 192.168.1.82 - - [2010-Nov-04 11:53:38.690801] "GET /resources//themes/default/wt.css HTTP/1.1" 404 85 *192.168.1.82 - - [2010-Nov-04 11:53:38.691143] "GET /myjs.js HTTP/1.1" 200 29* 192.168.1.82 - - [2010-Nov-04 11:53:38.708825] "GET /favicon.ico HTTP/1.1" 404 85

This one is from a refresh
[2010-Nov-04 11:54:38.788652] 13935 [/ AMHYqPZpZxwYEo2R] [notice] "Session created (#sessions = 3)"
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.6.30 Version/10.63
192.168.1.82 - - [2010-Nov-04 11:54:38.790931] "GET / HTTP/1.1" 200 1899
192.168.1.82 - - [2010-Nov-04 11:54:38.836183] "GET /?wtd=AMHYqPZpZxwYEo2R&request=script&rand=1813608028 HTTP/1.1" 200 28803 *192.168.1.82 - - [2010-Nov-04 11:54:38.858994] "GET /myjs.js HTTP/1.1" 304 0* 192.168.1.82 - - [2010-Nov-04 11:54:38.859605] "GET /resources//themes/default/wt.css HTTP/1.1" 404 85 192.168.1.82 - - [2010-Nov-04 11:54:38.909125] "GET /favicon.ico HTTP/1.1" 404 85

So with first time the myjs.js is requested and it is found (HTTP status 200, i.e. everything ok). When I refresh the page, the myjs.js is requested and the HTTP server responds with HTTP 304, i.e. the file has not changed since the last access as it should be.

But with both tries I get the JavaScript error (can be seen from the screen shot).

I can not reproduce this anymore with IE for some reason but with opera this error keeps appearing every time. Please note that I have seen this error also with IE as has a test engineer who tests the application we are developing.

When this error triggers there is another error popup (appwasquitted.png). If OK is clicked the first error appears again and this dialog after it. If cancel is clicked the application will not work (this can not be checked from the example, as the example application is empty if the require call is not counted).

BR,
Janne


Attachment: jsload-1.tar.gz
Description: GNU Zip compressed data

<<attachment: jsload.png>>

<<attachment: appwasquitted.png>>

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to