例外:
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at
iconcept.filter.NavigationFilter.doFilter(NavigationFilter.java:107) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at
common.util.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:117) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at
common.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:57) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at
java.lang.Thread.run(Thread.java:619)
Caused by: Class: java.nio.HeapByteBuffer File: HeapByteBuffer.java Method: put Line: 165 - java/nio/HeapByteBuffer.java:165:-1 at
org.apache.struts2.components.UIBean.end(UIBean.java:515) at
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42) at
org.apache.jsp.admin.snsales.addPurchaseOrderAgrmnt_jsp._jspx_meth_s_005fcomponent_005f0(addPurchaseOrderAgrmnt_jsp.java:7012) at
org.apache.jsp.admin.snsales.addPurchaseOrderAgrmnt_jsp._jspx_meth_s_005fif_005f8(addPurchaseOrderAgrmnt_jsp.java:6956) at
org.apache.jsp.admin.snsales.addPurchaseOrderAgrmnt_jsp._jspx_meth_s_005fform_005f0(addPurchaseOrderAgrmnt_jsp.java:5227) at
org.apache.jsp.admin.snsales.addPurchaseOrderAgrmnt_jsp._jspService(addPurchaseOrderAgrmnt_jsp.java:3178) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
... 89 more
Caused by: java.nio.BufferOverflowException at
java.nio.HeapByteBuffer.put(HeapByteBuffer.java:165) at
org.apache.struts2.util.FastByteArrayOutputStream.decodeAndWriteOut(FastByteArrayOutputStream.java:161) at
org.apache.struts2.util.FastByteArrayOutputStream.writeTo(FastByteArrayOutputStream.java:94) at
org.apache.struts2.components.Include.include(Include.java:261) at
org.apache.struts2.components.template.JspTemplateEngine.renderTemplate(JspTemplateEngine.java:58) at
org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559) at
org.apache.struts2.components.UIBean.end(UIBean.java:513)
... 97 more
您可以在一个变量中设置值并将该变量传递给标签 并将其发送到组件jsp。
<s:set var="po" value="%{snPurchaseOrder}"></s:set>
<s:push value="po">
<jsp:include page="/template/xhtml/snsales/poComponentInfoNew.jsp">
</jsp:include>
</s:push>
在子jsp中,您可以通过#变量名称访问,例如#po。
s:component
标签引起的问题,该标签用于渲染自定义 UI 小部件的模板。
s:include
标签相同,将内容写入输出流。它使用 FastByteArrayOutputStream
写入内容。它有一个大小为 8192
的缓冲区。该缓冲区已溢出。
这可能是一个错误,已在较新版本的 Struts2 框架中修复。