Modify

Opened 6 years ago

Closed 6 years ago

#18169 closed defect (duplicate)

Repeated error with the wikipedia plugin when adding Wiki tags (under Linux and Windows)

Reported by: tux67 Owned by: floscher
Priority: normal Milestone:
Component: Plugin wikipedia Version:
Keywords: template_report; wikipedia Cc:

Description

What steps will reproduce the problem?

  1. Select a Node/Way
  2. Select a downloaded Wiki Entry in the Wikipedia Plugin
  3. Click on "Merkmal hinzufügen"

What is the expected result?

Wikipedia Tags are added to the selected Node

What happens instead?

crash of the plugin only the tag wikipedia=xxx is added (no other tag)

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-08-26 08:55:27 +0200 (Mon, 26 Aug 2019)
Build-Date:2019-08-26 06:57:10
Revision:15322
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15322 de) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 1803 (17134)
Memory Usage: 853 MB / 1799 MB (402 MB allocated, but free)
Java version: 1.8.0_222-b10, AdoptOpenJDK, OpenJDK 64-Bit Server VM
Screen: \Display0 1920x1080, \Display1 1600x900
Maximum Screen Size: 1920x1080
Dataset consistency test: No problems found

Plugins:
+ Mapillary (1.5.18)
+ OpeningHoursEditor (34977)
+ PicLayer (35104)
+ apache-commons (34908)
+ apache-http (34908)
+ buildings_tools (34982)
+ continuosDownload (82)
+ imagery_offset_db (34908)
+ jaxb (35014)
+ jna (34908)
+ log4j (34908)
+ markseen (13)
+ measurement (35051)
+ merge-overlap (35072)
+ pt_assistant (705)
+ reltoolbox (34977)
+ reverter (35084)
+ routing (35039)
+ tag2link (35070)
+ tageditor (34977)
+ terracer (34977)
+ turnlanes-tagging (281)
+ turnrestrictions (34977)
+ utilsplugin2 (35098)
+ wikipedia (v1.1.1)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Historical_Objects&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/NewTags&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/public_bookcase&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Heritage&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/PublicTransportOneClick&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/hiking_routes_with_trail_marking&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Crafts&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://www.dropbox.com/s/qo3ai47fpv241jf/Styles_Fixme_and_Notes.zip?raw=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Osmc&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/SlovakiaBicycleRoutes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/NumberedWalkingNodeNetworks&zip=1

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!: 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: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!. Ursache: java.io.IOException: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!. Ursache: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')


=== STACK TRACE ===
Thread: AWT-EventQueue-0 (17) of main
java.lang.RuntimeException: java.io.IOException: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!
	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(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Die JSON-Antwort von Wikidata Action API kann nicht verarbeitet werden!
	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

Attachments (0)

Change History (2)

comment:1 by anonymous, 6 years ago

Component: PluginPlugin wikipedia
Owner: changed from team to floscher

Seems duplicate, see recent Wiki plugin issue reports.

comment:2 by Don-vip, 6 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #18053.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain floscher.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.