Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/357.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 运行jMeter脚本时由于状态代码409而出错_Java_Performance_Jmeter_Performance Testing - Fatal编程技术网

Java 运行jMeter脚本时由于状态代码409而出错

Java 运行jMeter脚本时由于状态代码409而出错,java,performance,jmeter,performance-testing,Java,Performance,Jmeter,Performance Testing,我执行了jMeter脚本,它返回409、404或500的响应 以下是其中一个请求的响应: Thread Name: Thread Group 1-1 Sample Start: 2017-07-20 12:28:32 IST Load time: 1028 Connect Time: 278 Latency: 616 Size in bytes: 59337 Sent bytes:824 Headers size in bytes: 815 Body size in bytes: 58522 S

我执行了jMeter脚本,它返回409、404或500的响应

以下是其中一个请求的响应:

Thread Name: Thread Group 1-1
Sample Start: 2017-07-20 12:28:32 IST
Load time: 1028
Connect Time: 278
Latency: 616
Size in bytes: 59337
Sent bytes:824
Headers size in bytes: 815
Body size in bytes: 58522
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 409
Response message: Conflict

Response headers:
HTTP/1.1 409 Conflict
Date: Thu, 20 Jul 2017 06:58:31 GMT
Server: Apache
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload
X-ATG-Version: version=QVRHUGxhdGZvcm0vMTEuMixDb21tZXJjZVJlZmVyZW5jZVN0b3JlLzExLjI=
Set-Cookie: userPrefLanguage=en_GB; expires=Sat, 26-Mar-2067 02:58:31 +00:00; path=/store/; HttpOnly
X-ATG-Version: version=QVRHUGxhdGZvcm0vMTEuMixDb21tZXJjZVJlZmVyZW5jZVN0b3JlLzExLjI=
Set-Cookie: userPrefLanguage=en_GB; expires=Sat, 26-Mar-2067 02:58:31 +00:00; path=/store/; HttpOnly
Pragma: no-cache
Cache-Control: no-cache
Expires: Tue, 04 Dec 1993 21:29:02 GMT
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Vary: User-Agent
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html;charset=UTF-8


HTTPSampleResult fields:
ContentType: text/html;charset=UTF-8
DataEncoding: UTF-8

如何解决上述问题?

您是否正在更新比现有资源旧的资源

看。等等

在响应PUT请求时最有可能发生冲突。对于 例如,当上载一个文件时,您可能会得到409响应,该文件是 比服务器上已存在的版本旧,从而生成版本 控制冲突