META-INF.resources.error-500.jsp Maven / Gradle / Ivy
<%@ page contentType="text/html; charset=UTF-8" language="java"
pageEncoding="UTF-8" isErrorPage="true"%>
<%@ page import="java.io.ByteArrayOutputStream"%>
<%@ page import="java.io.PrintStream"%>
<%@ page import="org.beangle.commons.lang.Strings"%>
<%
boolean unwrapped = null == request.getHeader("x-requested-with")
&& null == request.getParameter("x-requested-with");
%>
<%
if (unwrapped) {
%>
<%
}
%>
出错了
Error happened
<%
if (Boolean.TRUE.toString().equals(
application.getInitParameter("devMode"))) {
%>
<%
}
%>
<%
if (unwrapped) {
%>
<%
}
%>
<%
if (Boolean.TRUE.toString().equals(
application.getInitParameter("devMode"))) {
%>
错误原因:
<%=exception.getClass()%>
<%=exception.getMessage()%>
错误路径:
<%=request
.getAttribute("jakarta.servlet.forward.servlet_path")%>
With the following stack trace:
<%
ByteArrayOutputStream ostr = new ByteArrayOutputStream();
exception.printStackTrace(new PrintStream(ostr));
String stackMsg = ostr.toString();
stackMsg = Strings
.replace(stackMsg, "org.openurp",
"org.openurp");
stackMsg = Strings.replace(stackMsg, "org.beangle",
"org.beangle");
out.println(stackMsg);
%>
<%
}
%>
<%
if (unwrapped) {
%>
<%
}
%>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy