Opened 4 years ago

Closed 4 years ago

#1615 closed defect (fixed)

NPE creating a torrent in snark

Reported by: killyourtv Owned by: dg
Priority: blocker Milestone: 0.9.21
Component: apps/i2psnark Version: 0.9.20
Keywords: Cc:
Parent Tickets: Sensitive: no

Description


I2P version: 0.9.20-13-deb1
Java version: Oracle Corporation 1.8.0_45-internal (OpenJDK Runtime Environment 1.8.0_45-internal-b14)
Wrapper version: 3.5.25
Server version: 8.1.17.v20150415
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux amd64 4.0.0-2-amd64
Processor: Bulldozer FX-6100/8100 (athlon64)
Jbigi: Locally optimized native BigInteger library loaded from file
Encoding: UTF-8
Charset: UTF-8
Problem accessing /i2psnark/_post. Reason:

    Server Error

Caused by:

java.lang.NullPointerException
	at org.klomp.snark.SnarkManager.addTorrent(SnarkManager.java:1438)
	at org.klomp.snark.web.I2PSnarkServlet.processRequest(I2PSnarkServlet.java:1239)
	at org.klomp.snark.web.I2PSnarkServlet.doGetAndPost(I2PSnarkServlet.java:254)
	at org.klomp.snark.web.I2PSnarkServlet.doPost(I2PSnarkServlet.java:151)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
	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.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.content(AbstractHttpConnection.java:982)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
	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)

Subtickets

Change History (2)

comment:1 Changed 4 years ago by zzz

Milestone: undecided0.9.21
Owner: changed from zzz to dg
Priority: majorblocker
Status: newassigned

comment:2 Changed 4 years ago by dg

Resolution: fixed
Status: assignedclosed

Fixed in 0.9.20-15.

Thanks!

Note: See TracTickets for help on using tickets.