cloudsoft / winrm4j

Apache License 2.0
93 stars 53 forks source link

Weird message for wrong winrm port #68

Open andreaturli opened 7 years ago

andreaturli commented 7 years ago

When using a wrong custom port, winrm4j can't create a socket but it returns a weird error message, something like:

Caused by: java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend.ClientProxy

Is it possible to improve it, somehow?

neykov commented 7 years ago

Thanks @andreaturli, we should look into this. To add some more details - the error is returned when trying to connect to a port which is not open. For example misconfiguring the port (using 8985 instead of 5985).