do the logs have anything helpful at all? Almost sounds as if you save "out of order" - say, skipping from set 2 to set 3 you get this error, where as saving the first set or all sets won't cause the issue?
-----Original Message----- From: Randeep Walia [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 5:03 PM To: users@tomcat.apache.org Subject: Parameter Map is null after Ajax Request Over a year ago, a user reported a problem with his Request parameter map showing up null sporadically on his application: http://mail-archives.apache.org/mod_mbox/tomcat-dev/200601.mbox/[EMAIL PROTECTED] I am suddenly seeing similar behavior with our AJAX-enabled web application. We are using RedHat Linux with Tomcat 5.5 and JDK 1.5. Our application loads sets of text area dynamically using AJAX (controlled by the Prototype library). The user can choose to open one or more sets of text data, edit them, and submit the changes using AJAX. It normally works well, but I am seeing a problem with certain sets. Say I have several sets of text data. I load the third set successfully and edit it. Saving Set 3 will demonstrate a problem whereby the servlet that processes this request has an empty Parameter map, despite their being a considerable amount of data being transmitted. A different set, say set 2, submits this data just fine. My first theory as to why this was happening was that some invalid character or too much data was causing the parsing to fail, but I found that loading both sets 2 and 3 together and then saving (which saves both sets) rather bizarrely caused the problem to vanish. What are the circumstances under which the Parameter map could come up null like this? I'm not sure what code to post since this is pretty standard stuff, but here is the Submit function which uses Prototype: function ajaxSend(inForm) { //If there is no input get the first form on the document var ajxForm = (inForm)?inForm:getAjxForm(); setAjaxStatus('Submitting'); var submitter = new Ajax.Request( 'EditPaper', { method: 'post', parameters: Form.serialize(ajxForm), onComplete: ajaxReportStatus, onFailure: ajaxReportError } ); return false; //Stops the form from submitting } --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]