简体   繁体   English

XPages应用程序的Javascript错误

[英]Javascript error with XPages application

I look after an application based on XPages that some users are having trouble with. 我照顾一些用户遇到麻烦的基于XPages的应用程序。 There is a random Javascript error on some of the pages that only resolves itself when the pages are reloaded. 在某些页面上有一个随机的Javascript错误,只有在重新加载页面后才能自行解决。 I managed to get a screen shot of the error message on Internet Explorer - it's the warning triangle you see when there's a JS error. 我设法在Internet Explorer上获得错误消息的屏幕截图-这是当出现JS错误时看到的警告三角形。

Clicking on the message in IE, I am told there is a syntax error in the following URL: 单击IE中的消息,会告诉我以下URL中存在语法错误:

http://cdncache2-a.akamaihd.net/loaders/1036/l.js?aoi=1311798366&pid=1036&zoneid=74570 http://cdncache2-a.akamaihd.net/loaders/1036/l.js?aoi=1311798366&pid=1036&zoneid=74570

I have no idea what this is?! 我不知道这是什么? It's not a resource that is linked to on my application. 它不是链接到我的应用程序上的资源。 The XPage app is on an internal company server, runs fine for me but users in Germany regularly get this. XPage应用程序位于公司内部的服务器上,对我来说运行正常,但德国的用户会定期获取此信息。

I tried to find out about the URL but haven't found anything solid on google yet. 我试图找出有关URL的信息,但尚未在Google上找到任何可靠的信息。 Some sites hint at Proxies however. 但是,有些站点提示使用代理。 So I checked my IE settings for LAN and found I am not using a proxy, and the option to bypass a proxy for LAN addresses is greyed out. 因此,我检查了IE的LAN设置,发现我没有使用代理,并且绕过LAN地址代理的选项显示为灰色。 I got the people in Germany to confirm they also have the same setting as me. 我让德国人确认他们也和我有同样的环境。

Can anyone give any clues as to why this JS error is coming up on the application? 任何人都可以提供任何线索为什么应用程序会出现此JS错误?

The tool you want to use is CURL . 您要使用的工具是CURL Using that you get the source code of the JS that gets loaded. 使用它,您将获取要加载的JS的源代码。 If the code messes up the DOM then local JavaScript will fail. 如果代码弄乱了DOM,则本地JavaScript将失败。 I would second Sven's suspicion that it is an addon. 我会支持Sven的怀疑,认为这是一个附加组件。 The question is: a planned or an unplanned one. 问题是:有计划的还是无计划的。 You might want to entertain a HTTP Debugger to see what is going on on the wire. 您可能想招待一个HTTP调试器,以查看线路上发生了什么。 TCPMon from Apache is free and cross platform. Apache的TCPMon是免费且跨平台的。 Fiddler is free but Windows only and Charles is Shareware cross platform. Fiddler是免费的,但仅限Windows,而Charles是Shareware跨平台的。 The later two can debug HTTPS too. 后两者也可以调试HTTPS。 Let us know the findings 让我们知道调查结果

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM