Opened 4 years ago

Closed 4 years ago

#18722 closed defect (fixed)

Mapillary json exception

Reported by: StephaneP Owned by: Don-vip
Priority: normal Milestone: 20.02
Component: Core geojson Version:
Keywords: template_report, json Cc:


What steps will reproduce the problem?

  1. Drag & drop a folder containing images already upload to Mapillary. Or simply drag & drop the mapillary json file.

What is the expected result?

Josm load the images

What happens instead?

Josm load the images and an exception occured

Please provide any additional information below. Attach a screenshot if possible.

Folder with some images already uploaded to Mapillary, usually contain a small json file that Josm doesn't like.
I think Josm should silently ignore it.

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-02-01 01:10:57 +0100 (Sat, 01 Feb 2020)
Build-Date:2020-02-01 00:12:46
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15806 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1903 (18362)
Memory Usage: 6075 MB / 14564 MB (3140 MB allocated, but free)
Java version: 1.8.0_191-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
Dataset consistency test: No problems found

+ DirectUpload (35248)
+ Mapillary (1.5.20)
+ OpeningHoursEditor (35250)
+ PicLayer (35313)
+ PolygonCutOut (v0.7)
+ apache-commons (35092)
+ apache-http (35092)
+ cadastre-fr (35308)
+ changeset-viewer (22)
+ continuosDownload (91)
+ contourmerge (v0.1.5)
+ ejml (35122)
+ geotools (35169)
+ graphview (35313)
+ imagery-xml-bounds (35313)
+ indoorhelper (35312)
+ javafx-windows
+ jaxb (35092)
+ jna (35092)
+ jts (35122)
+ measurement (35248)
+ opendata (35313)
+ photo_geotagging (35313)
+ photoadjust (35313)
+ poly (35248)
+ reverter (35313)
+ tageditor (35258)
+ todo (30306)
+ turnlanes-tagging (283)
+ turnrestrictions (35313)
+ undelete (35313)
+ utilsplugin2 (35248)

Tagging presets:

Map paint styles:
- <josm.pref>\styles\bicycle\cycleway.mapcss
- <josm.pref>\styles\sit.mapcss

Last errors/warnings:
- W: Could not connect to the OSM server. Please check your internet connection.. Cause:
- W: Read timed out. Cause: Read timed out
- W: Read timed out. Cause: Read timed out
- W: Read timed out. Cause: Read timed out
- W: Read timed out. Cause: Read timed out
- W: Read timed out. Cause: Read timed out
- W: Read timed out. Cause: Read timed out
- W: Deleted or moved objects - <html>There is 1 object in your local dataset which might be deleted on the server.<br>If you later try to delete or update this the server is likely to report a conflict.<br>Click <strong>Check on the server</strong> to check the state of this object on the server.<br>Click <strong>Ignore</strong> to ignore.</html>
- E: Handled by bug report queue: java.lang.NullPointerException
- E: Handled by bug report queue: java.lang.NullPointerException

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: main-worker-0 (67) of main
	at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getString(
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
	at java.util.concurrent.Executors$ Source)
	at Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$ Source)
	at Source)

Attachments (1)

mapillary_import_summary.json (853 bytes) - added by StephaneP 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by StephaneP

comment:1 Changed 4 years ago by Don-vip

Component: CoreCore geojson

comment:2 Changed 4 years ago by simon04

GeoJSONImporter should not handle attachment:mapillary_import_summary.json

Maybe we should exclude .json from the list of supported extensions?

comment:3 Changed 4 years ago by Don-vip

Milestone: 20.02
Owner: changed from team to Don-vip
Status: newassigned

comment:4 Changed 4 years ago by Don-vip

Resolution: fixed
Status: assignedclosed

In 15865/josm:

fix #18722 - exclude json file extension from GeoJsonImporter + add robustness

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.