81,092
社区成员
发帖
与我相关
我的任务
分享
System.setProperty("javax.net.ssl.trustStore", "F:/server.keystore");
System.setProperty("javax.net.ssl.trustStorePassword", "****");
RISService70 ris = new RISService70(new URL("https://*******?wsdl"),
new QName("***", "****"));
RisPortType service = ris.getRisPort70();
Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://**********?wsdl. It failed with:
Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://**************?wsdl.
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:173)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:155)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:120)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:257)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:220)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:168)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:96)
at javax.xml.ws.Service.<init>(Service.java:77)
at com.cisco.schemas.ast.soap.RISService70.<init>(RISService70.java:49)
at cn.com.citycloud.WebserviceTest.main(WebserviceTest.java:18)