Opened 6 years ago

Closed 5 years ago

#1048 closed defect (worksforme)

IllegalArgumentException: Error in the ntcp reader

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

Description

I2P version: 0.9.7.1-0
Java version: Oracle Corporation 1.7.0_25 (OpenJDK Runtime Environment 1.7.0_25-b30)
Wrapper version: 3.5.19
Server version: 7.6.11.v20130520
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux amd64 2.6.32-042stab076.8
Processor: Core i7 Extreme Edition (32nm) (corei)
Jbigi: Locally optimized native BigInteger library loaded from file
Encoding: UTF-8
Charset: UTF-8
9/26/13 6:04:38 AM CRIT [P reader 2/4] p.router.transport.ntcp.Reader: Error in the ntcp reader
     java.lang.IllegalArgumentException
     at java.nio.Buffer.position(Buffer.java:236)
     at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:147)
     at net.i2p.router.transport.ntcp.NTCPConnection.recvEncryptedI2NP(NTCPConnection.java:1124)
     at net.i2p.router.transport.ntcp.Reader.processRead(Reader.java:182)
     at net.i2p.router.transport.ntcp.Reader.access$400(Reader.java:21)
     at net.i2p.router.transport.ntcp.Reader$Runner.run(Reader.java:118)
     at java.lang.Thread.run(Thread.java:724)
     at net.i2p.util.I2PThread.run(I2PThread.java:85)

Subtickets

Change History (4)

comment:1 Changed 6 years ago by Zlatin Balevsky

Cc: Zlatin Balevsky added

comment:2 Changed 6 years ago by zzz

Component: unspecifiedrouter/transport
Milestone: 0.9.80.9.9
Owner: set to zzz
Summary: IllegalArgumentException: 9/26/13 6:04:38 AM CRIT [P reader 2/4] p.router.transport.ntcp.Reader: Error in the ntcp readerIllegalArgumentException: Error in the ntcp reader

Never seen before and no good ideas.

Javadoc for ByteBuffer?.get() doesn't declare that it throws IAE. http://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html Although Buffer.position() does. http://docs.oracle.com/javase/6/docs/api/java/nio/Buffer.html

Our locking of _curReadBlock etc. looks correct.

comment:3 Changed 5 years ago by str4d

Keywords: ntcp added
Milestone: 0.9.9

comment:4 Changed 5 years ago by zzz

Resolution: worksforme
Status: newclosed

Closing, unreproducible, never seen again, no obvious errors in the code

Note: See TracTickets for help on using tickets.