解决:JspServletWrapper handleJspException

Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.portal.struts.StrutsUtil.include(StrutsUtil.java:143)
com.liferay.portal.struts.PortalRequestProcessor.doInclude(PortalRequestProcessor.java:188)
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:158)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:401)
com.liferay.portal.servlet.MainServlet.service(MainServlet.java:630)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:149)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:81)
com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:137)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:88)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:109)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:150)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.doubleclick.DoubleClickFilter.doFilter(DoubleClickFilter.java:132)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java:190)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.doFilter(AutoLoginFilter.java:108)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:173)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:81)

root cause

java.lang.IllegalStateException
com.liferay.filters.strip.StripResponse.getWriter(StripResponse.java:84)
javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:112)
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:220)
org.apache.jsp.html.common.themes.portal_jsp._jspx_meth_c_005fotherwise_005f0(portal_jsp.java:759)
org.apache.jsp.html.common.themes.portal_jsp._jspService(portal_jsp.java:693)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.portal.struts.StrutsUtil.include(StrutsUtil.java:143)
com.liferay.portal.struts.PortalRequestProcessor.doInclude(PortalRequestProcessor.java:188)
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:302)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:158)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:401)
com.liferay.portal.servlet.MainServlet.service(MainServlet.java:630)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:149)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:81)
com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:137)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:88)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:109)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:150)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.filters.doubleclick.DoubleClickFilter.doFilter(DoubleClickFilter.java:132)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.layoutcache.LayoutCacheFilter.doFilter(LayoutCacheFilter.java:190)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.doFilter(AutoLoginFilter.java:108)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:173)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:98)
com.liferay.portal.servlet.filters.sessionid.SessionIdFilter.doFilter(SessionIdFilter.java:81)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
Apache Tomcat/6.0.16 
±0 (0 Votes)   Sign in to vote.  Top  
 
解决办法


The solution is that LiferayWindowState.EXCLUSIVE must be set as window state.
I have a guess why but if somebady knows it please tell me...


1    PortletURL rowURL = renderResponse.createActionURL();

2    rowURL.setWindowState(LiferayWindowState.EXCLUSIVE );

3    rowURL.setParameter("struts_action", "/ext/lmp/save");

4    rowURL.setParameter("status", String.valueOf(status));

5    rowURL.setParameter("batchId",

     String.valueOf(entry.getBatchId()));

6    rowURL.setParameter("tabs1", tabs1);

你可能感兴趣的:(java,apache,jsp,servlet,struts)