Modify ↓
Opened 5 years ago
Last modified 4 years ago
#18490 new defect
JsonParsingException in SophoxDownloadReader
Reported by: | anonymous | Owned by: | floscher |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin wikipedia | Version: | |
Keywords: | template_report sophox sparql json | Cc: |
Description
What steps will reproduce the problem?
What is the expected result?
What happens instead?
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-12-01 23:10:15 +0100 (Sun, 01 Dec 2019) Build-Date:2019-12-02 02:30:57 Revision:15553 Relative:URL: ^/trunk Identification: JOSM/1.5 (15553 de) Linux Ubuntu 16.04.6 LTS Memory Usage: 1139 MB / 3543 MB (184 MB allocated, but free) Java version: 1.8.0_232-8u232-b09-0ubuntu1~16.04.1-b09, Private Build, OpenJDK 64-Bit Server VM Screen: :0.0 1366x768 Maximum Screen Size: 1366x768 Java package: openjdk-8-jre:amd64-8u232-b09-0ubuntu1~16.04.1 libcommons-logging-java: libcommons-logging-java:all-1.2-1+build1 VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true] Plugins: + ImproveOsm (188) + jaxb (35014) + jogl (1.2.3) + kendzi3d (1.0.205) + kendzi3d-resources (0.0.2) + log4j (34908) + pt_assistant (34678) + reverter (35226) + wikipedia (1.1.3) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/contact(socialnetworks_IMs)&zip=1 + https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/DE.zip + https://josm.openstreetmap.de/josmfile?page=Presets/Surveillance&zip=1 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 Validator rules: + resource://data/validator/power.mapcss Last errors/warnings: - E: Fehlerhafte Anfrage - org.openstreetmap.josm.gui.widgets.HtmlPanel[,0,0,0x0,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=] - W: java.net.UnknownHostException: api.openstreetmap.org - W: Already here java.net.UnknownHostException: api.openstreetmap.org - E: java.net.UnknownHostException: api.openstreetmap.org - W: org.openstreetmap.josm.io.OsmTransferException: Verbindung zum OSM-Server fehlgeschlagen. Bitte überprüfen Sie Ihre Internetverbindung.. Ursache: java.net.UnknownHostException: api.openstreetmap.org - E: #Query - E: Handled by bug report queue: javax.json.stream.JsonParsingException: Unexpected char 10 at (line no=250245, column no=71, offset=7429673) - W: Achtung - <html>JOSM konnte keine Informationen über die folgenden Erweiterungen finden:<ul><li>jaxb</li><li>pt_assistant</li><li>kendzi3d</li><li>ImproveOsm</li><li>kendzi3d-resources</li><li>jogl</li><li>wikipedia</li><li>reverter</li><li>log4j</li></ul>Diese Erweiterungen werden nicht geladen.</html> - E: Handled by bug report queue: javax.json.stream.JsonParsingException: Unexpected char 10 at (line no=89229, column no=90, offset=2211869) - W: Achtung - <html>JOSM konnte keine Informationen über die folgenden Erweiterungen finden:<ul><li>jaxb</li><li>pt_assistant</li><li>kendzi3d</li><li>ImproveOsm</li><li>kendzi3d-resources</li><li>jogl</li><li>wikipedia</li><li>reverter</li><li>log4j</li></ul>Diese Erweiterungen werden nicht geladen.</html> === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (16) of main javax.json.stream.JsonParsingException: Unexpected char 10 at (line no=89229, column no=90, offset=2211869) at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:601) at org.glassfish.json.JsonTokenizer.readString(JsonTokenizer.java:189) at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:379) at org.glassfish.json.JsonParserImpl$ObjectContext.getNextEvent(JsonParserImpl.java:459) at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:363) at org.glassfish.json.JsonParserImpl.getObject(JsonParserImpl.java:338) at org.glassfish.json.JsonParserImpl.getValue(JsonParserImpl.java:182) at org.glassfish.json.JsonParserImpl.getObject(JsonParserImpl.java:339) at org.glassfish.json.JsonParserImpl.getValue(JsonParserImpl.java:182) at org.glassfish.json.JsonParserImpl.getArray(JsonParserImpl.java:326) at org.glassfish.json.JsonParserImpl.getValue(JsonParserImpl.java:180) at org.glassfish.json.JsonParserImpl.getObject(JsonParserImpl.java:339) at org.glassfish.json.JsonParserImpl.getValue(JsonParserImpl.java:182) at org.glassfish.json.JsonParserImpl.getObject(JsonParserImpl.java:339) at org.glassfish.json.JsonParserImpl.getObject(JsonParserImpl.java:173) at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:112) at org.wikipedia.io.SophoxDownloadReader.getPrimitiveIds(SophoxDownloadReader.java:260) at org.wikipedia.io.SophoxDownloadReader.parseDataSet(SophoxDownloadReader.java:244) at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxDownloader.java:198) at org.wikipedia.io.SophoxDownloadReader.parseOsm(SophoxDownloadReader.java:283) at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.parseDataSet(DownloadOsmTask.java:441) at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.realRun(DownloadOsmTask.java:449) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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)
Attachments (0)
Change History (8)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:3 by , 5 years ago
Component: | Core → Plugin wikipedia |
---|
comment:4 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
@Florian: I assume it happens when Wikipedia returns garbage. Can you please catch the exception and display an error message?
comment:5 by , 5 years ago
Keywords: | sophox sparql json added |
---|
comment:6 by , 4 years ago
Summary: | use of wikidata sparql → JsonParsingException in SophoxDownloadReader |
---|
comment:8 by , 4 years ago
Sophox is up and running again, see https://github.com/Sophox/sophox/issues/24 – https://sophox.org/
The SPARQL URL needs to be changed from https://sophox.org/bigdata/namespace/wdq/sparql to https://sophox.org/sparql
Note:
See TracTickets
for help on using tickets.
Thanks for your report, however your ticket is incomplete and therefore not helpful in its current form.
Please add all needed information according to this list:
To ensure that all technical relevant information is contained, create new tickets by clicking in JOSMs Main Menu on Help → Report Bug.
Remember: This is a generic notice so we don't need to write the same stuff again and again. It may only apply in parts to the specific case!
BTW: It seems you have serious network access issues.