Opened 3 years ago

Closed 3 years ago

#1779 closed defect (fixed)

HTTP 500 NullPointerException when checking UPnP status

Reported by: j65da7cp6 Owned by: zzz
Priority: minor Milestone: 0.9.25
Component: router/transport Version: 0.9.24
Keywords: UPnP NullPointerException Cc:
Parent Tickets: Sensitive: no

Description

Error Details

Error 500: /peers Server Error

java.lang.NullPointerException
     at net.i2p.router.transport.UPnP.toString(UPnP.java:547)
     at net.i2p.router.transport.UPnP.listSubServices(UPnP.java:579)
     at net.i2p.router.transport.UPnP.listSubDev(UPnP.java:648)
     at net.i2p.router.transport.UPnP.listSubDev(UPnP.java:657)
     at net.i2p.router.transport.UPnP.listSubDev(UPnP.java:657)
     at net.i2p.router.transport.UPnP.renderStatusHTML(UPnP.java:690)
     at net.i2p.router.transport.UPnPManager.renderStatusHTML(UPnPManager.java:296)
     at net.i2p.router.transport.TransportManager.renderStatusHTML(TransportManager.java:722)
     at net.i2p.router.transport.CommSystemFacadeImpl.renderStatusHTML(CommSystemFacadeImpl.java:215)
     at net.i2p.router.web.PeerHelper.getPeerSummary(PeerHelper.java:27)
     at net.i2p.router.web.jsp.peers_jsp._jspService(peers_jsp.java:334)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
     at net.i2p.servlet.filters.XSSFilter.doFilter(XSSFilter.java:28)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
     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:100)
     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:370)
     at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
     at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
     at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
     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:696)
     at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
     at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
     at java.lang.Thread.run(Thread.java:745)

I2P Version and Running Environment

I2P version: 0.9.24-0
Java version: Oracle Corporation 1.7.0_80 (Java(TM) SE Runtime Environment 1.7.0_80-b15)
Wrapper version: 3.5.27
Server version: 8.1.17.v20150415
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux amd64 4.1.18-1-lts
Processor: Haswell (22nm) (corei)
Jbigi: Locally optimized library libjbigi-linux-corei_64.so loaded from file
Encoding: UTF-8
Charset: UTF-8

Only the UPnP status page is affected.

Subtickets

Change History (1)

comment:1 Changed 3 years ago by zzz

Milestone: undecided0.9.25
Resolution: fixed
Status: newclosed

Fixed in 2121088a5e575cd4354d617e8a2475ed61880747 0.9.24-11-rc thanks

Note: See TracTickets for help on using tickets.