Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Java NTLM

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java NTLM

    Hi,

    I have java code which makes connection with an IIS server using NTLM authentication.
    When I run this code from my windows machine it works fine.
    But when I run it through a Unix box , it gives me HTTP Status 500 and HTTP Response as

    java.io.IOException: Server returned HTTP response code: 500 for URL: http://dfsdfsdfs/asda.xlsx
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:494)
    at sun.net.www.protocol.http.HttpURLConnection$6.run( HttpURLConnection.java:1227)

    Can someone help me out ?

    Regards,
    Amey
    Last edited by amey; May 1st, 2010 at 07:06 PM.