51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

测试开发精英班,通向高级软件测试工程师论坛测试积点免费获取渠道攻略【长期招募】博为峰网校招聘兼职讲师!横扫BAT,Python全栈测试开发技能大全
【112期】:软件测试技术哪项更吃香!中国软件测试行业现状调查报告新鲜出炉! 【杂志】做测试行业不偏科的尖子生! 自学软件测试那点事
查看: 3753|回复: 1

[原创] loadrunner脚本回放Error -26612: HTTP Status-Code=500问题

[复制链接]

该用户从未签到

发表于 2012-2-23 11:44:54 | 显示全部楼层 |阅读模式
有人在没?
想请教个问题
我录制的脚本回放时总是报错:Action.c(538): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.1.251.71:9088/console/uploads/upload_pics.do"          [MsgId: MERR-26612]
Action.c(538): web_submit_data("upload_pics.do") highest severity level was "ERROR", 5439 body bytes, 304 header bytes          [MsgId: MMSG-26388]

看日志有错误:****** Start Log Message ******
Web Recorder version : 9.50.0.3031
Recording Mode: URL-Based script
        Using concurrent groups
Correlation is enabled system wide
Not recording headers
Not excluding content types
Do not record this content types as a resource:
        text/html
        text/xml
Reset context between actions
Protocol Type: Multi-QTWeb

$$$$$$ End Log Message $$$$$$

Code generation version: 9.50.0.3010

****** Request Header For Transaction With Id 3 ******
GET http://10.1.251.71:9088/console/login.jsp HTTP/1.0
Accept: */*
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET4.0C; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
Host: 10.1.251.71:9088
Proxy-Connection: Keep-Alive


$$$$$$ Request Header For Transaction With Id 3 Ended $$$$$$

****** Response Header For Transaction With Id 3 ******
HTTP/1.0 407 Proxy Authentication Required
Server: squid/3.0.STABLE25
Mime-Version: 1.0
Date: Thu, 23 Feb 2012 02:03:20 GMT
Content-Type: text/html
Content-Length: 1970
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
X-Cache: MISS from Squid_VM2.asiainfo-linkage.com
Via: 1.0 Squid_VM2.asiainfo-linkage.com (squid/3.0.STABLE25)
Proxy-Connection: close


$$$$$$ Response Header For Transaction With Id 3 Ended $$$$$$

****** Response Body For Transaction With Id 3 ******
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: Cache Access Denied</title>
<style type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></style>
</head>
<body>
<h1>ERROR</h1>
<h2>Cache Access Denied.</h2>
<hr>
<p>The following error was encountered while trying to retrieve the URL: <a href="http://10.1.251.71:9088/console/login.jsp">http://10.1.251.71:9088/console/login.jsp</a></p>

<blockquote>
<p><b>Cache Access Denied.</b></p>
</blockquote>

<p>Sorry, you are not currently allowed to request http://10.1.251.71:9088/console/login.jsp from this cache until you have authenticated yourself.</p>

<p>Please contact the <a href="mailto:yuguo@asiainfo.com?subject=CacheErrorInfo%20-%20ERR_CACHE_ACCESS_DENIED&amp;body=CacheHost%3A%20Squid_VM2.asiainfo-linkage.com%0D%0AErrPage%3A%20ERR_CACHE_ACCESS_DENIED%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Thu,%2023%20Feb%202012%2002%3A03%3A20%20GMT%0D%0A%0D%0AClientIP%3A%2010.1.1.25%0D%0A%0D%0AHTTP%20Request%3A%0D%0AGET%20%2Fconsole%2Flogin.jsp%20HTTP%2F1.0%0AAccept%3A%20*%2F*%0D%0AAccept-Language%3A%20zh-cn%0D%0AUser-Agent%3A%20Mozilla%2F4.0%20(compatible%3B%20MSIE%206.0%3B%20Windows%20NT%205.1%3B%20SV1%3B%20.NET4.0C%3B%20.NET%20CLR%202.0.50727%3B%20.NET%20CLR%203.0.04506.30%3B%20.NET%20CLR%203.0.4506.2152%3B%20.NET%20CLR%203.5.30729%3B%20InfoPath.2)%0D%0AHost%3A%2010.1.251.71%3A9088%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AX-Forwarded-For%3A%2010.1.32.151%0D%0A%0D%0A%0D%0A">cache administrator</a> if you have difficulties authenticating yourself or <a href="http://Squid_VM2.asiainfo-linkage.com/cgi-bin/chpasswd.cgi">change</a> your default password.</p>

<br>   
<hr>
<div id="footer">Generated Thu, 23 Feb 2012 02:03:20 GMT by Squid_VM2.asiainfo-linkage.com (squid/3.0.STABLE25)</div>
</body></html>

使用树结构,单步执行,查看快照,也是到那一步,页面出错,信息是:org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:59)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

谁能帮我看看啊?
回复

使用道具 举报

  • TA的每日心情
    奋斗
    2018-2-28 18:04
  • 签到天数: 40 天

    连续签到: 1 天

    [LV.5]测试团长

    发表于 2012-2-27 13:33:50 | 显示全部楼层
    空指针报错,程序有问题,请开发方面修改程序。
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2020-5-30 01:11 , Processed in 0.072177 second(s), 28 queries .

    Powered by Discuz! X3.2

    © 2001-2020 Comsenz Inc.

    快速回复 返回顶部 返回列表