Opened 8 years ago

Closed 7 years ago

#950 closed defect (fixed)

Imule & SAM, net.i2p.sam.SAMv3Handler : Unexpected exception for message

Reported by: DISABLED Owned by: mkvore
Priority: minor Milestone:
Component: other Version: 0.9.6
Keywords: Imule Cc: Zlatin Balevsky
Parent Tickets: Sensitive: no


09.06.13 15:12:52 ↓↓↓ 2 similar messages omitted ↓↓↓
09.06.13 15:12:52 FEHLER [v3Handler 26] net.i2p.sam.SAMv3Handler : Unexpected exception for message [STREAM CONNECT ID=iMule_oPw2pQT-AL DESTINATION=]

java.lang.StringIndexOutOfBoundsException?: String index out of range: 0
at java.lang.AbstractStringBuilder?.charAt(AbstractStringBuilder?.java:205)
at java.lang.StringBuilder?.charAt(StringBuilder?.java:72)
at net.i2p.sam.SAMUtils.parseParams(
at net.i2p.sam.SAMv3Handler.handle(


Change History (8)

comment:1 Changed 8 years ago by Zlatin Balevsky

Cc: Zlatin Balevsky added
Owner: changed from mkvore to Zlatin Balevsky
Status: newaccepted

comment:2 Changed 8 years ago by Zlatin Balevsky

How reproducible is this? Looks like iMule is sending malformed input like

key1=value1 key2= 

where value2 is missing or an empty string.

If you can reproduce this easily, please enable DEBUG logging for net.i2p.sam.SAMv3Handler so we can track down exactly what the problematic input is. (This may affect your anonymity somewhat)

comment:3 Changed 8 years ago by zzz

I2P and iMule versions please

Ah, the missing value is right in the OP.


How did that happen?

comment:4 Changed 8 years ago by DISABLED

Hi get this Problem from time to time

IMule: (run on a diffrent PC)

I2P version: 0.9.6-0
Java version: Oracle Corporation 1.8.0-ea (Java™ SE Runtime Environment 1.8.0-ea-b36e)
Wrapper version: 3.5.15
Server version: 7.6.10.v20130312
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux arm 3.6.11+
Processor: uninitialized (arm)
Jbigi: Native BigInteger? library loaded from resource
Encoding: UTF-8
Charset: UTF-8

comment:5 Changed 8 years ago by Zlatin Balevsky

Milestone: 0.9.7
Owner: changed from Zlatin Balevsky to mkvore
Status: acceptedassigned

I added an explicit check for empty values with revision 1f5fbd0bad971c530712ec233063ee8b64f88f5f

Handing the ticket back to mkvore for debugging on the iMule side.

comment:6 Changed 7 years ago by ExtraBattery

Add a subticket #1325.

comment:7 Changed 7 years ago by zzz

Remove a subticket #1325.

comment:8 Changed 7 years ago by zzz

Component: apps/SAMother
Resolution: fixed
Status: assignedclosed

removed as parent of #1325 so we can close this one eventually. Any remaining issue is on the iMule side.

Note: See TracTickets for help on using tickets.