简体   繁体   English

Stackify 前缀 sfclient ERR_CONNECTION_REFUSED

[英]Stackify Prefix sfclient ERR_CONNECTION_REFUSED

Two part question that may or may not be related to each other.两个部分的问题可能彼此相关,也可能不相关。

I am running Stackify Prefix v3.0.28 for a Java application on Win10 and it generally seems to work OK: I can see the traces of various actions in our application.我在 Win10 上为 Java 应用程序运行 Stackify Prefix v3.0.28,它通常似乎工作正常:我可以看到应用程序中各种操作的痕迹。

Part 1:第1部分:

When navigating to any page of our application I get two failed requests to load JS files:当导航到我们应用程序的任何页面时,我收到两个加载 JS 文件的失败请求:

http://127.0.0.1:2/scripts/sfclient.xhr.min.js
http://127.0.0.1:2/scripts/sfclient.perf.prefix.min.js

Both of these requests fail with ERR_CONNECTION_REFUSED.这两个请求都失败并显示 ERR_CONNECTION_REFUSED。 Those script references are not in my JSP page so I assume they are injected by Prefix.这些脚本引用不在我的 JSP 页面中,所以我假设它们是由 Prefix 注入的。

Here is the raw HTML that tries to load the 2 scripts:这是尝试加载 2 个脚本的原始 HTML:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><script src="http://127.0.0.1:2/scripts/sfclient.xhr.min.js"></script>
    <script>var SPerfLib = window.SPerfLib || {}; SPerfLib.RequestId = '54fd58d1-7f7e-d3a4-0001-331676a83598'; if(!SPerfLib.isAttached) { document.addEventListener('DOMContentLoaded', function() { var l = document.createElement('script'); l.src = 'http://127.0.0.1:2/scripts/sfclient.perf.prefix.min.js'; document.body.appendChild(l);}); SPerfLib.isAttached = true;}</script>

I have tried looking for configuration options, but found none.我试图寻找配置选项,但没有找到。 I was not sure if the scripts should be server from port 2 or not.我不确定脚本是否应该是来自端口 2 的服务器。 The Prefix trace output is from port 2012 and that seems correct.前缀跟踪输出来自端口 2012,这似乎是正确的。

I tried uninstalling and re-installing Prefix, but with the same results.我尝试卸载并重新安装 Prefix,但结果相同。 There does not seem to be any later version of Prefix to try.似乎没有任何更高版本的 Prefix 可以尝试。

How do I get those scripts to load successfully?如何让这些脚本成功加载?

Part 2:第2部分:

On one particular page we have an XHR to retrieve some JSON data.在一个特定的页面上,我们有一个 XHR 来检索一些 JSON 数据。 The server is returning data correctly, but it is somehow deleted before it arrives at the browser.服务器正确返回数据,但它在到达浏览器之前以某种方式被删除。 The response headers show status 200 but 0 bytes content-length , which then causes some of our JS on the page to fail.响应头显示状态 200 但 0 字节content-length ,然后导致页面上的一些 JS 失败。 If I run the same thing w/o Prefix everything works as expected - status is still 200, but content-length is 37 and JSON payload is visible.如果我在没有前缀的情况下运行相同的东西,一切都会按预期工作 - 状态仍然是 200,但content-length是 37 并且 JSON 有效负载是可见的。

This is the response header for the XHR when Prefix is in play (note content-length: 0 )这是 Prefix 运行时 XHR 的响应头(注意content-length: 0

cache-control: no-cache, must-revalidate
content-language: en-US
content-length: 0
content-type: text/html
date: Mon, 31 Aug 2020 14:19:24 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
last-modified: Mon, 31 Aug 2020 14:19:24 GMT
pragma: no-cache
server: WildFly/10
status: 200
x-powered-by: Undertow/1
x-powered-by: JSP/2.3
x-stackifyid: V1|8bbdce1c-a507-bbdc-0001-3378bff33740|

If I remove the Stackify agent from the JVM options and disable the profiler, then the response header looks like this:如果我从 JVM 选项中删除 Stackify 代理并禁用分析器,则响应标头如下所示:

cache-control: no-cache, must-revalidate
content-language: en-US
content-length: 37
content-type: text/html;charset=UTF-8
date: Mon, 31 Aug 2020 14:25:12 GMT
expires: Thu, 01 Jan 1970 00:00:00 GMT
last-modified: Mon, 31 Aug 2020 14:25:12 GMT
pragma: no-cache
server: WildFly/10
status: 200
x-powered-by: Undertow/1

I'm appreciative of any suggestions!我很感激任何建议!

These issues you are having with Prefix are known issues with Prefix. Prefix 遇到的这些问题是 Prefix 的已知问题。 We are working on a complete re-write of Prefix (a reason why there has been such a big delay since our last release) and these items are things we are getting fixed in the new Prefix version.我们正在对 Prefix 进行完全重写(这是自上次发布以来出现如此大延迟的原因),这些项目是我们在新 Prefix 版本中得到修复的内容。 We are getting very close to releasing a Beta for Prefix, if you would like to be on the list to give the Prefix beta a try email the Stackify Support Team support@stackify.com我们即将发布 Prefix 的 Beta 版,如果您想在列表中试用 Prefix 测试版,请发送电子邮件至 Stackify 支持团队 support@stackify.com

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

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