Modify

Opened 5 years ago

Closed 4 years ago

#20239 closed defect (fixed)

can't load a geojson file

Reported by: anonymous Owned by: simon04
Priority: normal Milestone: 21.05
Component: Core geojson Version:
Keywords: template_report 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: 2020-11-21 14:56:29 +0100 (Sat, 21 Nov 2020)
Build-Date:2020-11-22 02:30:52
Revision:17329
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17329 en) Mac OS X 10.14.6
OS Build number: Mac OS X 10.14.6 (18G5033)
Memory Usage: 765 MB / 1820 MB (519 MB allocated, but free)
Java version: 1.8.0_271-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 69734272 1440x900 (scaling 1.0x1.0), Display 724047313 1920x1080 (scaling 1.0x1.0), Display 724048338 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
VM arguments: [-Djava.security.policy=file:<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin, -Djava.security.manager, -Djnlpx.origFilenameArg=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/56/1ee8cfb8-3fa50642, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Dmacosx.jnlpx.dock.name=JOSM, -Dmacosx.jnlpx.dock.icon=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/25/4c122699-462f5530.icns, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp , -Djnlpx.jvm="<java.home>/bin/java"]

Plugins:
+ ImproveOsm (202)
+ Mapillary (1.5.27)
+ apache-commons (35524)
+ apache-http (35589)
+ jna (35458)
+ measurement (35640)
+ turnrestrictions (35640)
+ utilsplugin2 (35640)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
- https://raw.githubusercontent.com/yopaseopor/indoormap/master/indoormap-style.mapcss

Last errors/warnings:
- 00014.995 E: Handled by bug report queue: javax.json.JsonException: Cannot auto-detect encoding, not enough chars
- 00019.419 E: Handled by bug report queue: javax.json.JsonException: Cannot auto-detect encoding, not enough chars
- 00030.932 E: Handled by bug report queue: javax.json.JsonException: Cannot auto-detect encoding, not enough chars


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main-worker-0 (78) of javawsApplicationThreadGroup
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.JsonProviderImpl.createParser(JsonProviderImpl.java:88)
	at javax.json.Json.createParser(Json.java:109)
	at org.openstreetmap.josm.io.GeoJSONReader.doParseDataSet(GeoJSONReader.java:407)
	at org.openstreetmap.josm.io.GeoJSONReader.parseDataSet(GeoJSONReader.java:473)
	at org.openstreetmap.josm.gui.io.importexport.GeoJSONImporter.importData(GeoJSONImporter.java:51)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:98)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:370)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:320)
	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 (7)

comment:1 by skyper, 5 years ago

Component: CoreCore geojson

comment:2 by GerdP, 5 years ago

Looks like the file is empty?

comment:3 by Klumbumbus, 5 years ago

Owner: changed from team to anonymous
Status: newneedinfo

Please attach the geojson file.

comment:4 by skyper, 5 years ago

Ticket #20255 has been marked as a duplicate of this ticket.

comment:5 by GerdP, 5 years ago

Ticket #20642 has been marked as a duplicate of this ticket.

comment:6 by simon04, 4 years ago

Milestone: 21.05
Owner: changed from anonymous to simon04
Status: needinfoassigned

comment:7 by simon04, 4 years ago

Resolution: fixed
Status: assignedclosed

r17913 - fix #20239 - GeoJSONImporter: fix JsonException: Cannot auto-detect encoding, not enough chars

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
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.