Skip to main content

NTLMv2 authentication from Linux using java 1.6

1 reply [Last post]
waynetg
Offline
Joined: 2007-06-04
Points: 0

Hi all
I created a web service client that connects to an Exchange 2010 server. I got it pretty close to success but then ended up with the following exception.

Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1104)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2252)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:406)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at com.sun.xml.ws.transport.http.client.HttpClientTransport.readResponseCodeAndMessage(HttpClientTransport.java:211)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.createResponsePacket(HttpTransportPipe.java:181)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:172)
... 49 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at sun.net.www.protocol.http.NTLMAuthentication.buildType3Msg(NTLMAuthentication.java:368)
at sun.net.www.protocol.http.NTLMAuthentication.setHeaders(NTLMAuthentication.java:225)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1261)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)
... 53 more
|#]

My question is, is this a bug in java, have any of you had success in this scenario? Shoul I keep trying or just give up?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dgodbey
Offline
Joined: 2006-10-27
Points: 0

How are you doing with this project? Are you still doing EWS work with Java and Jax-ws? I am actually trying to solve the very problem you describe here.
Dave