Modify

Opened 10 months ago

Closed 7 months ago

Last modified 7 months ago

#23508 closed defect (duplicate)

NPE: Cannot invoke "org.wikipedia.WikipediaApp.getSiteUrl()" because "app" is null

Reported by: anonymous Owned by: floscher
Priority: normal Milestone:
Component: Plugin wikipedia 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:18969
Build-Date:2024-02-06 12:12:39

Identification: JOSM/1.5 (18969 fr) Windows 11 64-Bit
OS Build number: Windows 10 Home Single Language 2009 (22631)
Memory Usage: 695 MB / 978 MB (282 MB allocated, but free)
Java version: 17.0.10+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1366×768 (scaling 1.00×1.00)
Maximum Screen Size: 1366×768
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: fr_FR
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18969, --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]
Dataset consistency test: No problems found

Plugins:
+ OpeningHoursEditor (36196)
+ RoadSigns (36196)
+ alignways (36200)
+ apache-commons (36176)
+ buildings_tools (36200)
+ editgpx (36126)
+ ejml (36176)
+ ext_tools (36126)
+ geotools (36176)
+ jackson (36176)
+ jaxb (36118)
+ jna (36176)
+ jts (36004)
+ measurement (36200)
+ merge-overlap (36178)
+ opendata (36200)
+ openindoor-1.0.2-josm (UNKNOWN)
+ pbf (36176)
+ plbuildings (1.8.1)
+ routes (36196)
+ turnlanes (36206)
+ utilsplugin2 (36200)
+ wikipedia (605)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/COVID-19&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/BuildingPreset&zip=1
+ https://raw.githubusercontent.com/osmlab/name-suggestion-index/main/dist/presets/nsi-josm-presets.min.xml

Last errors/warnings:
- 00059.928 W: org.openstreetmap.josm.io.OsmTransferException: Impossible de joindre le serveur. Veuillez vérifier votre connexion Internet.. Cause : java.net.UnknownHostException: api.openstreetmap.org
- 00506.752 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=404, Error Body=<<html>
- 00506.772 E: Non trouvé - <html>Le serveur 'sophox.org' ne reconnaît pas un objet<br>que vous essayez de lire, mettre à jour ou supprimer. Soit cet objet<br>n’existe pas sur le serveur, soit vous utilisez une adresse web qui n’est pas valide pour y accéder.<br>Veuillez vérifier l’adresse du serveur 'sophox.org'.</html>
- 03073.767 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>
- 03073.790 E: Requête incorrecte - <html>Le serveur 'api.openstreetmap.org' a signalé une requête erronée.<br><br>La zone que vous voulez télécharger est trop grande ou votre requête est trop grosse. <br>Veuillez sélectionner une zone plus petite ou utiliser un fichier d’export fourni par la communauté OSM.</html>
- 03073.823 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>
- 03073.862 E: Requête incorrecte - <html>Le serveur 'api.openstreetmap.org' a signalé une requête erronée.<br><br>La zone que vous voulez télécharger est trop grande ou votre requête est trop grosse. <br>Veuillez sélectionner une zone plus petite ou utiliser un fichier d’export fourni par la communauté OSM.</html>
- 05039.837 W: Could not initialize Wikipedia app for language 'https'!: java.lang.IllegalArgumentException: No wiki site for code 'https' found!
- 05039.865 W: Could not initialize Wikipedia app for language 'https'!: java.lang.IllegalArgumentException: No wiki site for code 'https' found!
- 05039.894 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.wikipedia.WikipediaApp.getSiteUrl()" because "app" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (21) of main
java.lang.NullPointerException: Cannot invoke "org.wikipedia.WikipediaApp.getSiteUrl()" because "app" is null
	at org.wikipedia.gui.WikipediaToggleDialog.updateTitle(WikipediaToggleDialog.java:147)
	at org.wikipedia.gui.WikipediaToggleDialog.access$000(WikipediaToggleDialog.java:60)
	at org.wikipedia.gui.WikipediaToggleDialog$UpdateWikipediaArticlesSwingWorker.process(WikipediaToggleDialog.java:228)
	at java.desktop/javax.swing.SwingWorker$3.run(Unknown Source)
	at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
	at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
	at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
	at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 by gaben, 9 months ago

Component: CorePlugin wikipedia
Owner: changed from team to floscher

comment:2 by taylor.smock, 7 months ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #21781.

comment:3 by taylor.smock, 7 months ago

Summary: Wikipedia pluginsNPE: Cannot invoke "org.wikipedia.WikipediaApp.getSiteUrl()" because "app" is null

Modify Ticket

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