Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.net.SocketException: Unconnected sockets not implemented
    text
    copied!<p>Trying to connect to sharepoint server using java code and got below stacktrace.I am editing already existing code and changed the url of sharepoint code..I am very new to this sharepoint module..PLease help :)</p> <pre><code> [java] Caused by: java.net.SocketException: Unconnected is not implemented [java] at javax.net.SocketFactory.createSocket(SocketFactory.java:97) [java] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.apache.commons.httpclient.protocol.ReflectionSocketFactor y.createSocket(ReflectionSocketFactory.java:116) [java] at org.apache.commons.httpclient.protocol.SSLProtocolSocketFacto ry.createSocket(SSLProtocolSocketFactory.java:130) [java] at org.apache.commons.httpclient.HttpConnection.open(HttpConnect ion.java:707) [java] at org.apache.commons.httpclient.MultiThreadedHttpConnectionMana ger$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) [java] at org.apache.commons.httpclient.HttpMethodDirector.executeWithR etry(HttpMethodDirector.java:387) [java] at org.apache.commons.httpclient.HttpMethodDirector.executeMetho d(HttpMethodDirector.java:171) [java] at org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl ient.java:397) [java] at org.apache.axis.transport.http.CommonsHTTPSender.invoke(Commo nsHTTPSender.java:196) </code></pre> <p>Code:</p> <pre><code>public boolean windowsNTLMAuthentication(String uname, String pass, String server, String urlAddress, String domain) { try { NtlmAuthenticator authenticator = new NtlmAuthenticator(); authenticator.setAuthentication(userName, password); NtlmJcifsCredentials.register(userName, password, server, domain); stub = new ListsLocator(); EngineConfiguration econfig = stub.getEngineConfiguration(); stub.setListsSoapEndpointAddress(urlAddress); stub.setEngineConfiguration(econfig); stub.setMaintainSession(true); } catch (Exception ex) { ex.printStackTrace(); return false; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload