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:
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.
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: Ajax Call, Ajax Problems, Apache Tomcat problem, Java, Method get is not defined in RFC 2068 and is not supported by the Servlet API, Servlet, Troubleshooting, Web Application Problems
9 Comments:
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!
Thanks, had this same problem when posting from within a MS-SQL stored procedure to a Linux box
Thank you! I've just had exactly the same problem, you saved me a lot of time!!
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.
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.
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.
Thank you very much. i am also facing the same issue and now its resolved..
Thank you so much!!!!
Searched approx. one hour for a solution of this problem. And this one works.
Thank you a lot!
Post a Comment
<< Home