3

我正在使用 CLI 工具运行 checkmarx 扫描。我一直在安装了 Windows 的本地计算机上运行它,并且运行良好。每当我尝试从安装了 Windows 的 VM 运行相同的命令时,就会出现我的问题。我收到此错误:

Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://checkmarx.server.com/cxwebclient//cxwebinterface/cxWSResolver.asmx?WSDL at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1676) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:646) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:338) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2188) ... 18 more [2016-12-05 00:18:48,569 FATAL] Server Name is invalid or network is unavailable. Error message: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.

4

1 回答 1

0

由于无法识别服务器名称,因此能够使用服务器 IP 地址来使其正常工作。

谢谢。

于 2017-03-02T02:18:42.587 回答