wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes NTLM issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "NTLM issue" Watch "NTLM issue" New topic
Author

NTLM issue

amey mahadik
Greenhorn

Joined: Mar 27, 2008
Posts: 8
Hi ,

I have a piece of standalone java code which works fine on mywindows machine.
But when I run the same code on my server (Linux Box) it gives back an error HTTP 500 error.


Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://abcd.xlsx
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at java.net.HttpURLConnection.getResponseMessage(Unknown Source)
at TestNTLM.getAuthenticatedResponse(TestNTLM.java:50)
... 1 more




Does anyone have any idea how do I proceed ahead ?

Regards
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Error 500 is not related to login failures; those are 401 and 403. Error 500 is "Internal server error" which basically means the web page throws an error. Too bad the contents are no longer available in Java after the exception has been thrown; in VB I am able to retrieve the web page that displays the error.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
amey mahadik
Greenhorn

Joined: Mar 27, 2008
Posts: 8
But if that is the case then it should give me back the same response on my windows desktop machine.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

amey mahadik wrote:But if that is the case then it should give me back the same response on my windows desktop machine.

I don't see why. There's any number of configuration options that could be different between the two machines. For example I see you're doing some kind of authentication in your code; perhaps that works differently from one machine to the next.
amey mahadik
Greenhorn

Joined: Mar 27, 2008
Posts: 8
I have simply set the authenticator with the username and password so that it can be used by the networking code when the HTTP server or may be a proxy asks for authentication.

I am not sure if there are any configurations required for this.
 
wood burning stoves
 
subject: NTLM issue
 
Similar Threads
error on TreeMap
Problems connecting to LDAP from Weblogic Server: BAD_CERTIFICATE error!
Server returned HTTP response code: 405 for URL
problem with URLConnection
Applet not loading due to IOException