Opened 7 years ago

Closed 6 years ago

#702 closed defect (duplicate)

susimail null pointer exception

Reported by: DISABLED Owned by:
Priority: minor Milestone:
Component: apps/susimail Version: 0.9.1
Keywords: NPE Cc:
Parent Tickets: Sensitive: no

Description (last modified by str4d)

PM ERROR [onsole Jetty] org.mortbay.jetty.Server      : /susimail/susimail
java.lang.NullPointerException
	at java.util.Hashtable.hash(Hashtable.java:262)
	at java.util.Hashtable.get(Hashtable.java:459)
	at i2p.susi.webmail.MailCache.getMail(MailCache.java:64)
	at i2p.susi.webmail.WebMail.processRequest(WebMail.java:1255)
	at i2p.susi.webmail.WebMail.doPost(WebMail.java:1530)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)

Subtickets

Change History (4)

comment:1 Changed 6 years ago by str4d

Keywords: NPE added
Milestone: 0.9.2

comment:6 Changed 6 years ago by zzz

possible dup #414

comment:7 Changed 6 years ago by str4d

Description: modified (diff)

comment:8 Changed 6 years ago by str4d

Resolution: duplicate
Status: newclosed

I can't determine the JRE used, but GNU Classpath's Hashtable uses the same implementation call-structure as OP's JRE. Based on that, the NPE is caused by a null key passed into MailCache.getMail(), which Hashtable does not support.

Closing as duplicate of #414.

Note: See TracTickets for help on using tickets.