Opened 6 years ago

Closed 3 years ago

#1197 closed defect (fixed)

I2P suddenly died and now fails to start (had to reinstall)

Reported by: xyz Owned by:
Priority: minor Milestone: 0.9.14
Component: apps/console Version: 0.9.10
Keywords: iputil error Cc:
Parent Tickets: Sensitive: no

Description

Out of the sudden my i2p router died and the router console showed this:


Sorry! There has been an internal error.
Please report bugs on trac.i2p2.i2p or trac.i2p2.de. You may use the username "guest" and password "guest" if you do not wish to register.

Please include this information in bug reports:

java.lang.NullPointerException?

at net.i2p.router.transport.TransportUtil?.isPubliclyRoutable(TransportUtil?.java:109)
at net.i2p.router.transport.TransportUtil?.isPubliclyRoutable(TransportUtil?.java:101)
at net.i2p.router.web.SummaryHelper?.reachability(SummaryHelper?.java:162)
at net.i2p.router.web.SummaryHelper?.getReachability(SummaryHelper?.java:131)
at net.i2p.router.web.SummaryBarRenderer?.renderNetworkReachabilityHTML(SummaryBarRenderer?.java:342)
at net.i2p.router.web.SummaryBarRenderer?.renderSummaryHTML(SummaryBarRenderer?.java:111)
at net.i2p.router.web.SummaryHelper?.renderSummaryBar(SummaryHelper?.java:807)
at net.i2p.router.web.jsp.home_jsp._jspService(home_jsp.java:293)
at org.apache.jasper.runtime.HttpJspBase?.service(HttpJspBase?.java:70)
at javax.servlet.http.HttpServlet?.service(HttpServlet?.java:723)
at org.eclipse.jetty.servlet.ServletHolder?.handle(ServletHolder?.java:652)
at org.eclipse.jetty.servlet.ServletHandler?.doHandle(ServletHandler?.java:445)
at org.eclipse.jetty.server.handler.ScopedHandler?.handle(ScopedHandler?.java:137)
at org.eclipse.jetty.security.SecurityHandler?.handle(SecurityHandler?.java:556)
at org.eclipse.jetty.server.session.SessionHandler?.doHandle(SessionHandler?.java:227)
at org.eclipse.jetty.server.handler.ContextHandler?.doHandle(ContextHandler?.java:1044)
at org.eclipse.jetty.servlet.ServletHandler?.doScope(ServletHandler?.java:372)
at org.eclipse.jetty.server.session.SessionHandler?.doScope(SessionHandler?.java:189)
at org.eclipse.jetty.server.handler.ContextHandler?.doScope(ContextHandler?.java:978)
at org.eclipse.jetty.server.handler.ScopedHandler?.handle(ScopedHandler?.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper?.handle(HandlerWrapper?.java:116)
at net.i2p.router.web.LocaleWebAppHandler?.handle(LocaleWebAppHandler?.java:99)
at org.eclipse.jetty.server.handler.ContextHandlerCollection?.handle(ContextHandlerCollection?.java:255)
at org.eclipse.jetty.server.handler.HandlerCollection?.handle(HandlerCollection?.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper?.handle(HandlerWrapper?.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:369)
at org.eclipse.jetty.server.AbstractHttpConnection?.handleRequest(AbstractHttpConnection?.java:486)
at org.eclipse.jetty.server.AbstractHttpConnection?.headerComplete(AbstractHttpConnection?.java:933)
at org.eclipse.jetty.server.AbstractHttpConnection?$RequestHandler?.headerComplete(AbstractHttpConnection?.java:995)
at org.eclipse.jetty.http.HttpParser?.parseNext(HttpParser?.java:644)
at org.eclipse.jetty.http.HttpParser?.parseAvailable(HttpParser?.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection?.handle(AsyncHttpConnection?.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint?.handle(SelectChannelEndPoint?.java:667)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint?$1.run(SelectChannelEndPoint?.java:52)
at java.util.concurrent.ThreadPoolExecutor?.runWorker(ThreadPoolExecutor?.java:1146)
at java.util.concurrent.ThreadPoolExecutor?$Worker.run(ThreadPoolExecutor?.java:615)
at java.lang.Thread.run(Thread.java:701)


I2P Version and Running Environment

I2P version: 0.9.10-0
Java version: Sun Microsystems Inc. 1.6.0_27 (OpenJDK Runtime Environment 1.6.0_27-b27)
Wrapper version: 3.5.22
Server version: 7.6.14.v20131031
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux amd64 <removed>
Processor: <removed>
Jbigi: Locally optimized native BigInteger? library loaded from file
Encoding: UTF-8
Charset: UTF-8


After that I wasn't able to start up i2p again without reinstalling (the router console immediately showed the same exception after starting up).

But I think I know what causes the exception:
Prior to the NPE I had an hostname set in the router settings which resolved to my dynamic ip. This hostname got disabled recently and doesn't resolve to anything any more.

Subtickets

Change History (3)

comment:1 Changed 6 years ago by zzz

Component: unspecifiedapps/console
Milestone: 0.9.110.9.12

Yes I think you've diagnosed it correctly. This error needs to be caught and displayed to the user in SummaryHelper?. And we shouldn't NPE.

comment:2 Changed 5 years ago by str4d

Keywords: iputil error added
Milestone: 0.9.12

comment:3 Changed 3 years ago by zzz

Milestone: 0.9.14
Resolution: fixed
Status: newclosed

This was fixed long ago, in cbd596c1b0920fde3352a271aa9921a1f9d46013 0.9.14

Note: See TracTickets for help on using tickets.