编程

当前位置:澳门新莆京娱乐官网 > 编程 > xml文件报错澳门新莆京娱乐官网

xml文件报错澳门新莆京娱乐官网

来源:http://www.drgigabytes.com 作者:澳门新莆京娱乐官网 时间:2019-12-28 22:22

澳门新莆京娱乐官网 1

基于maven搭建的Java自动化测试框架,右键运行testNG.xml文件报错,请各位大佬看看怎么解决?完整报错信息:[RemoteTestNG]detectedTestNGversion6.14.3org.testng.TestNGException:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtargetatorg.testng.TestNG.parseSuite(TestNG.java:327)atorg.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:348)atorg.testng.TestNG.initializeEverything(TestNG.java:995)atorg.testng.remote.support.RemoteTestNG6_12.initialize(RemoteTestNG6_12.java:22)atorg.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:98)atorg.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)atorg.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)Causedby:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtargetatsun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)atsun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)atjava.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)atsun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)atsun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)atsun.security.validator.Validator.validate(Validator.java:262)atsun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)atsun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)atsun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)atsun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)atsun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)atsun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)atsun.security.ssl.Handshaker.process_record(Handshaker.java:965)atsun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064)atsun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)atsun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)atsun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)atsun.net.(HttpsClient.java:559)atsun.net.(AbstractDelegateHttpsURLConnection.java:185)atsun.net.(HttpURLConnection.java:1564)atsun.net.(HttpURLConnection.java:1492)atsun.net.(HttpsURLConnectionImpl.java:263)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1304)atcom.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1270)atcom.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:264)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1161)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1045)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:959)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)atcom.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:195)atorg.testng.xml.XMLParser.parse(XMLParser.java:38)atorg.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:16)atorg.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:9)atorg.testng.xml.Parser.parse(Parser.java:152)atorg.testng.xml.Parser.parse(Parser.java:233)atorg.testng.TestNG.parseSuite(TestNG.java:295)...6more

本文由澳门新莆京娱乐官网发布于编程,转载请注明出处:xml文件报错澳门新莆京娱乐官网

关键词: