Opened 8 years ago

Closed 8 years ago

#1070 closed defect (fixed)

Clearing blacklist causes streaming NPE

Reported by: zzz Owned by:
Priority: minor Milestone: 0.9.9
Component: streaming Version:
Keywords: Cc:
Parent Tickets: Sensitive: no


Cleared all previous blacklist entries but left blacklist enabled in i2ptunnel HTTP server tunnel GUI.

Subsequent NPE killed the whole tunnel. Following is from wrapper log (relatively new log message paid off), nothing in router log:

 Thread terminated unexpectedly: Server /
        at net.i2p.client.streaming.ConnectionManager.shouldRejectConnection(
        at net.i2p.client.streaming.ConnectionManager.receiveConnection(
        at net.i2p.client.streaming.ConnectionHandler.accept(
        at net.i2p.client.streaming.I2PSocketManagerFull.receiveSocket(
        at net.i2p.client.streaming.I2PServerSocketFull.accept(

Pretty sure this was in test2 branch, close to but line numbers may not match trunk. Apparently _defaultOptions was null? but need to reproduce, that may not be right as I can't for sure match up the source to the test version I was running. Seems more likely that _currentBlacklist was null.

For further testing and attempts to reproduce with a known version.


Change History (3)

comment:1 Changed 8 years ago by zzz

Also fix it so an exception in receiveConnection() doesn't kill the accept loop. That's not good.

comment:2 Changed 8 years ago by zzz

accept loop issue fixed in 378cbb865b9a9699ac331a1be25be803a6adbd5a

comment:3 Changed 8 years ago by zzz

Resolution: fixed
Status: newclosed

Fixed in ed228531b9b482bfe087d099f6adf45ef4c0a351 but it caused an even worse problem, instantiation of the tunnel crashed if there was a blacklist enabled with at least one entry.

That issue fixed in 0baa155607e020e56c577e4c18ae109838e3825b

Note: See TracTickets for help on using tickets.