`
Sev7en_jun
  • 浏览: 1225593 次
  • 性别: Icon_minigender_1
  • 来自: 广州
博客专栏
84184fc0-d0b6-3f7f-a3f0-4202acb3caf5
Apache CXF使用s...
浏览量:111305
社区版块
存档分类
最新评论

解决: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);

1
3
分享到:
评论

相关推荐

    Tomcat 源代码调试 - 看不见的 Shell 第二式之隐藏任意 Jsp 文件1

    为了实现这一目标,攻击者可能需要修改Tomcat的配置或利用特定的漏洞,使得Tomcat在找不到源JSP文件时不会立即清理`JspServletWrapper`,从而保持对已编译JSP的访问权限。 在进行源代码调试时,开发者可以跟踪`...

    tomcat8.0.0-RC5源码官方

    通过仔细阅读和分析Tomcat 8.0.0-RC5的源码,开发者可以更深入地理解Web服务器的工作机制,优化应用性能,解决复杂的部署问题,甚至参与到Tomcat的开发和贡献中去。这是一份宝贵的教育资源,对于提升Java Web开发...

    关于jsp页面使用jstl的异常分析

    如果jsp页面报如下异常 org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.Customer.addCustomerInfo_jsp org.apache.jasper.servlet.JspServletWrapper.getServlet...

    howToTomcatWorks源码

    在`org.apache.jasper`包中,`JspCompilationContext`和`JspServletWrapper`是关键类,它们负责JSP的预编译和运行时执行。JSP被转换为Java源代码,然后编译成Servlet,最后由Catalina进行调度和执行。 除了这些核心...

    tomcat_study.zip

    例如,JSP的编译过程涉及到了`JspCompilationContext`和`JspServletWrapper`等类,这些都可以在源码中找到具体实现。 总结来说,"tomcat_study.zip"提供的Tomcat 8.5.51源码是一份宝贵的教育资源,可以帮助开发者...

    jsp-api-2.1.jar下载

    JSP页面在首次请求时会被编译成Servlet,然后每次请求都会实例化一个`javax.servlet.jsp.JspServletWrapper`来处理。`jsp-api-2.1.jar`中的`JspServletWrapper`类就是负责这个过程的。 总的来说,`jsp-api-2.1.jar`...

Global site tag (gtag.js) - Google Analytics