Opened 8 years ago

Last modified 6 years ago

#16512 closed defect

JsonException: Cannot auto-detect encoding, not enough chars — at Version 2

Reported by: anonymous Owned by: floscher
Priority: critical Milestone:
Component: Plugin mapillary Version:
Keywords: template_report json encoding Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. mapillary crash when trying to move photos around in expert mode

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: 2018-07-09 01:47:59 +0200 (Mon, 09 Jul 2018)
Build-Date:2018-07-08 23:50:14
Revision:14026
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14026 pl) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 795 MB / 1820 MB (562 MB allocated, but free)
Java version: 1.8.0_144-b01, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080
Dataset consistency test: No problems found

Plugins:
+ Mapillary (v1.5.15)
+ PicLayer (34389)
+ apache-commons (34389)
+ apache-http (34389)
+ buildings_tools (34212)
+ editgpx (34206)
+ ejml (34389)
+ geotools (34125)
+ jts (34206)
+ log4j (34038)
+ photo_geotagging (34206)
+ photoadjust (34389)
+ turnrestrictions (34129)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/Mountainbike&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MTB&zip=1

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Nie można odczytać z URL https://a.mapillary.com/v3/images?client_id=T1Fzd20xZjdtR0s1VDk5OFNIOXpYdzoxNDYyOGRkYzUyYTFiMzgz&bbox=18.5026932%2C54.488339%2C18.5197306%2C54.4991315!: java.io.IOException: Server returned HTTP response code: 502 for URL: https://a.mapillary.com/v3/images?client_id=T1Fzd20xZjdtR0s1VDk5OFNIOXpYdzoxNDYyOGRkYzUyYTFiMzgz&bbox=18.5026932%2C54.488339%2C18.5197306%2C54.4991315
- W: Nie można odczytać z URL https://a.mapillary.com/v3/detections?client_id=T1Fzd20xZjdtR0s1VDk5OFNIOXpYdzoxNDYyOGRkYzUyYTFiMzgz&bbox=18.5026932%2C54.488339%2C18.5197306%2C54.4991315!: java.io.IOException: Server returned HTTP response code: 504 for URL: https://a.mapillary.com/v3/detections?client_id=T1Fzd20xZjdtR0s1VDk5OFNIOXpYdzoxNDYyOGRkYzUyYTFiMzgz&bbox=18.5026932%2C54.488339%2C18.5197306%2C54.4991315
- E: Handled by bug report queue: javax.json.JsonException: Cannot auto-detect encoding, not enough chars
- W: Ostrzeżenie - <html>Nie można odnaleźć informacji o następujących wtyczkach:<ul><li>apache-commons</li><li>photoadjust</li><li>geotools</li><li>jts</li><li>Mapillary</li><li>ejml</li><li>editgpx</li><li>photo_geotagging</li><li>buildings_tools</li><li>turnrestrictions</li><li>PicLayer</li><li>apache-http</li><li>log4j</li></ul>Wtyczki nie zostaną wczytane</html>


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Mapillary changeset upload (284)
javax.json.JsonException: Cannot auto-detect encoding, not enough chars
	at org.glassfish.json.UnicodeDetectingInputStream.detectEncoding(UnicodeDetectingInputStream.java:130)
	at org.glassfish.json.UnicodeDetectingInputStream.<init>(UnicodeDetectingInputStream.java:75)
	at org.glassfish.json.JsonParserImpl.<init>(JsonParserImpl.java:95)
	at org.glassfish.json.JsonReaderImpl.<init>(JsonReaderImpl.java:73)
	at org.glassfish.json.JsonProviderImpl.createReader(JsonProviderImpl.java:136)
	at javax.json.Json.createReader(Json.java:225)
	at org.openstreetmap.josm.plugins.mapillary.actions.MapillarySubmitCurrentChangesetAction.lambda$actionPerformed$0(MapillarySubmitCurrentChangesetAction.java:83)
	at java.lang.Thread.run(Unknown Source)

Change History (2)

comment:1 by Don-vip, 8 years ago

Component: CorePlugin mapillary
Owner: changed from team to floscher

comment:2 by Don-vip, 7 years ago

Description: modified (diff)
Keywords: json encoding added
Summary: mapillary crash when trying to move photos around in expert modeJsonException: Cannot auto-detect encoding, not enough chars
Note: See TracTickets for help on using tickets.