﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12986	Loading of background imagery results in IllegalArgumentException	osmTOGA	osmTOGA	"==== What steps will reproduce the problem?
1. Start JOSM

Option 1:
2. Click on Download button
3. Download window with background imagery appears
4. Error pops up

Option 2:
2. Load saved session which includes background imagery
3. Zoom in
4. Error pops up

==== What is the expected result?

==== What happens instead?

==== Please provide any additional information below. Attach a screenshot if possible.

The error appears only once every session as soon as background imagery gets loaded. JOSM is usable without any further problems after the error is closed.
A few days ago I cleared the cache, which seemed to stop the described behaviour, but now it's back and clearing the cache doesn't resolve it anymore.

Additionally I tried JOSM-latest, it shows the same behaviour.
{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-06-04 17:28:58 +0200 (Sat, 04 Jun 2016)
Build-Date:2016-06-04 15:31:27
Revision:10327
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10327 de) Windows 7 64-Bit
Memory Usage: 588 MB / 2222 MB (448 MB allocated, but free)
Java version: 1.8.0_91-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM

Plugins:
- Mapillary (32158)
- PicLayer (32158)
- RoadSigns (32177)
- apache-commons (32158)
- apache-http (32158)
- buildings_tools (32158)
- continuosDownload
- ejml (32158)
- geochat (32158)
- geotools (31895)
- imagery_offset_db (32158)
- jts (31906)
- measurement (32158)
- opendata
- reverter (32158)
- todo (29154)
- turnrestrictions (32158)
- utilsplugin2 (32158)

Tagging presets:
- https://josm.openstreetmap.de/josmfile?page=Presets/Communication_Towers&zip=1
- https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&preset&zip=1

Map paint styles:
- %UserProfile%\OSM\JOSM-Paintstyles\Power_lines.mapcss
- https://dl.dropbox.com/u/8010189/Forum%20attachments/Hide_nodes.mapcss
- https://github.com/hotosm/HDM-JOSM-style/archive/master.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&style&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&style&zip=1

Last errors/warnings:
- W: Fehlende Erweiterungs-Hauptversion in Erweiterung OSMRecPlugin
- W: Achtung - <html>Die Erweiterung opendata erfordert JOSM Version 10407. Die aktuelle JOSM-Version ist 10327.<br>Um diese Erweiterung verwenden zu können, muss JOSM aktualisiert werden.</html>
- W: Achtung - <html>Die Erweiterung continuosDownload erfordert JOSM Version 10358. Die aktuelle JOSM-Version ist 10327.<br>Um diese Erweiterung verwenden zu können, muss JOSM aktualisiert werden.</html>
- E: java.lang.IllegalArgumentException: Negative position

java.lang.IllegalArgumentException: Negative position
	at sun.nio.ch.FileChannelImpl.write(Unknown Source)
	at org.apache.commons.jcs.auxiliary.disk.block.BlockDisk.write(BlockDisk.java:216)
	at org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCache.processUpdate(BlockDiskCache.java:399)
	at org.apache.commons.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging.updateWithEventLogging(AbstractAuxiliaryCacheEventLogging.java:65)
	at org.apache.commons.jcs.auxiliary.disk.AbstractDiskCache.doUpdate(AbstractDiskCache.java:815)
	at org.apache.commons.jcs.auxiliary.disk.AbstractDiskCache$MyCacheListener.handlePut(AbstractDiskCache.java:673)
	at org.apache.commons.jcs.engine.AbstractCacheEventQueue$PutEvent.doRun(AbstractCacheEventQueue.java:350)
	at org.apache.commons.jcs.engine.AbstractCacheEventQueue$AbstractCacheEvent.run(AbstractCacheEventQueue.java:269)
	at org.apache.commons.jcs.engine.CacheEventQueue$QProcessor.run(CacheEventQueue.java:304)
}}}
"	defect	closed	normal	16.06	Core imagery		duplicate	template_report jcs cache	wiktorn
