1 | <%@page contentType="text/html"%> |
---|
2 | <%@page pageEncoding="UTF-8"%> |
---|
3 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
4 | <% |
---|
5 | // Let's make this easy... |
---|
6 | final Integer ERROR_CODE = (Integer) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_STATUS_CODE); |
---|
7 | final String ERROR_URI = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_REQUEST_URI); |
---|
8 | final String ERROR_MESSAGE = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_MESSAGE); |
---|
9 | final Class ERROR_CLASS = (Class)request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_EXCEPTION_TYPE); |
---|
10 | final Throwable ERROR_THROWABLE = (Throwable)request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_EXCEPTION); |
---|
11 | if (ERROR_CODE != null && ERROR_MESSAGE != null) { |
---|
12 | // this is deprecated but we don't want sendError() |
---|
13 | response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE); |
---|
14 | } |
---|
15 | %> |
---|
16 | <html><head> |
---|
17 | <%@include file="css.jsi" %> |
---|
18 | <%=intl.title("Internal Error")%> |
---|
19 | </head><body> |
---|
20 | <div class="routersummaryouter"> |
---|
21 | <div class="routersummary"> |
---|
22 | <a href="/" title="<%=intl._("Router Console")%>"><img src="/themes/console/images/i2plogo.png" alt="<%=intl._("I2P Router Console")%>" border="0"></a><hr> |
---|
23 | <a href="/config"><%=intl._("Configuration")%></a> <a href="/help"><%=intl._("Help")%></a> |
---|
24 | </div></div> |
---|
25 | <h1><%=ERROR_CODE%> <%=ERROR_MESSAGE%></h1> |
---|
26 | <div class="sorry" id="warning"> |
---|
27 | <%=intl._("Sorry! There has been an internal error.")%> |
---|
28 | <hr> |
---|
29 | <p> |
---|
30 | <% /* note to translators - both parameters are URLs */ |
---|
31 | %><%=intl._("Please report bugs on {0} or {1}.", |
---|
32 | "<a href=\"http://trac.i2p2.i2p/newticket\">trac.i2p2.i2p</a>", |
---|
33 | "<a href=\"https://trac.i2p2.de/newticket\">trac.i2p2.de</a>")%> |
---|
34 | <!-- |
---|
35 | <%=intl._("You may use the username \"guest\" and password \"guest\" if you do not wish to register.")%> |
---|
36 | --> |
---|
37 | <p><%=intl._("Please include this information in bug reports")%>: |
---|
38 | </p></div><div class="sorry" id="warning2"> |
---|
39 | <h3><%=intl._("Error Details")%></h3> |
---|
40 | <p> |
---|
41 | <%=intl._("Error {0}", ERROR_CODE)%>: <%=ERROR_URI%> <%=ERROR_MESSAGE%> |
---|
42 | </p><p> |
---|
43 | <% |
---|
44 | if (ERROR_THROWABLE != null) { |
---|
45 | java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(2048); |
---|
46 | java.io.PrintStream ps = new java.io.PrintStream(baos); |
---|
47 | ERROR_THROWABLE.printStackTrace(ps); |
---|
48 | ps.close(); |
---|
49 | String trace = baos.toString(); |
---|
50 | trace = trace.replace("&", "&").replace("<", "<").replace(">", ">"); |
---|
51 | trace = trace.replace("\n", "<br> \n"); |
---|
52 | out.print(trace); |
---|
53 | } |
---|
54 | %> |
---|
55 | </p> |
---|
56 | <h3><%=intl._("I2P Version and Running Environment")%></h3> |
---|
57 | <p> |
---|
58 | <b>I2P version:</b> <%=net.i2p.router.RouterVersion.FULL_VERSION%><br> |
---|
59 | <b>Java version:</b> <%=System.getProperty("java.vendor")%> <%=System.getProperty("java.version")%> (<%=System.getProperty("java.runtime.name")%> <%=System.getProperty("java.runtime.version")%>)<br> |
---|
60 | <b>Wrapper version:</b> <%=System.getProperty("wrapper.version", "none")%><br> |
---|
61 | <jsp:useBean class="net.i2p.router.web.LogsHelper" id="logsHelper" scope="request" /> |
---|
62 | <jsp:setProperty name="logsHelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" /> |
---|
63 | <b>Server version:</b> <jsp:getProperty name="logsHelper" property="jettyVersion" /><br> |
---|
64 | <b>Servlet version:</b> <%=getServletInfo()%><br> |
---|
65 | <b>Platform:</b> <%=System.getProperty("os.name")%> <%=System.getProperty("os.arch")%> <%=System.getProperty("os.version")%><br> |
---|
66 | <b>Processor:</b> <%=net.i2p.util.NativeBigInteger.cpuModel()%> (<%=net.i2p.util.NativeBigInteger.cpuType()%>)<br> |
---|
67 | <b>Jbigi:</b> <%=net.i2p.util.NativeBigInteger.loadStatus()%><br> |
---|
68 | <b>Encoding:</b> <%=System.getProperty("file.encoding")%><br> |
---|
69 | <b>Charset:</b> <%=java.nio.charset.Charset.defaultCharset().name()%></p> |
---|
70 | <p><%=intl._("Note that system information, log timestamps, and log messages may provide clues to your location; please review everything you include in a bug report.")%></p> |
---|
71 | </div></body></html> |
---|