﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
18025	Error using Wikipedia plugin	robertogeb@…	floscher	"==== What steps will reproduce the problem?
1. Download Wikipedia resources in the map using the Wikipedia plugin
2. Select building in the map and downloaded object in the Wikipedia plugin and try to add label
3. 

==== What is the expected result?
the wikipedia label is added to the building

==== What happens instead?
error

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-07-10 00:52:47 +0200 (Wed, 10 Jul 2019)
Build-Date:2019-07-10 01:30:51
Revision:15238
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15238 es) Windows 10 64-Bit
OS Build number: Windows 10 Home 1803 (17134)
Memory Usage: 960 MB / 1820 MB (499 MB allocated, but free)
Java version: 1.8.0_221-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\Local\Temp\josm.jnlp, -Djnlpx.remove=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=48306, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Dataset consistency test: No problems found

Plugins:
+ DirectDownload (34977)
+ DirectUpload (35041)
+ FixAddresses (34977)
+ Mapillary (1.5.18)
+ OpeningHoursEditor (34977)
+ PicLayer (35030)
+ RoadSigns (UNKNOWN)
+ SeaChart (34970)
+ SeaMapEditor (34908)
+ SimplifyArea (34977)
+ apache-commons (34908)
+ apache-http (34908)
+ buildings_tools (34982)
+ editgpx (34908)
+ ejml (35049)
+ geochat (34977)
+ geojson (124)
+ geotools (34908)
+ gpxfilter (34908)
+ graphview (34977)
+ imagery_offset_db (34908)
+ jaxb (35014)
+ jna (34908)
+ jogl (1.2.3)
+ jts (35064)
+ log4j (34908)
+ markseen (13)
+ measurement (35051)
+ merge-overlap (34972)
+ namemanager (34977)
+ opendata (34997)
+ openvisible (34908)
+ osmarender (34908)
+ pointInfo (34908)
+ pt_assistant (705)
+ public_transport (34977)
+ reverter (34999)
+ rex (53)
+ routing (35039)
+ splinex (34908)
+ tag2link (35070)
+ tageditor (34977)
+ terracer (34977)
+ todo (30306)
+ turnlanes-tagging (281)
+ turnrestrictions (34977)
+ undelete (34977)
+ utilsplugin2 (34977)
+ wikipedia (v1.1.1)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Mountainbike&zip=1
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/ES.zip

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Historic_Stones&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/DigiRoadBusStops&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: No se pudieron encontrar proyecciones soportadas para la capa Catastro de España. Se utilizará EPSG:3857.
- W: No se pudieron encontrar proyecciones soportadas para la capa Catastro de España. Se utilizará EPSG:3857.
- W: The JSON response from the Wikidata Action API can't be decoded!: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- E: Handled by bug report queue: java.lang.RuntimeException: java.io.IOException: The JSON response from the Wikidata Action API can't be decoded!. Causa: java.io.IOException: The JSON response from the Wikidata Action API can't be decoded!. Causa: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
- W: Atención - <html>JOSM no ha podido encontrar información sobre los complementos siguientes:<ul><li>tageditor</li><li>opendata</li><li>SimplifyArea</li><li>editgpx</li><li>turnlanes-tagging</li><li>utilsplugin2</li><li>namemanager</li><li>terracer</li><li>jna</li><li>PicLayer</li><li>rex</li><li>Mapillary</li><li>tag2link</li><li>ejml</li><li>reverter</li><li>pt_assistant</li><li>openvisible</li><li>undelete</li><li>SeaMapEditor</li><li>apache-commons</li><li>geotools</li><li>RoadSigns</li><li>public_transport</li><li>FixAddresses</li><li>measurement</li><li>jaxb</li><li>routing</li><li>SeaChart</li><li>jogl</li><li>turnrestrictions</li><li>wikipedia</li><li>log4j</li><li>imagery_offset_db</li><li>pointInfo</li><li>gpxfilter</li><li>jts</li><li>graphview</li><li>splinex</li><li>DirectDownload</li><li>DirectUpload</li><li>geochat</li><li>geojson</li><li>todo</li><li>osmarender</li><li>markseen</li><li>OpeningHoursEditor</li><li>buildings_tools</li><li>apache-http</li><li>merge-overlap</li></ul>Los complementos no serán cargados.</html>


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (49) of javawsApplicationThreadGroup
java.lang.RuntimeException: java.io.IOException: The JSON response from the Wikidata Action API can't be decoded!
	at org.wikipedia.WikipediaApp.getWikidataForArticles0(WikipediaApp.java:304)
	at org.wikipedia.WikipediaApp.resolveWikidataItems(WikipediaApp.java:256)
	at org.wikipedia.WikipediaApp.lambda$getWikidataForArticles$10(WikipediaApp.java:244)
	at org.wikipedia.tools.ListUtil.processInBatches(ListUtil.java:29)
	at org.wikipedia.tools.ListUtil.processInBatches(ListUtil.java:34)
	at org.wikipedia.WikipediaApp.getWikidataForArticles(WikipediaApp.java:243)
	at org.wikipedia.actions.FetchWikidataAction$PrimitivesWithWikipedia.updateWikidataIds(FetchWikidataAction.java:131)
	at org.wikipedia.actions.FetchWikidataAction$Fetcher.realRun(FetchWikidataAction.java:75)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The JSON response from the Wikidata Action API can't be decoded!
	at org.wikipedia.api.ApiQueryClient.wrapReadDecodeJsonExceptions(ApiQueryClient.java:119)
	at org.wikipedia.api.ApiQueryClient.query(ApiQueryClient.java:66)
	at org.wikipedia.WikipediaApp.getWikidataForArticles0(WikipediaApp.java:298)
	... 12 more
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 at [Source: (GZIPInputStream); line: 1, column: 2]
	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:669)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:567)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2624)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:826)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:723)
	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4141)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4000)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3070)
	at org.wikipedia.api.ApiQuery.lambda$new$0(ApiQuery.java:18)
	at org.wikipedia.api.ApiQuery.deserialize(ApiQuery.java:56)
	at org.wikipedia.api.ApiQueryClient.query(ApiQueryClient.java:64)
	... 13 more
}}}
"	defect	closed	normal		Plugin wikipedia	latest	duplicate	template_report	
