问题标签 [no-response]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2561 浏览

php - Oracle PHP 更新无反应

我今天遇到了一个非常奇怪的 Oracle 问题。

我用 xampp 设置了一个新服务器进行开发,我激活了 mssql 和 oracle,一切都很好,直到我尝试执行更新语句。

在 PHP 5.3 中,每个选择、插入等都可以正常工作。

我也可以解析该语句并返回一个资源 ID,但是当我尝试执行该语句时,我的整个站点都没有响应。

没有错误,什么都没有。只是超时,直到我重新启动apache。

这里的代码......这是测试代码,所以应该没有问题。

任何提示或想法?:-( 我已经尝试重新安装 oracle 即时客户端和另一个版本。我现在正在使用 10g,就像我们的数据库一样。

最好的问候垫

0 投票
0 回答
4766 浏览

java - Struts 1.x 和 AJAX:Action-Class 没有收到请求

我尝试在 Struts 1.x 和 Ajax 之间开发一个简单的通信。我有一个带有ajax 代码的jsp,它应该将“用户名”和“密码”发送到Action-Class。

AJAX-Code 很好,但是 Action-Class 没有得到 AJAX 的响应。
问:你怎么知道 Action-Class 没有收到请求?
A:因为我在 Action-Class 中写入了一个 System.out.println("..."),它在测试应用程序时从未使用过。

我在没有 AJAX 的情况下也尝试了这个,只是将数据发送到 Action-Class 的 jsp 中的普通“表单”。就是这样,它可以毫无问题地工作。它获取数据并打印 println("...") 的消息。

我的问题是,为什么 Action-Class 没有得到 AJAX 的请求?

这是一些代码片段:

///JSP - Ajax 脚本

///struts-config.xml

///IndexAction.java 类

///从 JSP 生成的消息(在 firefox 中测试时)
启动 doAjaxPost()...
实现 httpReq...
检查状态...
打开连接...
pm: 检查状态... ///pm 代表jsp中的函数processMessage()
pm: state: 1
State not ready: 1
send data...
...完成
pm: check state...
pm: state: 2
State not ready: 2
pm: check state...
下午:状态:3
状态未准备好:3
下午:检查状态...
下午:状态:4
无响应:404

正如我之前所说,Eclipse-Console 没有打印来自 Action-Class 的消息,这使我认为 Action-Class 没有得到 AJAX 的请求。

它很神秘,因为它在没有 ajax 的情况下也能工作,而且我看不到问题所在......我希望有人能帮助我。对不起我的英语不好:S

0 投票
0 回答
124 浏览

actionscript-3 - as3 flashdevelop 在构建后冻结

目前我的游戏似乎运行良好,唯一的问题是构建器没有响应 10 次中的 8 次。问题是它为什么停止工作以及我该如何解决它。

这是我的代码。

提前致谢。

0 投票
1 回答
410 浏览

ios - iOS Requests to Server Overnight w/ No Response RestKit

I'm working with an app utilizing RestKit (which may or may not be relevant to the issue I'm having) in which the app wakes up for a few seconds after certain intervals and makes a managedObjectRequestOperation to a server. This works perfectly all day long, but typically between about 1am and 7am when my device is sitting charging having not been used in a few hours the request gets sent but I'm not registering any sort of response.

The requests don't seem to be timing out or any other similar errors, my logs print that I'm sending a request and then nothing happens at all, no response, no error... Does the phone go into some sort of coma-mode overnight? My device is an iPhone 5 running iOS7.

EDIT:

What I was basically doing is sending a request to a server and updating core data with the results, which then updates a tableView. My original implementation basically sent an NSNotification to the app, which tells a tableview to send a request and update itself according to the results, similar to this:

When really it should be doing this:

Is that a more accurate representation of the correct steps?

0 投票
1 回答
678 浏览

c# - WinForm 如何托管一个长期运行的 IronPython 脚本,并更新 UI 以进行进度更改

我需要一个 WinForm 作为 IronPython 主机,并且在 IronPython 运行时,脚本可以更新 UI 以报告其进度。我有以下代码,它确实更新了 UI,但问题是窗口没有响应。我很感激任何帮助。

0 投票
0 回答
510 浏览

magento - 编辑和更改不反映 robots.txt 文件 Magento

谷歌没有抓取我的一些网站网址

为此,我想在 robots,txt 文件中进行一些更改

. 但是当我转到magento根文件夹并尝试编辑robot.txt文件时

,当我在浏览器上重新加载该文件时,它没有显示我在文件中所做的更改。文件权限设置为777,缓存清空

我什至重命名了文件,但它仍然在浏览器上加载。

请建议我可能是什么问题。

提前致谢。

0 投票
1 回答
838 浏览

php - 在本地开发机器上模拟临时无响应的服务器或网络拥塞 (Apache/PHP)

我有一个交互式网页,在用户交互时会向服务器发出异步请求(加载图像、数据等)。

作为最后阶段,我正在实现 JavaScript 代码,以便正确处理服务器太忙或发生网络拥塞且请求未得到满足的情况。

在开发过程中,服务器和客户端(浏览器)都在开发机器(localhost)上运行。

为了测试代码,我必须在本地开发机器上模拟这些情况。

我可以轻松模拟“服务不可用”响应。

但是我怎样才能模拟“完全没有反应”呢?

正在放置

php在请求足够达到我需要模拟的内容时执行的开始?

还是有什么东西会回到浏览器?

有没有更好的方法在服务器可用性较差的情况下测试浏览器端代码?

编辑

一种选择是按照Dave在他的回答中的建议关闭在 localhost 上运行的服务器。

我宁愿——如果可能的话——避免这种情况。

我希望能够错过一些请求并满足其他一些请求。

这背后的想法是,在浏览器上运行的客户端 JavaScript 代码将重试失败的请求。

服务器模拟一个请求不可用,客户端重试,服务器给出响应......

0 投票
0 回答
195 浏览

http - http GET 消息后服务器没有响应

我正在编写一个简单的 HTTP 客户端程序,它应该可以工作,但是当我发送 GET 消息时,服务器没有响应,过了一会儿我得到 504 网关超时,因此建立了连接。这是代码:

0 投票
3 回答
6705 浏览

sas - SAS代码在提交后停止运行,日志中也没有任何内容

我正在编写一个也使用一些宏的 SAS 程序。但是,SAS 突然停止运行我提交的代码。如果我选择并提交部分代码,我可以在日志中看到它被复制,但仅此而已。没有注释、错误或警告。代码也没有被执行。如果代码是没有任何宏变量的简单数据步骤,则无关紧要。我错过了什么吗?我应该检查或验证什么?

0 投票
3 回答
2526 浏览

java - Android点击按钮没有响应

我的 android 应用程序中有一个登录活动。它由两个EditText widgets(Username, Password)和组成two buttons(Login,Register)。问题是当我单击按钮时,我的 logcat 中没有响应并且没有错误。我已经导入android.view.View.OnClickListener并设置了OnClickListeners.

奇怪的是,当我使用它时它运行良好FragmentActivities/FragmentViews,我收到 JSON 响应并登录,但是当我改回“正常”活动时,它根本没有响应。对此有任何帮助,也许我缺少某些东西但没有看到?代码如下。

登录.java

login_layout.xml

注册.java

注册布局

MainActivity.java

activity_main.xml

显现