51Testing软件测试论坛

标题: jmeter压力测试报错,求大神指导步骤详细点,新手上拉 [打印本页]

作者: qgd201651    时间: 2016-12-23 17:01
标题: jmeter压力测试报错,求大神指导步骤详细点,新手上拉
2016/12/23 16:58:58 ERROR - jmeter.monitor.parser.ParserImpl: Failed to parse the bytes org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at org.apache.jmeter.monitor.parser.ParserImpl.parseBytes(ParserImpl.java:78)
        at org.apache.jmeter.monitor.model.ObjectFactory.parseBytes(ObjectFactory.java:50)
        at org.apache.jmeter.visualizers.MonitorAccumModel.addSample(MonitorAccumModel.java:165)
        at org.apache.jmeter.visualizers.MonitorHealthVisualizer.add(MonitorHealthVisualizer.java:110)
        at org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:595)
        at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:571)
        at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
        at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:796)
        at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:456)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
        at java.lang.Thread.run(Thread.java:745)

2016/12/23 16:58:58 ERROR - jmeter.threads.ListenerNotifier: Detected problem in Listener:  java.lang.NullPointerException
        at org.apache.jmeter.visualizers.MonitorAccumModel.addSample(MonitorAccumModel.java:166)
        at org.apache.jmeter.visualizers.MonitorHealthVisualizer.add(MonitorHealthVisualizer.java:110)
        at org.apache.jmeter.reporters.ResultCollector.sendToVisualizer(ResultCollector.java:595)
        at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:571)
        at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
        at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:796)
        at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:456)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
        at java.lang.Thread.run(Thread.java:745)

2016/12/23 16:58:58 INFO  - jmeter.threads.ListenerNotifier: Continuing to process further listeners
2016/12/23 16:58:58 INFO  - jmeter.threads.JMeterThread: Thread is done: 首页-牛人推荐-获取全部牛人 1-1
2016/12/23 16:58:58 INFO  - jmeter.threads.JMeterThread: Thread finished: 首页-牛人推荐-获取全部牛人 1-1
2016/12/23 16:58:58 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/12/23 16:58:58 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)

作者: 梦想家    时间: 2016-12-24 09:07
我不会性能
作者: 妖妖艳艳    时间: 2016-12-26 18:02
我也出现这个问题,不知道怎么解决
作者: 地壳    时间: 2016-12-27 11:48
这是SAX解析XML报的错,你检查一下是不是XML声明时前面加了空格了,这会造成SAX解析错误,还有后面紧接着的空指针异常!
还有你这是压测过程中报的错还是一开始报的错?




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2