• Post Reply Bookmark Topic Watch Topic
  • New Topic

Server returned HTTP response code: 405 for URL: http:??? nested exception is:  RSS feed

 
Martin Simpao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Running my application, I have been getting a message that states "There has been a network error, Please select exit to restart the application" Upon clicking the Exit button, the applet terminates. I have checked the out file and found the following message:

2010-06-23 13:37 *** [ClientComm register] [Server returned HTTP response code: 405 for URL: http://localhost/Test/abc/claim; nested exception is:
java.io.IOException: Server returned HTTP response code: 405 for URL: http://localhost/Test/abc/claim]
errorType = [2]

From recent postings in this site I am aware that a code of 405 means "method not allowed". I would like to know what the rest of the message means. As you can see the message does not mention a particular method I am calling. From what I know of the application "claim" is a class. Has anybody run into this?
 
Greg Charles
Sheriff
Posts: 3015
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "method" that a 405 error is talking about is an HTTP method, which is usually GET or POST, but could be HEAD, PUT, DELETE, or several others. I'd guess you are sending an HTTP request to your server that it doesn't support. Can you see the server logs, or even better, debug the server from the point it receives the request?
 
Rob Spoor
Sheriff
Posts: 21094
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg is right. You're trying to perform a POST where only GET is allowed, or vice versa, or you're using one of the other methods and it isn't allowed.
 
Martin Simpao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for just getting back now, I was diverted to another issue. As far as logs, are you referring to the Tomcat logs or OS logs? I am currently running it on my desktop using Windows XP Pro, Tomcat 5 and IIS. How can I enable my desktop to accept both get and post?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!