zoukankan      html  css  js  c++  java
  • 转:java.io.IOException: Exceeeded maximum number of redirects: 5 解决版本

    Jmeter运行的时候出现的重定向超过n次的问题:

    When trying to test a Silverlight application, I get the below error. Has anybody experienced this before and advise me?

    Many thanks, Koen


    Thread Name: Thread Group 1-1
    Sample Start: 2009-05-11 17:48:41 BST
    Load time: 55
    Latency: 55
    Size in bytes: 662
    Sample Count: 1
    Error Count: 1
    Response code: Non HTTP response code: java.io.IOException
    Response message: Non HTTP response message: Exceeded maximum number of
    redirects: 5

    Response headers:
    HTTP/1.1 302 Found
    Date: Mon, 11 May 2009 16:48:41 GMT
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    X-AspNet-Version: 2.0.50727
    Location: /Default.aspx
    Set-Cookie: Portal.ReturnUrl=/loginad.aspx; path=/
    Set-Cookie: ASP.NET_SessionId=1xs1fhjhglhdiirgdvcj5y55; path=/; HttpOnly
    Set-Cookie:
    .ASPXAUTH=8D294EB05229E93A1D72B2BEF434316AA6ABEE57D13F3A6124E97AF34BC228948431B1
    6F1C2AF837CD085C1C66B4C0AF7588EB3FCC7BDC85FFB365B2C672092A16828A2E2A471F6CB597BE
    040784818C7AD06E8BA599BC1AA82EDEF8509DC18A; path=/; HttpOnly
    Cache-Control: private
    Content-Type: text/html; charset=utf-8
    Content-Length: 645

    解决办法:可以修改Jmeter的配置文件,把重定向的次数加大:

    修改jakarta-jmeter-2.3.2_1in下的jmeter.properties文件,把其中的#httpsampler.max_redirects=5改为:

    httpsampler.max_redirects=10(或者其它你需要的次数)就可以了。

  • 相关阅读:
    JavaScript函数调用
    JS数据类型&&typeof&&其他
    JavaScript闭包底层解析
    test
    C# 网页自动填表自动登录 .
    C#中没有id 没有name C#怎么点击按钮
    网页中403错误的含义
    C# 按钮置顶和隐藏
    C# webBrowser 屏蔽网页JS脚本错误弹窗
    HTML5 canvas globalCompositeOperation 设置绘图的顺序
  • 原文地址:https://www.cnblogs.com/lci05/p/4807189.html
Copyright © 2011-2022 走看看