Opened 7 years ago

Last modified 4 years ago

#725 open defect

UPnP: java.lang.ArrayIndexOutOfBoundsException

Reported by: killyourtv Owned by: zzz
Priority: minor Milestone:
Component: router/transport Version: 0.9.2
Keywords: UPnP Cc:
Parent Tickets: Sensitive: no

Description

A user was on #i2p for help with his port number changing on restart. I assumed it could have been because of I2P not shutting down successfully so I asked for logs. These were provided:

2012/10/05 12:16:49 | Launching a JVM...
2012/10/05 12:16:51 | WrapperManager: Initializing...
2012/10/05 12:16:52 | Starting I2P 0.9.2-0
2012/10/05 12:16:53 | WARN: Old router was not shut down gracefully, deleting router.ping
2012/10/05 12:16:53 | INFO: Native CPUID library jcpuid-x86-linux loaded from file
2012/10/05 12:16:53 | INFO: Locally optimized native BigInteger library loaded from file
2012/10/05 12:16:58 | INFO: Jetty 6.1.26 logging to I2P logs using class org.mortbay.jetty.Server
2012/10/05 13:15:41 | Exception in thread "UPnP-Disposer" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 3
2012/10/05 13:15:41 | 	at java.util.Vector.get(Vector.java:744)
2012/10/05 13:15:41 | 	at org.cybergarage.xml.NodeList.getNode(NodeList.java:28)
2012/10/05 13:15:41 | 	at org.cybergarage.upnp.ControlPoint.getDeviceList(ControlPoint.java:295)
2012/10/05 13:15:41 | 	at org.cybergarage.upnp.ControlPoint.removeExpiredDevices(ControlPoint.java:377)
2012/10/05 13:15:41 | 	at org.cybergarage.upnp.device.Disposer.run(Disposer.java:62)
2012/10/05 13:15:41 | 	at java.lang.Thread.run(Thread.java:722)
2012/10/05 13:15:42 | CRIT  [onsole Jetty] net.i2p.util.Clock            : Large clock shift backward by 116m
2012/10/05 13:15:42 | CRIT  [hutdown hook] net.i2p.router.Router         : Graceful shutdown progress - no more tunnels, safe to die
2012/10/05 13:15:42 | CRIT  [hutdown hook] net.i2p.router.Router         : Starting final shutdown(5)
2012/10/05 13:15:42 | CRIT  [hutdown hook] net.i2p.router.Router         : Shutdown(5) complete
2012/10/05 13:15:46 | on_exit trigger matched.  Restarting the JVM.  (Exit code: 5)

The user said the last entry from the previous run was "Term trapped. Shutting down" when the system was halted.

Subtickets

Change History (5)

comment:1 Changed 7 years ago by zzz

Component: unspecifiedrouter/transport
Owner: set to zzz

Most likely a bug in UPnP lib, but we need better control on our side too, we can have multiple UPnP operations underway simultaneously. To be fixed.

comment:2 Changed 6 years ago by str4d

Keywords: UPnP added

comment:3 Changed 6 years ago by str4d

Milestone: 0.9.4

comment:4 Changed 4 years ago by zzz

UPnP lib updated to latest in 0.9.18-6. Unlikely to fix this. We should proceed with a local fix.

#1194 is a dup.

comment:5 Changed 4 years ago by str4d

Status: newopen
Note: See TracTickets for help on using tickets.