Modify

Opened 6 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#24217 closed defect (duplicate)

BUG

Reported by: anonymous Owned by: team
Priority: normal Milestone:
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.

Revision:19342
Build-Date:2025-03-01 10:11:58

Identification: JOSM/1.5 (19342 zh_TW) Windows 11 64-Bit
OS Build number: Windows 10 Home 24H2 (26100)
Memory Usage: 408 MB / 6016 MB (90 MB allocated, but free)
Java version: 21.0.6+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 2256x1504x32bpp@60Hz (scaling 1.50×1.50) \Display1 1080x1920x32bpp@60Hz (scaling 1.00×1.00) \Display2 1920x1080x32bpp@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 2256×1920
Best cursor sizes: 16×16→48×48, 32×32→48×48
System property file.encoding: UTF-8
System property sun.jnu.encoding: MS950
Locale info: zh_TW
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.19342, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]

Plugins:
+ ImportImagePlugin (36387)
+ PicLayer (265)
+ apache-commons (36379)
+ ejml (36379)
+ geotools (36384)
+ importvec (36379)
+ jackson (36387)
+ jaxb (36379)
+ jts (36379)
+ lexxpluss (1.1.0)
+ measurement (36374)
+ pdfimport (36379)

Last errors/warnings:
- 00015.448 W: 無法掃描檔案 apache-commons.jar.new 的插件資訊,跳過。
- 00022.596 W: java.util.zip.ZipException: zip END header not found
- 00022.598 W: PluginException: : org.openstreetmap.josm.plugins.PluginException: 無效的 JAR 檔案 <josm.pref>\plugins\apache-commons.jar.new
- 00022.599 W: 無法掃描檔案 apache-commons.jar.new 的插件資訊,跳過。
- 00023.453 W: 更新外掛程式 - &#20320;&#24050;&#32147;&#26356;&#26032;&#20102; JOSM &#36575;&#39636;&#12290; &#28858;&#20102;&#36991;&#20813;&#21839;&#38988;&#20063;&#25033;&#35442;&#26356;&#26032;&#22806;&#25499;&#31243;&#24335;&#12290;  &#26159;&#21542;&#31435;&#21363;&#26356;&#26032;&#65311;
- 00101.311 W: java.util.zip.ZipException: zip END header not found
- 00101.311 W: PluginException: : org.openstreetmap.josm.plugins.PluginException: 無效的 JAR 檔案 <josm.pref>\plugins\apache-commons.jar.new
- 00101.311 W: 無法掃描檔案 apache-commons.jar.new 的插件資訊,跳過。
- 00201.581 E: Handled by bug report queue: java.lang.ClassCastException: Cannot cast org.eclipse.parsson.JsonNumberImpl$JsonBigDecimalNumber to jakarta.json.JsonArray
- 00227.999 E: Handled by bug report queue: java.lang.ClassCastException: Cannot cast org.eclipse.parsson.JsonNumberImpl$JsonBigDecimalNumber to jakarta.json.JsonArray



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main-worker-0 (39) of main
java.lang.ClassCastException: Cannot cast org.eclipse.parsson.JsonNumberImpl$JsonBigDecimalNumber to jakarta.json.JsonArray
	at java.base/java.lang.Class.cast(Unknown Source)
	at jakarta.json.JsonValue.asJsonArray(JsonValue.java:129)
	at org.openstreetmap.josm.io.GeoJSONReader.lambda$createWay$10(GeoJSONReader.java:342)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.Iterator.forEachRemaining(Unknown Source)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.openstreetmap.josm.io.GeoJSONReader.createWay(GeoJSONReader.java:343)
	at org.openstreetmap.josm.io.GeoJSONReader.parsePolygon(GeoJSONReader.java:299)
	at org.openstreetmap.josm.io.GeoJSONReader.parseGeometry(GeoJSONReader.java:228)
	at org.openstreetmap.josm.io.GeoJSONReader.parseFeature(GeoJSONReader.java:164)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.base/java.util.Iterator.forEachRemaining(Unknown Source)
	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.openstreetmap.josm.io.GeoJSONReader.parseFeatureCollection(GeoJSONReader.java:149)
	at org.openstreetmap.josm.io.GeoJSONReader.parseRoot(GeoJSONReader.java:100)
	at org.openstreetmap.josm.io.GeoJSONReader.parse(GeoJSONReader.java:87)
	at org.openstreetmap.josm.io.GeoJSONReader.doParseDataSet(GeoJSONReader.java:471)
	at org.openstreetmap.josm.io.GeoJSONReader.parseDataSet(GeoJSONReader.java:536)
	at org.openstreetmap.josm.gui.io.importexport.GeoJSONImporter.parseDataSet(GeoJSONImporter.java:36)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.loadLayer(OsmImporter.java:121)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:97)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:82)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:103)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:426)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:354)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (7)

comment:1 by gaben, 6 weeks ago

Component: CoreCore geojson

comment:2 by gaben, 6 weeks ago

Possible duplicate of #20929.

comment:3 by stoecker, 6 weeks ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #20929.

comment:4 by gaben, 6 weeks ago

@stoecker I'm not sure it's the same issue. After I wrote comment:2, I checked the test file from #20929 and it did not raise neither of the errors, but a more friendly window popped up, saying something that the file cannot be read and explanation jakarta.json.stream.JsonParsingException: Expected EOF token, but got COLON.

Nevertheless I'm sure an invalid GeoJSON was used here as well.

comment:5 by stoecker, 6 weeks ago

I considered that as well, but we never get feedback from anonym bug reporters too lazy to fill the basic questions, so duplicate is best choice.

comment:6 by stoecker, 6 weeks ago

For #20929 I assume the snippet is incomplete and you need to reconstruct the full file.

in reply to:  6 comment:7 by gaben, 6 weeks ago

Replying to stoecker:

For #20929 I assume the snippet is incomplete and you need to reconstruct the full file.

Probably. I'm not good at guessing and mind reading, so I'll close that as well. I find fascinating how in this timespan no one could ever provide a working repro.

Modify Ticket

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