Home | Techie Talk | Story Time | About | Contact

Friday, December 28, 2007

Method get is not defined in RFC 2068 and is not supported by the Servlet API.


 
 
We are working in a web based software product, and we make lot of AJAX calls in the application. Today, while making an AJAX call to an servlet, the application started throwing the following strange exception:

Method get is not defined in RFC 2068 and is not supported by the Servlet API.

More interestingly this error occurred only in one particular computer and the program worked fine in all other computers!!!

After nearly one day of analysis and debugging, finally we found the error :

In our code we had marked the request as "get", when we changed it to "GET" it worked like a charm!!!


Likewise, if you get the similar error message for "post" then changing it as "POST" should solve the problem.

Method get is not defined in RFC 2068 and is not supported by the Servlet API, Servlet, Java, Troubleshooting, Web Application Problems, Apache Tomcat problem, Ajax Call, Ajax Problems

Labels: , , , , , , ,

9 Comments:

Anonymous Anonymous said...

Thanks for posting this. I had the same issue and changing "Get" to "GET" fixed the problem. Finding this saved me a lot of grief!

1:49 PM  
Anonymous Anonymous said...

Thanks, had this same problem when posting from within a MS-SQL stored procedure to a Linux box

1:47 AM  
Anonymous Anonymous said...

Thank you! I've just had exactly the same problem, you saved me a lot of time!!

2:43 AM  
Anonymous Kapil said...

Hi,

Thanks for sharing this experience. I was getting such problem for POST method. And it is solved by changing "Post" to "POST". You saved a lot time of me.

Thanks.

7:24 AM  
Anonymous Anonymous said...

Well We are also having same issue but eventhough we change the request to 'POST', we still experiencing the issue. We are using jQuery 1.4 to make ajax request. Any other reason why it is throwing exception.

8:07 AM  
Blogger Roberto [Knux] said...

Thanks a lot
I would never think on this way!


---
Obrigado, mais de trĂªs anos e o problema ainda acontece.
Eu nunca pensaria em arrumar essa parte. Obrigado.

5:39 AM  
Blogger Dhrumil Shah said...

Thank you very much. i am also facing the same issue and now its resolved..

6:02 AM  
Anonymous Anonymous said...

Thank you so much!!!!

2:44 PM  
Anonymous Anonymous said...

Searched approx. one hour for a solution of this problem. And this one works.
Thank you a lot!

6:03 AM  

Post a Comment

Links to this post:

Create a Link

<< Home