cloudsoft / winrm4j

Apache License 2.0
93 stars 53 forks source link

No Protocol #100

Open mayurvpatil opened 5 years ago

mayurvpatil commented 5 years ago

Exception in thread "main" java.lang.IllegalArgumentException: java.net.MalformedURLException: no protocol: ec2-.us-west-2.compute.amazonaws.com at io.cloudsoft.winrm4j.client.WinRmClientBuilder.toUrlUnchecked(WinRmClientBuilder.java:179) at io.cloudsoft.winrm4j.client.WinRmClientBuilder.(WinRmClientBuilder.java:39) at io.cloudsoft.winrm4j.client.WinRmClient.builder(WinRmClient.java:95) at basic.MainWinRM.main(MainWinRM.java:18) Caused by: java.net.MalformedURLException: no protocol: ec2-.us-west-2.compute.amazonaws.com at java.net.URL.(URL.java:593) at java.net.URL.(URL.java:490) at java.net.URL.(URL.java:439) at io.cloudsoft.winrm4j.client.WinRmClientBuilder.toUrlUnchecked(WinRmClientBuilder.java:177)

While connecting to AWS windows instance I faced above issue.