Modify ↓
Opened 3 months ago
Last modified 3 months ago
#24170 new defect
NPE at org.openstreetmap.josm.io.GeoJSONReader.parseGeometry
Reported by: | 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:19307 Build-Date:2025-02-04 10:32:03 Identification: JOSM/1.5 (19307 de) Windows 10 64-Bit OS Build number: Windows 10 Pro 22H2 (19045) Memory Usage: 11312 MB / 23008 MB (3701 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 1920x1200x32bpp@60Hz (scaling 1.00×1.00) Maximum Screen Size: 1920×1200 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: UTF-8 System property sun.jnu.encoding: Cp1252 Locale info: de_DE Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.19307, -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=%<user.name>Profile%\AppData\Local\JOSM\JOSM.exe] Dataset consistency test: No problems found Plugins: + imagery_offset_db (36379) + pbf (36379) + pdfimport (36379) + turnrestrictions (36379) Last errors/warnings: - 00000.768 W: extended font config - overriding 'filename.Malgun_Gothic=malgun.ttf' with 'MALGUN.TTF' - 00000.770 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.771 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00002.048 E: java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.AccessBridge. Ursache: java.lang.ClassNotFoundException: com.sun.java.accessibility.AccessBridge - 00002.116 E: java.security.KeyStoreException: Windows-ROOT not found. Ursache: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available - 01531.262 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "jakarta.json.JsonString.getString()" because the return value of "org.eclipse.parsson.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: main-worker-0 (36) of main java.lang.NullPointerException: Cannot invoke "jakarta.json.JsonString.getString()" because the return value of "org.eclipse.parsson.JsonObjectBuilderImpl$JsonObjectImpl.getJsonString(String)" is null at org.eclipse.parsson.JsonObjectBuilderImpl$JsonObjectImpl.getString(JsonObjectBuilderImpl.java:249) at org.openstreetmap.josm.io.GeoJSONReader.parseGeometry(GeoJSONReader.java:218) at org.openstreetmap.josm.io.GeoJSONReader.parseGeometryCollection(GeoJSONReader.java:201) at org.openstreetmap.josm.io.GeoJSONReader.parseGeometry(GeoJSONReader.java:232) 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:56) 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 (2)
comment:1 by , 3 months ago
comment:2 by , 3 months ago
Component: | Core → Core geojson |
---|---|
Summary: | Tried to open geojson file which I had created previously with OSM data → NPE at org.openstreetmap.josm.io.GeoJSONReader.parseGeometry |
Note:
See TracTickets
for help on using tickets.
Can you please upload the GeoJSON file that caused the error? My guess is that it is invalid in some way.
If it's large (over 100 kB), you can strip down the unnecessary parts.