Index out of bounds exception in java console #111
Comments
Author: erik[at]tiq.com I think it's impossibleto use the "create segment" tool when this happens. |
Author: immanuel.scholz[at]gmx.de Probably a synchronisation problem. The fetch thread does not lock the vector, so could it be possible, that removeUnusedTiles is called by drag which will remove the last element in the vector exactly between the fetch thread checks for empty vector and the call to getEle with an empty imv-vector? Imi. |
Author: writetodan[at]yahoo.com Almost certainly due to unsafe thread access. Am just testing some fixes now. |
Author: writetodan[at]yahoo.com fix deployed to www |
Reporter: erik[at]tiq.com
[Submitted to the original trac issue database at 11.37am, Tuesday, 27th December 2005]
Not reproduceable yet.
Exception in thread "Thread-305" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source)
at org.openstreetmap.client.Tile.getEle(Tile.java:361)
at org.openstreetmap.client.ImFetch.run(Tile.java:437)
This is the log entries:
Trying to download image http://www.openstreetmap.org/tile/0.1/wms?map=/usr/lib/cgi-bin/steve/wms.map&service=WMS&WMTVER=1.0.0&REQUEST=map&STYLES=&TRANSPARENT=TRUE&LAYERS=landsat,gpx&bbox=16.929931640625,61.7419302246182,16.94091796875,61.74453081889597&width=256&height=128
adding image 1541,14389
mousePressed in ModeManager with currentMode=org.openstreetmap.processing.OSMApplet$LineMode@aa2ef2 and overButton=false
Trying to download image http://www.openstreetmap.org/tile/0.1/wms?map=/usr/lib/cgi-bin/steve/wms.map&service=WMS&WMTVER=1.0.0&REQUEST=map&STYLES=&TRANSPARENT=TRUE&LAYERS=landsat,gpx&bbox=16.94091796875,61.7289239586037,16.951904296875,61.73152565113397&width=256&height=128
adding image 1542,14384
Trying to download image http://www.openstreetmap.org/tile/0.1/wms?map=/usr/lib/cgi-bin/steve/wms.map&service=WMS&WMTVER=1.0.0&REQUEST=map&STYLES=&TRANSPARENT=TRUE&LAYERS=landsat,gpx&bbox=16.94091796875,61.7289239586037,16.951904296875,61.73152565113397&width=256&height=128
adding image 1542,14384
Trying to download image http://www.openstreetmap.org/tile/0.1/wms?map=/usr/lib/cgi-bin/steve/wms.map&service=WMS&WMTVER=1.0.0&REQUEST=map&STYLES=&TRANSPARENT=TRUE&LAYERS=landsat,gpx&bbox=16.94091796875,61.73152565113397,16.951904296875,61.73412712398737&width=256&height=128
adding image 1542,14385
Trying to download image http://www.openstreetmap.org/tile/0.1/wms?map=/usr/lib/cgi-bin/steve/wms.map&service=WMS&WMTVER=1.0.0&REQUEST=map&STYLES=&TRANSPARENT=TRUE&LAYERS=landsat,gpx&bbox=16.94091796875,61.73152565113397,16.951904296875,61.73412712398737&width=256&height=128
adding image 1542,14385
Exception in thread "Thread-305" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Unknown Source)
at org.openstreetmap.client.Tile.getEle(Tile.java:361)
at org.openstreetmap.client.ImFetch.run(Tile.java:437)
getting nodes and lines
trying url: http://www.openstreetmap.org/api/0.2/map?bbox=16.910602569580078,61.73166151838643,16.940643310546875,61.74182223008769
2005-dec-28 22:36:56 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
GPX parser started...
Start of Document
End of Document
The text was updated successfully, but these errors were encountered: