Opened 15 months ago
Closed 15 months ago
#23296 closed defect (irreproducible)
NPE when creating dataitem: Cannot invoke "javax.json.JsonObject.getString(String)" because the return value of "javax.json.JsonObject.getJsonObject(String)" is null
Reported by: | mnalis | Owned by: | taylor.smock |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin osmwiki-dataitem | Version: | tested |
Keywords: | Cc: |
Description
I've right-clicked on tag building:wikipedia
, choose Create new dataitem for building:wikipedia
, filled in description and applicable types and confirmed, and the error was thrown. I've create several other dataitems successfully in that JOSM session before that one.
At the time, https://wiki.openstreetmap.org/wiki/Special:ItemByTitle/wiki?site=wiki&page=Key%3Abuilding%3Awikipedia claimed that dataitem does not exist (so should be OK to create).
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2023-08-29 13:38:40 +0200 (Tue, 29 Aug 2023) Revision:18822 Build-Date:2023-08-30 01:30:57 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (18822 en) Linux Debian GNU/Linux 12 (bookworm) Memory Usage: 351 MB / 2987 MB (147 MB allocated, but free) Java version: 17.0.9+9-Debian-1deb12u1, Debian, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: hr_HR.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: ICEWM Java package: openjdk-17-jre:amd64-17.0.9+9-1~deb12u1 libcommons-compress-java: libcommons-compress-java:- fonts-noto: fonts-noto:all-20201225-1 VM arguments: [-Dsun.java2d.opengl=true] Dataset consistency test: No problems found Plugins: + DirectUpload (36178) + FixAddresses (36126) + PicLayer (1.0.3) + apache-commons (36176) + apache-http (36176) + areaselector (2.6.2) + austriaaddresshelper (88) + buildings_tools (36178) + conflation (0.6.11) + ejml (36176) + imagery_offset_db (36126) + jna (36176) + jts (36004) + log4j (36176) + osmwiki-dataitem (0.0.7) + pt_assistant (630) + reverter (36126) + turnrestrictions (36178) + undelete (36126) + utilsplugin2 (36178) + wikipedia (605) Tagging presets: + https://<user.name>.com/prezentacije/OpenStreetMap/josm-preset.xml + https://raw.githubusercontent.com/OpenNauticalChart/josm/master/INT-1-preset.xml + https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 + http://bezdomni.net/Styles_HighlightedCapesBays-style.mapcss + https://josm.openstreetmap.de/josmfile?page=Styles/ColorWays&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Fixme&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1 Validator rules: + https://josm.openstreetmap.de/josmfile?page=Rules/KeepRight&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/QAToolInspiredValidations&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/OSMLint&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/MissingWeekdays&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/SourceObjectTag&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/IndoorRules&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/Pictures&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/MissingOpeningHours&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/CheckDate&zip=1 Last errors/warnings: - 00015.003 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences - 02768.369 E: Thread main-worker-0 raised java.lang.NullPointerException: Cannot invoke "javax.json.JsonObject.getString(String)" because the return value of "javax.json.JsonObject.getJsonObject(String)" is null - 02768.374 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "javax.json.JsonObject.getString(String)" because the return value of "javax.json.JsonObject.getJsonObject(String)" is null === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: main-worker-0 (22) java.lang.NullPointerException: Cannot invoke "javax.json.JsonObject.getString(String)" because the return value of "javax.json.JsonObject.getJsonObject(String)" is null at org.openstreetmap.josm.plugins.wikidata.io.upload.WikiDataItemUploader.doUpload(WikiDataItemUploader.java:178) at org.openstreetmap.josm.plugins.wikidata.io.upload.WikiDataItemUploader.run(WikiDataItemUploader.java:88) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) === ADDITIONAL EXCEPTIONS === ==== Exception at 1699841665127 ==== java.lang.NullPointerException: Cannot invoke "javax.json.JsonObject.getString(String)" because the return value of "javax.json.JsonObject.getJsonObject(String)" is null at org.openstreetmap.josm.plugins.wikidata.io.upload.WikiDataItemUploader.doUpload(WikiDataItemUploader.java:178) at org.openstreetmap.josm.plugins.wikidata.io.upload.WikiDataItemUploader.run(WikiDataItemUploader.java:88) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)
Attachments (0)
Change History (1)
comment:1 by , 15 months ago
Resolution: | → irreproducible |
---|---|
Status: | new → closed |
Summary: | ocasional error when creating dataitem → NPE when creating dataitem: Cannot invoke "javax.json.JsonObject.getString(String)" because the return value of "javax.json.JsonObject.getJsonObject(String)" is null |
I'm making a release that will give me more information from the server response so I can figure out what I should do. It should be available in the next hour or so.