每当存在 jsp:include
时,托管 VM 都会抛出 IllegalStateException
java.lang.IllegalStateException
at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:65)
at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:94)
at com.google.apphosting.vmruntime.CommitDelayingResponse.<init>(CommitDelayingResponse.java:62)
at com.google.apphosting.vmruntime.CommitDelayingResponseServlet3.<init>(CommitDelayingResponseServlet3.java:23)
at com.google.apphosting.vmruntime.jetty9.VmRuntimeWebAppContext.doScope(VmRuntimeWebAppContext.java:394)
...
我 fork 了 hello 应用程序以显示错误:https://github.com/erugeri/appengine-java-vm-hello/compare/jsp-include-bug?diff=unified
最佳答案
查看可能的测试解决方案:
https://github.com/GoogleCloudPlatform/appengine-java-vm-hello/issues/2#issuecomment-64992080
关于java - jsp:include 在 App Engine 托管 VM Java 运行时中引发 IllegalStateException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27215450/