Opened 6 years ago

Closed 6 years ago

#770 closed defect (fixed)

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

Reported by: guest Owned by: zzz
Priority: minor Milestone: 0.9.4
Component: router/transport Version: 0.9.3
Keywords: Cc: zab@…
Parent Tickets:

Description

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

java.lang.NullPointerException?:
at net.i2p.router.transport.ntcp.NTCPConnection.prepareNextWriteFast(NTCPConnection.java:644)
at net.i2p.router.transport.ntcp.NTCPConnection.prepareNextWrite(NTCPConnection.java:527)
at net.i2p.router.transport.ntcp.Writer$Runner.run(Writer.java:122)
at java.lang.Thread.run(Thread.java:679)
at net.i2p.util.I2PThread.run(I2PThread.java:85)

Subtickets

Change History (3)

comment:1 Changed 6 years ago by zzz

  • Component changed from unspecified to router/transport
  • Owner set to zzz
  • Status changed from new to accepted

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 6 years ago by zab

  • Cc zab@… added

comment:3 Changed 6 years ago by zzz

  • Resolution set to fixed
  • Status changed from accepted to closed

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.