• 转: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(或者其它你需要的次数)就可以了。

  • 相关阅读:
    在 WF 4 中编写自定义控制流活动
    CLS(公共语言规范)的CLSCompliant(跨语言调用)
    public类型中internal成员
    最短路径—Dijkstra算法和Floyd算法
    System.Windows.Forms
    第一个Xamarin的 Android 应用程序!
    内地开源镜像网站
    Xamarin C# Android for Windows 安装
    TortoiseSVN 源代码下载
    Install Visual Studio Tools for Apache Cordova
  • 原文地址:https://www.cnblogs.com/lci05/p/4807189.html
Copyright © 2020-2023  润新知