Hi All,
We are using jQuery(1.2.3 through ExtJS 2.1 adapter) ajax post and we are getting 12031 error message sporadically.
What could be the reason of this error?
Sample code
jQuery.post('${pageContext.request.contextPath}/sample/someAction.do', jQuery("#form_name").serialize(), function(status){
//Some other code for checking the status......
}
Form has two textarea(one disabled, one enabled) and a check box. And a submit button.
And there is one ajax error handling function which is for handling 12031 kind of error msg. Which sometimes shows a alert box saying that error happen in ajax post.
$("#form_name").ajaxError(function(event, xhr, settings, exception) {
var errorMessage = "Error in ajax post -";
errorMessage += "\n\t url: " + settings.url;
errorMessage += "\n\t exception: " + exception + ((exception) ? " - " + exception.description : "");
errorMessage += "\n\t readyState: " + xhr.readyState;
errorMessage += "\n\t status: " + xhr.status;
errorMessage += "\n\t statusText: " + xhr.statusText;
errorMessage += "\n\t responseText: " + xhr.responseText;
errorMessage += "\n\t";
alert('Error occured in ajax post..........'+errorMessage);
});
This alert box will display only when there is error on ajax post and the error code is 12031(
The connection with the server was reset.).
Now there is one more error code we are able to see is 12152(
The server returned an invalid or unrecognized response.).
Is this a jQuery(1.2) issue or something else in environment or is it IE7?
If we resubmit the request then it is working fine.
Thanks