Opened 9 years ago

Closed 9 years ago

#770 closed defect (fixed)

p.router.transport.ntcp.Writer: Error in the ntcp writer java.lang.NullPointerException

Reported by: DISABLED Owned by: zzz
Priority: minor Milestone: 0.9.4
Component: router/transport Version: 0.9.3
Keywords: Cc: Zlatin Balevsky
Parent Tickets: Sensitive: no


I2P version: 0.9.3-0
Java version: Sun Microsystems Inc. 1.6.0_24 (OpenJDK Runtime Environment 1.6.0_24-b24)
Wrapper version: 3.5.14
Server version: 6.1.26
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux arm 3.2.27+
Processor: uninitialized (arm)
Jbigi: Locally optimized native BigInteger? library loaded from file
Encoding: UTF-8
Charset: UTF-8

After running fine for some days, I got this in the logs:
My i2p is still working fine after the exception I guess.

CRIT [P writer 4/4] p.router.transport.ntcp.Writer: Error in the ntcp writer

at net.i2p.router.transport.ntcp.NTCPConnection.prepareNextWriteFast(
at net.i2p.router.transport.ntcp.NTCPConnection.prepareNextWrite(
at net.i2p.router.transport.ntcp.Writer$


Change History (3)

comment:1 Changed 9 years ago by zzz

Component: unspecifiedrouter/transport
Owner: set to zzz
Status: newaccepted

That's a good one, never seen that before, thanks for the report.

Looks like we need more synchronization, or don't null out _establishState. Or both.

comment:2 Changed 9 years ago by Zlatin Balevsky

Cc: Zlatin Balevsky added

comment:3 Changed 9 years ago by zzz

Resolution: fixed
Status: acceptedclosed

This was a synchronization bug, one in a million to hit it. Should be fixed in 0.9.3-6, but can't be 100% sure.

Note: See TracTickets for help on using tickets.