﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
24069	MapwithAI plugin crashes	watergeus	taylor.smock	"==== What steps will reproduce the problem?
1. Install the mapwithai=dev:version 1.9.13-12
2.  Crashed 
3. 

==== What is the expected result? use this plugin to download mapwithAI layer

==== What happens instead? crashes

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Revision:19277
Build-Date:2025-01-03 15:21:55

Identification: JOSM/1.5 (19277 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2015 LTSB (10240)
Memory Usage: 568 MB / 12248 MB (193 MB allocated, but free)
Java version: 21.0.5+11-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920x1080x32bpp@60Hz (scaling 1.00×1.00) \Display1 1920x1080x32bpp@60Hz (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
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: en_GB
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.19277, -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]
Dataset consistency test: No problems found

Plugins:
+ FastDraw (36344)
+ ImproveWay (32)
+ Relation.Validation.Plugin (1.0.1)
+ ShapeTools (1250)
+ SimplifyArea (36344)
+ apache-commons (36349)
+ apache-http (36349)
+ auto_tools (81)
+ buildings_tools (36344)
+ changeset-viewer (0.0.8)
+ colorscheme (36349)
+ config (70)
+ conflation (0.6.11)
+ continuosDownload (107)
+ ejml (36348)
+ fastdriveway (v1.0.1)
+ geotools (36349)
+ http2 (36256)
+ imagery_offset_db (36344)
+ jackson (36349)
+ jaxb (36349)
+ jna (36349)
+ jogl (1.2.3)
+ jts (36349)
+ mapathoner (1.5.5)
+ mapwithai-dev (1.9.13-12-g9e00328)
+ markseen (14)
+ merge-overlap (36344)
+ pmtiles (36219)
+ scripting (v0.3.1)
+ splinex (36349)
+ terracer (36344)
+ todo (141)
+ touchscreenhelper (36349)
+ undelete (36349)
+ utilsplugin2 (36362)

Map paint styles:
+ https://gitlab.com/peculiar-theater/mapcss/-/raw/main/tm-taskgrid/tm-taskgrid.mapcss
- %UserProfile%\Desktop\JOSM\HDM-JOSM-style-master\HDM-JOSM-style-master\HDM.mapcss
+ %UserProfile%\Desktop\JOSM\HOT-Osm-Validation-master\HOT-Osm-Validation-master\HOT-Validate.mapcss
- %UserProfile%\Desktop\JOSM\HOT-Osm-Validation-master\Styles_ColorWays-style.mapcss
- %UserProfile%\Desktop\JOSM\HOT-Osm-Validation-master\Styles_ColorWays-style.mapcss
- %UserProfile%\Desktop\JOSM\HOT-Osm-Validation-master\HOT-Osm-Validation-master\HOT-Validate1.mapcss
- %UserProfile%\Desktop\JOSM\HDM-JOSM-style-master.zip
- https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip
+ https://github.com/MissingMaps/josm_styles/archive/master.zip

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/ValidatingBuildingsInHOTTMProjects&zip=1

Last errors/warnings:
- 00011.530 E: Failed to locate image 'MapWithAI'
- 00020.345 W: java.util.zip.ZipException: zip file is empty
- 00020.346 W: PluginException: : org.openstreetmap.josm.plugins.PluginException: Invalid jar file '<josm.pref>\plugins\ImproveOsm.jar.new'
- 00020.346 W: Failed to scan file 'ImproveOsm.jar.new' for plugin information. Skipping.
- 00051.928 W: Proposed rect has such extreme aspect ratio that it would be zero-width at preferredZoom
- 00053.159 E: Failed to locate image 'icons/place.png'
- 00056.553 E: Handled by bug report queue: java.lang.NoClassDefFoundError: javax/json/Json. Cause: java.lang.ClassNotFoundException: javax.json.Json
- 00067.040 W: java.util.zip.ZipException: zip file is empty
- 00067.041 W: PluginException: : org.openstreetmap.josm.plugins.PluginException: Invalid jar file '<josm.pref>\plugins\ImproveOsm.jar.new'
- 00067.041 W: Failed to scan file 'ImproveOsm.jar.new' for plugin information. Skipping.



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (31) of main
java.lang.NoClassDefFoundError: javax/json/Json
	at org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAIInfo.<init>(MapWithAIInfo.java:212)
	at org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo.load(MapWithAILayerInfo.java:183)
	at org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo.<init>(MapWithAILayerInfo.java:139)
	at org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo.getInstance(MapWithAILayerInfo.java:86)
	at org.openstreetmap.josm.plugins.mapwithai.gui.MapWithAIMenu.refreshImageryMenu(MapWithAIMenu.java:131)
	at org.openstreetmap.josm.plugins.mapwithai.gui.MapWithAIMenu$1.menuSelected(MapWithAIMenu.java:81)
	at java.desktop/javax.swing.JMenu.fireMenuSelected(Unknown Source)
	at java.desktop/javax.swing.JMenu$MenuChangeListener.stateChanged(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireStateChanged(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setSelected(Unknown Source)
	at java.desktop/javax.swing.JMenu.setSelected(Unknown Source)
	at java.desktop/javax.swing.JMenu.menuSelectionChanged(Unknown Source)
	at java.desktop/javax.swing.MenuSelectionManager.setSelectedPath(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseEntered(Unknown Source)
	at java.desktop/com.sun.java.swing.plaf.windows.WindowsMenuUI$WindowsMouseInputHandler.mouseEntered(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEnterExit(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(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.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.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)
Caused by: java.lang.ClassNotFoundException: javax.json.Json
	at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:82)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 48 more
}}}
"	defect	closed	normal		Plugin mapwithai		fixed	template_report	
