Hi,
i have form in my jsp , which when submitted ,calls javascript which will inturn submit the form , this is working fine in IE. but when i submit from chrome , i get below error.
-version:2.5]] Servlet failed with IOException
weblogic.utils.NestedRuntimeException: Cannot parse POST parameters of request: '/integration/r5/wfsworklist/WFTaskUpdate'
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.parseQueryParams(ServletRequestImpl.java:2000)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getQueryParams(ServletRequestImpl.java:1894)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.getParameter(ServletRequestImpl.java:1971)
at weblogic.servlet.internal.ServletRequestImpl$RequestParameters.access$800(ServletRequestImpl.java:1809)
at weblogic.servlet.internal.ServletRequestImpl.getParameter(ServletRequestImpl.java:796)
at com.hp.omit.wfs.TaskUpdateFilter.doFilter(TaskUpdateFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<input type="SUBMIT"
name="Update"
value="<%= Resource.getDisplayString(ResourceKeyConstants.LABEL_SAVEL_BUTTON_NAME, request.getLocale())%>"
OnClick="callUpdate()"/>
and javascript -->
function callUpdate()
{
/* need to check to invoke the order item saving */
var flag = document.getElementById("saveOrderItem");
if( flag != undefined )
{
/* to reset the object before saving */
callModifyXPath(0);
/* to save the new object */
callModifyXPath(1);
}
//validateing comment textArea.
if(!validateTaskComment()){
return;
}
var globalUpdateForm = document.forms['GLOBAL_UPDATE'];
for(i = 0 ; i < document.forms.length ; i++)
{
var formObj = document.forms[i];
var actionName = formObj.action;
var formName = formObj.name;
if(trim(formName) != 'GLOBAL_UPDATE' &&
trim(formName) != 'PayloadJSPXML' )
{
if(trim(actionName) == 'WFTaskUpdate' ||
actionName.match('/WFTaskUpdate') != 'null')
{
for( j = 0 ; j < formObj.elements.length ; j++)
{
var elemObj = formObj.elements[j];
var name = elemObj.name;
var value = elemObj.value;
var type = elemObj.type;
//CR11779 - Start
//alert("type::" + type+ " :: name ::" + name +" :: value ::" + value);
if(type == "text" || type == "textarea"){
var errorInvalidChar="";
var read = elemObj.readOnly;
if(value != null && value!="" && !read){
var lastindexofField = name.lastIndexOf("_");
var fieldName =name.substring(lastindexofField+1, name.length) ;
errorInvalidChar = validateControlChar(value, fieldName);
if(errorInvalidChar != ""){
alert(errorInvalidChar);
elemObj.focus();
elemObj.select();
return;
}
}
}
//CR11779 - end
//setElementValue(globalUpdateForm,name,value)
if(globalUpdateForm.elements[name] != null && name != "EmailMessage" )
{
globalUpdateForm.elements[name].value = value;
}
}
}
}
}
var amountLocalCurrency = document.GLOBAL_UPDATE.<%=PayloadFormGenerator.constructName(TaskformConstants.AMOUNTLOCALCURRENCY)%>;
if((amountLocalCurrency != 'null') && (amountLocalCurrency != undefined))
{
if( ! validateFloat(trim(amountLocalCurrency.value)) )
{
alert("Invalid format: Amount Local Curreny. Only number and dot are allowed.");
return;
}
}
updateFlexFields();
var assignmentWorkgroup = document.GLOBAL_UPDATE.<%=PayloadFormGenerator.constructName(TaskformConstants.ASSIGNMENTWORKGROUP)%>;
if( assignmentWorkgroup != 'null' && assignmentWorkgroup != undefined )
{
if ( assignmentWorkgroup.value == null || assignmentWorkgroup.value == '') {
alert ('Please select Local Team');
return;
}
}
var fyiTeam1Elem = document.PayloadJSPHTML.fyiTeam1;
if((fyiTeam1Elem != 'null') && (fyiTeam1Elem != undefined))
{
var fyiTeam2Elem = document.PayloadJSPHTML.fyiTeam2;
var fyiTeam3Elem = document.PayloadJSPHTML.fyiTeam3;
if(fyiTeam1Elem.options.length > 1 || fyiTeam2Elem.options.length > 1 || fyiTeam3Elem.options.length > 1)
{
if(fyiTeam1Elem.selectedIndex == 0 && fyiTeam2Elem.selectedIndex == 0 && fyiTeam3Elem.selectedIndex == 0)
{
alert('Please select FYI Team');
return;
}
}
}
globalUpdateForm.submit();
}