Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in jsp:forward in WAS  RSS feed

 
Praveen Govindan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the following stacktrace in the WAS set up. the same JSP works perfectly fine in Weblogic. Could someone help me in resolving the same.
I am using WAS 6.0 to test this. I have also pasted the JSP code after the stacktrace for reference

java.lang.IllegalStateException: jsp.error.attempt_to_clear_flushed_buffer
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:492)
at com.ibm._jsp._EditValidationParametersProcess._jspService(_EditValidationParametersProcess.java:187)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2872)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


<!-- EditValidationParametersProcess.jsp -->

<%@ page errorPage="/lcom/common/jsp/ApplicationError.jsp"%>
<%@ page import="java.util.*"%>
<%@ page import="com.logistics.optifreight.core.ejb.HomeHolder"%>
<%@ page import="com.logistics.basedata.util.finitevalue.ParameterGroup"%>
<%@ page import="com.logistics.optifreight.admin.parameter.CompanyParamAccessor"%>
<%@ page import="com.logistics.basedata.parameter.*"%>
<%@ page import="com.logistics.basedata.ejb.parametermanager.*"%>
<%@ page import="com.logistics.basedata.paramdefinition.*"%>
<%@ page import="com.logistics.optifreight.admin.ucl.UCL"%>
<%@ page import="com.logistics.optifreight.permission.*"%>
<%@ page import="com.logistics.javalib.util.*"%>
<%@ page import="java.util.List"%>

<%@
taglib uri="/lcom/taglib.tld" prefix="util"
%>
<util:usePermissionsBeanbeanId="permissions_evpp"
userId='<%= UCL.getUserIdNumber(request).toString() %>'
scope="session"
/>

<%
final String MAIN_SELECTION = "businessRules";
final String SUB_SELECTION = "validation";
final String OFR_HELP_FILE = "help2.html";
%>

<util:isNotAllowed beanId="permissions_evpp" permissionId='<%=OMUserPermissions.ADMIN_BUSINESS_RULES%>' >
<jsp:forward page="/lcom/common/jsp/NoPermission.jsp">
<jsp aram name="dataType" value="Business Rules" />
<jsp aram name="mainSelection" value='<%= MAIN_SELECTION %>' />
<jsp aram name="subSelection" value='<%= SUB_SELECTION %>' />
<jsp aram name="helpFile" value='<%= OFR_HELP_FILE %>' />
</jsp:forward>
</util:isNotAllowed>


<%
CompanyParamPrimaryKey companyParamPK = new CompanyParamPrimaryKey(
UCL.getShipperId(request));
companyParamPK.setParameterGroup(ParameterGroup.COM_VALIDATE);
request.setAttribute("parameterPrimaryKey", companyParamPK);

request.setAttribute("parameterAccessorManager", new CompanyParamAccessor());
%>

<jsp:include page="/ofr/admin/parameter/jsp/EditParametersProcess.jsp" />

<%
//NOTE: above EditParametersProcess.jsp sets the errorList attribute
List errorList = (List) request.getAttribute("errorList");
String group=request.getParameter("validationSubGroup");
if (errorList != null && errorList.size() > 0)
{
//String errorUrl = "/ofr/admin/parameter/jsp/EditValidationParameters.jsp?validationSubGroup=" + request.getParameter("validationSubGroup");
%>
<jsp:include page="/ofr/admin/parameter/jsp/EditValidationParameters.jsp" >
<jsp aram name="validationSubGroup" value='<%= group%>' />
</jsp:include>
<%
}
else
{
//String redirectURL = "/ofr/admin/parameter/jsp/ViewValidationParameters.jsp?validationSubGroup=" + request.getParameter("validationSubGroup");
//request.getRequestDispatcher(response.encodeRedirectUrl(redirectURL)).forward(request,response);
//response.sendRedirect(response.encodeRedirectUrl("/ofr/admin/parameter/jsp/ViewValidationParameters.jsp?validationSubGroup=" + request.getParameter("validationSubGroup")));
%>

<jsp:forward page="/ofr/admin/parameter/jsp/ViewValidationParameters.jsp">
<jsp aram name="validationSubGroup" value='<%= group%>' />
</jsp:forward>

}
%>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!